I have a SVG file that I want to extend by adding onclick handlers to edges and nodes. I also want to add a script tag referring to a JavaScript. The problem is that the script tag gets an empty namespace attribute added to it.
I haven't found any information regarding this that I understand. Why does XSLT add an empty namespace?
XSL f...
I would like to convert some value from a XML attribute into valid HTML with entities. So that for example the string "olá" from the XML would be transformed from the XSLT into "olá"
I can't find any xsl function to do this.
Any ideas ?
...
I have an XSLT transform I am using to process an XML file, inserting it into the body of my aspx page.
Reference the following for background information:
background on xml/xslt
I have the following in my xml file:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
...
I have an XML file which has many section like the one below:
<Operations>
<Action [some attributes ...]>
[some complex content ...]
</Action>
<Action [some attributes ...]>
[some complex content ...]
</Action>
</Operations>
I have to add an <Action/> to every <Operations/>. It seems that an XSLT should be a good solut...
I have a XML like this
<root>
<name>Smith</name>
<info>
<name>image</name>
<value>smith.jpg</value>
</info>
<info>
<name>birth</name>
<value>2000-10-10</value>
</info>
<info>
<name>moreinfo</name>
<value>something1</value>
</info>
<info>
<name>moreinfo2</name>
<value>something2</value>
</info>
</root>
how XSLT...
I have a function that takes 2 parameters : 1 = XML file, 2 = XSLT file, then performs a transformation and returns the resulting HTML.
Here is the function:
/// <summary>
/// Will apply an XSLT style to any XML file and return the rendered HTML.
/// </summary>
/// <param name="xmlFileName">
/// The file name of the XML document.
/// <...
I want to be able to count "end points" in an XML file using XSL.
By endpoint I mean tag's with no children that contain data.
i.e.
<xmlsnippet>
<tag1>NOTENOUGHDAYS</tag1>
<tag2>INVALIDINPUTS</tag2>
<tag3>
<tag4>
<tag5>2</tag5>
<tag6>1</tag6>
</tag4>
</tag3>
</xmlsnippet>...
Hi there
I have the following XML:
<data>
<page id="1118">
<itms>
<values>
<value>1104</value>
</values>
</itms>
</page>
<page id="1177">
<itms>
<values>
<value>1273</value>
<value>1215</value>
</values>
...
There is a code:
<p>
Lorem ipsum dolor sit ametconsecteturadipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat.
Duis aute iruredolorinreprehenderit in voluptate
velit es...
I have a Data View Part pulling from a list that has a lookup column to another list (title linked by ID)
And somewhere in the XSLT of the data view web part configuration, it reads
<xsl:value-of select="@ColumnX"/>
Now since ColumnX is a reference to another list (linked to item), how do I go about obtaining the ID rather than the t...
Starting a new project and was planning on storing all of my web content in XML. I do not have access to a database so this seemed like the next best thing. One thing I'm struggling with is how to structure the XML for links (which will later be transformed using XSLT). It needs to be fairly flexible as well. Below is what I started with...
Hello,
I'm trying to create an element in an XML where the basic content is copied and modified.
My XML is something like
<root>
<node>
<child>value</child>
<child2>value2</child2>
</node>
<node2>bla</node2>
</root>
The number of children of node may change as well as the children of root.
The XSLT should copy the wh...
we have XSLT to transform XML into HTML in XHTML 1.0 Strict
in XSLT
<td colspan="3" nowrap="nowrap">
HTML output will be
<td colspan="3" nowrap="nowrap">
however it will failure in XHTML 1.0 Strict check.
how XSLT can I generate into
<td colspan="3" nowrap>
...
I have XML like,
<items>
<item>
<products>
<product>laptop</product>
<product>charger</product>
<product>Cam</product>
</products>
</item>
<item>
<products>
<product>laptop</product>
<product>headphones</product>
<product>Photoframe</product>
</products>
</item...
I need to find out how to detect if a node contains significant information.
The following example shows what is not considered "significant" information by me:
<node>
<node1> </node1>
</br></br>
<node1>
<node2></br> </node2>
</br></br>
</node1>
<!--
and so on...
I am trying to set an a href that is both a link to and has the text for a link through an XSLT transformation. Here's what it looks like so far.
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="actionUrl"/>
</xsl:attribute>
...
I'm working with an OpenXML document, processing the main document part with some XSLT.
I've selected a set of nodes via
<xsl:template match="w:sdt">
</xsl:template>
In most cases, I simply need to replace that matched node with something else, and that works fine.
BUT, in some cases, I need to replace not the w:sdt node that matche...
Hi I have an XML as below
<result>
<binding name="PropertyURI">
<uri>http://dbpedia.org/ontology/motto</uri>
</binding>
<binding name="Property">
<literal xml:lang="en">motto</literal>
</binding>
<binding name="ValueURI">
<uri>http://dbpedia.org/ontology/motto</uri>
</binding>
<bin...
I am writing a Page with XML Only. No XSL is being.
everything is going well with XML and CSS.
But how can I make Input fields with XML and CSS Only ??
is it really possible ??
...
Given
<xsl:variable name="datePrecision" as="element()*">
<p>Year</p>
<p>Month</p>
<p>Day</p>
<p>Time</p>
<p>Timestamp</p>
</xsl:variable>
The expression
$datePrecision[5]
returns a nodeSet containing one text node with value "Timestamp", as expected.
Later in a template, with a context element having an attribute
@pr...