- From: Florent Georges <darkman_spam@yahoo.fr>
- Date: Fri, 9 Feb 2007 13:11:28 +0100 (CET)
- To: xmlschema-dev@w3.org
Hi I need the regular expression for a QName. From §F.1 Character Classes [WXS-2] (http://www.w3.org/TR/xmlschema-2/#charcter-classes), I thought the following would be correct: [\i-:][\c-:]*:[\i-:][\c-:]* But the following example results in an error with Saxon 8 (I need this regex for an XSLT 2.0 stylesheet, the XSLT 2.0 REC point to XML Schema for regexs): <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:template match="/" name="main"> <res r="{ matches('pr:local', '[\i-:][\c-:]*:[\i-:][\c-:]*') }"/> </xsl:template> </xsl:stylesheet> $ saxon -it main qnames-regex.xsl Error on line 5 of qnames-regex.xsl: FORX0002: Error at character 5 in regular expression "[\i-:][\c-:]*:[\i-:][\c-:]*": multi_range Failed to compile stylesheet. 1 error detected. Does someone see what I did wrong? Regards, --drkm ___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
Received on Friday, 9 February 2007 12:18:20 UTC