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

Re: [xsl] escaping right parenthesis


Subject: Re: [xsl] escaping right parenthesis
From: "Mark Wilson pubs@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 9 Sep 2015 10:16:50 -0000

Worked the second time - I think I may have been reading an outdated file.
Sorry.
Mark

On 9/9/2015 2:55 AM, David Carlisle d.p.carlisle@xxxxxxxxx wrote:
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