[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] escaping right parenthesis


Subject: Re: [xsl] escaping right parenthesis
From: "David Carlisle d.p.carlisle@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 9 Sep 2015 09:55:13 -0000

On 9 September 2015 at 10:45, Mark Wilson pubs@xxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> Neither appears to.

hard to guess why unseen code doesn't work:-)

This

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

 <xsl:template name="x">
  <xsl:message select="replace('abc 123 (0123)','\(0','X')"/>
 </xsl:template>
</xsl:stylesheet>


Produces

$ saxon9 -it:x gg.xsl
abc 123 X123)


where the (0 has been replaced.


David


Current Thread