Hi all,
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
<Lineelement, 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
2005</Line>
<Line num="2" xpath="Additions/AddDeductions/Total">Total Deductions
for 2005</Line>
<Line num="3"
xpath="Additions/AddDeductions/InterestPaidCorporateStockhold">Interest
paid to all corporations</Line>
I've tried
<xsl:for-each select=".">
<td>
<xsl:value-of select="@xpath" />
</td>
</xsl:for-each>
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?
Thanks