[Bug 5906] Problem in definition of <restriction> in <complexType>::<simpleContent>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5906





--- Comment #1 from Mukul Gandhi <gandhi.mukul@gmail.com>  2008-07-29 17:36:44 ---
I agree with Sandy.

Apart from his comments, I have following observation ...

In the grammar fragment, which Sandy posted, there is following fragment:

(minExclusive | minInclusive | maxExclusive | maxInclusive | totalDigits |
fractionDigits | maxScale |
minScale | length | minLength | maxLength | enumeration | whiteSpace | pattern
| assert | {any with namespace: ##other})*

This is of form, (a | b | c ... | x)* , where a, b, etc. are facets. This
grammar format gives me a feeling, that *only 1 facet* (because of the pipe
sign) can be present in <xs:restriction element. And the facet which is
present, can appear 0-n times.

But in reality, I think we can have multiple facet definitions on a single
xs:restriction definition, like following:

<restriction base=".."
 <facet1 value="" />
 <facet2 value="" />
 ... more facets
</restriction>

Is the grammar format, (a | b | c ... | x)* correct regarding facets? My doubt
comes from the fact, that the | symbol is used to select alternatives.

Regards,
Mukul


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 29 July 2008 17:37:19 UTC