I have a xml fragment like below
<Detail uid="6">
<![CDATA[
<div class="heading">welcome to my page</div>
<div class="paragraph">this is paraph</div>
]]>
</Detail>
and I want to be able to change the
<div class="heading">...</div> to <h1>Welcome to my page</h1>
<div class="paragraph">...</div> to <p>this is paragrap...
There's an XSL that includes another XSL:
<xsl:include href="registered.xsl"/>
That included file has a list of nodes:
<g:registered>
<node1/>
<node2/>
</g:registered>
Documentation says that "the children of the <xsl:stylesheet> element in this document replace the element in the including document", so I would think that, gi...
I am having data like below:
<ProductAttributes>
<Attribute>
<ItemCode>ITEM-0174676</ItemCode>
<AttributeCode>host_interface</AttributeCode>
<AttributeDescription>Host Interface</AttributeDescription>
<AttributeValueCode>usb</AttributeValueCode>
<AttributeValueDescription>USB</AttributeValueDescription>
<GroupCode>techn...
What browsers and of what "vintage" support the XSLTProcessor() object?
...
Hi,
I know it cud be quite simple questions for most of you. But I am not able to load xsl file from sharepoint document library.
i m trying to do this
getXSL = Server.MapPath("//Documents/myxsl.xslt");
XslCompiledTransform xslt = new XslCompiledTransform();
xslt.Load(getXSL);
but if i m doing like this it is taking it ...
There are two XSL files. One includes another using an <xsl:include>. The main template desides which actual templates to call depending on node values, and included templates contain actual transformation rules. Nothing special here.
But included file has a script block:
<msxsl:script language="VB" implements-prefix="user">
<msx...
How do you transform a section of an XML document multiple times?
I'm calling a template from within one stylesheet for a particular node. When I import another utility that transforms that same data, the original stops working.
How do I get both style sheets to work?
...
I'm completely new at this and am trying to figure out how to do something like this:
I've got this type of tags (lots of them) in an XML-file
<ImageData src="whatever.tif"/>
What I need to do is first change them to a reference with a number like this:
<INCL.ELEMENT FILEREF="image0001.tif" TYPE="TIFF"/>
so the number has to get l...
This is what it looks like now
<Titre_2>first level 01</Titre_2>
<Titre_2>second level 01</Titre_2>
<Titre_2>third level 01</Titre_2>
<Titre_3_ch1>deepest01</Titre_3_ch1>
<Titre_3_ch1>deepest02</Titre_3_ch1>
<Titre_3_ch1>deepest03</Titre_3_ch1>
<Titre_2>third level 02</Titre_2>
<Titre_3_ch1>deepest04</Titre_3_ch1>
<Titre_3_ch1>deepest05...
The question was asked but deleted by the asker before it received an answer. Because I believe the question is sound and legitimate and serves a purpose, I'm asking it again and provide the answer I already wrote for the original q.
Will XPath 2.0 and/or XSLT 2.0 be implemented in PHP some day or are there any plans?
...
I have the following XML (simplified):
<node1>
<node2>
<node3>
</node3>
</node2>
</node1>
And I need to determine (using XSL) if node3 has a parent named node1 (not only the inmediate parent, so in the example node3 is a child of node1)
The following code is not working:
<xsl:if test="parent::node1">
</xsl:i...
Hey,
So this may be a strange request but I'll give it a go. I have an xml document
<?xml version="1.0" encoding="utf-8" ?>
<Page>
<ID>Site</ID>
<Object>
<ID>PostCode</ID>
<Type>div</Type>
<Class>display-label</Class>
<Value>PostCode</Value>
</Object>
<Object>
<ID>PostCodeValue</ID>
<Type>div</Type>
...
HI all,
I got a JavaScript function to convert the date, but I was wondering if there is any way to convert the date with xsl without using JavaScript.
Thanks.
...
this question relates to
http://stackoverflow.com/questions/2086179/xslt-to-generate-html-tags-specified-in-xml
where I had an xml docment and used an xsl to generate html tags using
<xsl:element name="{Type}" >
the problem I have is that I want to specify some html attributes in my xml for example
<Page>
<ID>Site</ID>
<Objec...
I know about Console.SetOut, but can't figure out what I should pass to this method.
...
I have a question that caused me a terrible headache. Please help me. The input is:
<body>
<p class="section"> section 1 </p>
<p class="code"> some code </p>
<p class="code"> following code </p>
<p class="code"> following code </p>
<p class="section"> section 2 </p>
<p class="code"> other code </p>
<p class="code"> following code...
I have this XML:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="xsl.xsl"?>
<Response>
<Result>
<Date Unix="1263340800">13 Jan 2010 00:00:00</Date>
<Column>
<Name>Small</Name>
<Value>100</Value>
</Column>
</Result>
<Result>
<Date Unix="1263427200">14 Jan 20...
How can I match the xmlns:* attributes with XSLT 1.0 ? Using a RDF document I tried:
<xs:template match="rdf:RDF">
(...)
<xsl:for-each select="@*">
<xsl:value-of select="."/>
</xsl:for-each>
(...)
</xsl:template>
but it doesn't seem to work for the xmlns attributes.
Thanks.
...
I am trying to sort my xml by date but its not working my xml and xsl r like this
<xsl:template match="/">
<xsl:for-each select="news/item">
<xsl:sort select="date1" order="descending" />
<xsl:value-of select="date1"/> ...
How would one loop thru a set of nodes, where the node name has a numeric number and the number increments as in a series?
ex:
<nodes>
<node1>
<node2>
...
<node10>
</nodes>
...