Subject: Re: [xsl] Replace function with <> characters? From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 6 Jan 2009 09:38:55 GMT |
> Do I make myself clear :) yes, finally. There is no < character in the input that XSLT sees. (It has no access to the tags in the document, they are all resolved by the XML parser before XSLT starts). What there is is a z element with content " 3 " and you want to produce the string "<z> 3 </z>" from that so: <xsl:template match="z"> <xsl:text><</xsl:text> <xsl:value-of select="name()"/> <xsl:text>></xsl:text> <xsl:apply-templates/> <xsl:text></</xsl:text> <xsl:value-of select="name()"/> <xsl:text>></xsl:text> </xsl:template/> David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Re: [xsl] Replace function with, Michael Kay | Thread | Re: Re: [xsl] Replace function with, Rune Stilling |
RE: Re: [xsl] Replace function with, Michael Kay | Date | RE: [xsl] CDATA Handling, Michael Kay |
Month |