[Xml-compile] Possible problem with regex compilation?

Mark Overmeer solutions at overmeer.net
Mon Apr 1 20:32:51 GMT 2013


* Dan Lyke (dlyke at corp.sonic.net) [130401 19:18]:
> On Fri, 29 Mar 2013 23:34:12 +0100
> Mark Overmeer <mark at overmeer.net> wrote:
> > > (Some days, I wish I were just writing Java or C#...)
> > 
> > Why, are those xml libraries more widely used than libxml2?
> 
> Because those are the languages used by the people who sent me these
> XSDs. So wherever this bug lies, presumably the WSDL and XSD files
> would behave as this vendor expects them to.
> 
> Being interoperable trumps being correct.

According to http://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/#regexs
table G.4.2.1, the '^' should must escaped.  Fixing that mistake in
the schema solves the problem.
-- 
Regards,
               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net




More information about the Xml-compile mailing list