title: XSL Replace of characters ( )
body: <p>I have a node with some data: </p>
  
  <pre><code>&lt;something&gt;Blah blah (Hello World) hihi&lt;/something&gt;
  </code></pre>
  
  <p>When I perform an XSLt i am attempting to escape the open and close brackets and can not for the life of me work out how to achieve this so far I am attempting something like this.</p>
  
  <pre><code>&lt;xsl:variable name="rb"&gt;(&lt;/xsl:variable&gt;
  &lt;xsl:message&gt;&lt;xsl:value-of select="replace(something, $rb, concat('\\', $rb))" /&lt;/xsl:message&gt;
  </code></pre>
  
  <p>This is the error I am getting using Saxon:</p>
  
  <blockquote>
    <p>Error at xsl:template on line 728 column 34 of something.xml:
      FORX0002: Error at character 1 in regular expression "(": expected ())</p>
  </blockquote>