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

Re: [xsl] Basic template matching issues - I think?

Subject: Re: [xsl] Basic template matching issues - I think?
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Tue, 20 Nov 2012 19:31:42 +0100

You dont need to (or rather, mustnt) escape '/' in XSD/XPath regexes.

On 2012-11-20 18:55, An OldBloke wrote:


Apologies for my myopicness earlier.

I've made some progress but am still seeing a RegEx error generated. The RegEx itself works in test websites(minus the double curly brackets) but gives the following error:-

C:\>java -jar saxon9he.jar -o Result.xml text.xml regextime.xslt
Error at xsl:analyze-string on line 13 of regextime.xslt:
   XTDE1140: Error in regular expression: net.sf.saxon.trans.XPathException: Error at
   character 8 in regular expression "(\d{2})\/(\d{2})\/(\d{4}) (\d{...": invalid
  escape sequence
Failed to compile stylesheet. 1 error detected.

Current Thread