Subject: Re: [xsl] Replace one entity with another From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 19 Oct 2009 14:56:01 +0100 |
> 
 is not an entity reference (which would be something ike é) it's a numeric character reference. But either way, XSLT does not see the reference at all, the XML parser replaces the reference by the referenced character, and that is what the XSLt processor sees. So you want to replace one character by another. So you can use replace() or translate() eg <xsl:value-of select="translate(.,'™','•')"/> 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 -> |
---|---|---|
[xsl] Replace one entity with anoth, Keith Gilbert | Thread | [xsl] favor certain elements, Szabo, Patrick \(LNG |
[xsl] Replace one entity with anoth, Keith Gilbert | Date | [xsl] favor certain elements, Szabo, Patrick \(LNG |
Month |