[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: What to use instead of xsl:value-of
Pankaj Chaturvedi schrieb:
[...] the problem is that <xsl:value-of> does not give the correct output for child elements/entities ([#x002d], missing <citationref> element etc) of <endnote>. Just define a template to match the first text node below <endnote>. <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="endnote/text()[ 1 ]"> <xsl:value-of select="substring-before( . , ' ')"/> <xsl:text>	</xsl:text> <xsl:value-of select="substring-after( . , ' ')"/> </xsl:template> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> </xsl:transform> Oddly, this doesn't work with xsltproc :-( Michael Ludwig
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|