[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Gregory M. Messner" <gmessner@b...>
  • To: xml-dev@l...
  • Date: Wed, 12 Sep 2001 10:35:42 -0700


I have already posted this to xmlschema-dev@w..., I'm hoping someone in
this list might be able to provide an answer a little quicker.

Following is the definition of <restriction> on a simpleType (from XML
Schema Part 1: Structures):

<restriction 
  base = QName 
  id = ID 
  {any attributes with non-schema namespace . . .}>
  Content: (annotation?, (simpleType?, (minExclusive | minInclusive |
maxExclusive | maxInclusive | totalDigits | fractionDigits | length |
minLength | maxLength | enumeration | whiteSpace | pattern)*))
</restriction>

Based on this definition, is the following XML Schema snippet valid?

<simpleType name="CryptoBinary">
  <restriction base="base64Binary"></restriction>
</simpleType>

Notice that the restriction has no content. If this is valid, then is the
intent to just extend the "base64Binary" builtin type? Or assign a different
name to the "base64Binary" builtin type? I thought <restriction> was
intended to restrict a new datatype to a *subset* of an existing type?

BTW, this type of restriction is used throughout the XML Signature Schema
Instance (xmldsig-core-schema.xsd).

Thanks,
Greg


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member