Re: [xsl] Replace one entity with another

Subject: Re: [xsl] Replace one entity with another
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 19 Oct 2009 14:56:01 +0100
> &#x000A;

is not an entity reference (which would be something ike &eacute;) 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(.,'&#153;','&#x2022;')"/>


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