[jsdl-wg] Version 1.0 of the XSD Schema for JSDL

Donal K. Fellows donal.k.fellows at manchester.ac.uk
Wed Nov 24 07:37:18 CST 2004


A Stephen McGough wrote:
> I've put this version in for now - as it seems the most complete. 
> However, if I'm correct the following is a valid string
> "34-45 55-66"
> 
> Am I correct? Is there any way to force people to put a comma between 
> these?

Actually, the RE-in-XSD spec also states (in a Note in the appendix)
that REs in pattern facets are implicitly anchored at both ends. If you
add those anchors in explicitly when testing in some other programming
language (e.g. Perl) you'll see that your example is illegal. So I think
my RE really is correct. :^) I did have a quick panic when you said
there might be a problem with it though; it's complex enough that I
couldn't be 100% sure just by inspection. :^/

Donal.





More information about the jsdl-wg mailing list