|
[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Regex for QNames
From: Florent Georges <darkman_spam@yahoo.fr>
Date: Fri, 9 Feb 2007 13:11:28 +0100 (CET) To: xmlschema-dev@w3.org Message-ID: <4959.73154.qm@web23007.mail.ird.yahoo.com> 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.comReceived on Friday, 9 February 2007 12:18:20 GMT |
Subscribe in XML format
|






