XPath as XML attribute - 08-11-2006 , 02:18 PM
I'm a newbie to XSLT working on my first project with it and I'm stuck
on a particular thing.
I want to create a document that will write the PCDATA from a given
<Line> element, then, in the next table cell, I want to insert the text
within the element pointed to by the "xpath" attribute.
<Line num="1" xpath="Income/Additions/CashFlow">Cash Flow for
<Line num="2" xpath="Additions/AddDeductions/Total">Total Deductions
paid to all corporations</Line>
<xsl:value-of select="@xpath" />
but it only outputs the text as PCDATA rather than retrieving the text
in the XML element. Is there any thing I can do to have the attribute
act as an XPath expression?
Re: XPath as XML attribute - 08-12-2006 , 01:54 PM
bignass04 (AT) gmail (DOT) com wrote:
which are then not necessarily implemented by the XSLT processor you use.
EXSLT.NET (<http://www.xmlmvp.org/exslt/index.html>) has this extension
thus if you use .NET and are able to install EXSLT.NET then you can use
If you can't use an extension function then your only way with standard
XSLT is to generate a new stylesheet and then apply it.
Martin Honnen --- MVP XML
Re: XPath as XML attribute - 08-22-2006 , 11:41 AM
stylesheet but (and correct me if I'm wrong) I was assuming that the
XSLT stylesheet that I wrote would generate the stylesheet which would
in turn generate an html document. I've written a stylsheet but all it
does it transform it into another stylesheet, it doesn't automatically
turn it into HTML. Is there some kind of instruction that you
specifically have to give in order to make the stylesheet execute
twice? Thank you.
Martin Honnen wrote:
|Thread Tools||Search this Thread|