- From: Syd Bauman <Syd_Bauman@Brown.edu>
- Date: Sat, 30 Dec 2006 16:47:14 -0500
- To: public-schemata-users@w3.org
Thanks for the quick and helpful reply, Michael.
> I think that's true; Schema 1.0 had a typo ('simpleType' for
> 'restriction' ...)
Good to know I'm not going nuts ... I did check the errata before
posting.
> That may be one reason that the paragraph in question has been
> deleted from the current draft of XML Schema 1.1 and the rule has
> been reworded.
Ah, check. I see that the paragraph has been deleted from
http://www.w3.org/TR/xmlschema11-2/#pattern-rep-constr, but where has
the rule about handing multiple patterns been moved to?
> > Second, the idea seems unhelpful. If I wanted two regular
> > expressions R1 and R2 to appear in a single regular expression as
> > separate branches, I could have just written "R1|R2", no?
> Yes. But not if you wished to annotate the two branches
> separately, either for a human reader or for a machine.
Good point. (Where's that /x modifier when you need it?)
> [Explanation of 'step' and of my examples.]
> I hope this helps.
Yes, it does; thanks again.
Now, can anyone verify my belief that a Relax NG validator should
require that the content of <duck> match *both* pattern R1 *and*
pattern R2 given the following schema?
datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes"
start =
element test {
element duck {
xsd:token {
pattern = "R1"
pattern = "R2"
}
}+
}
Received on Saturday, 30 December 2006 21:47:25 UTC