xsl-list
[Top] [All Lists]

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

2012-11-20 12:32:05
You don’t need to (or rather, mustn’t) escape '/' in XSD/XPath regexes.

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

Chaps

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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--