OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xml-dev] XML Schema ?

I have already posted this to xmlschema-dev@w3c.org, 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):

  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)*))

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

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

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).