[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Fwd: Re: A XSD regex to allow a QName in Clark form
---------- Forwarded message ----------
From: "Rick Jelliffe" <rjelliffe@allette.com.au> Date: 15 Sep 2017 11:34 AM Subject: Re: A XSD regex to allow a QName in Clark form To: "Christophe Marchand" <cmarchand@o...> Cc: Why not elaborate them? Trying to get the minimal regex is a mug' s game, and bad for maintainability unless by accident there is a simplification. Better to be explicit about each pattern: So something like: (CLARK)|(XSLT3)|(QNAME) Where (assuming you are already tokenizing the string by whitespace) CLARK is \{[^\{\}]+\}[^:]+ XSLT3 is Q\{[^\{\}]+\}[^:]+ QNAME is [^:]+:[^:]+ You get the idea: they are a little simplified, of course. It depends on whether you want regexes for parsing or for validating. Regards Rick On 14 Sep 2017 19:17, <cmarchand@o...> wrote: As I use this value to create a new net.sf.saxon.s9api.QName, via constructor and factory methods, I'm gonna check this.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|