Blame | Last modification | View Log | RSS feed
<?xml version='1.0'?><!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" [<!ENTITY % s ''><!ENTITY % p ''><!-- keep this XML 1.0 correct --><!ATTLIST schema xmlns:hfp CDATA #IMPLIEDxmlns:xhtml CDATA #IMPLIEDxmlns:xsi CDATA #IMPLIEDxsi:schemaLocation CDATA #IMPLIED><!ELEMENT xhtml:p ANY><!ELEMENT xhtml:em ANY>]><schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty" xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty" xmlns:xhtml="http://www.w3.org/1999/xhtml"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml.xsd"><annotation><documentation><xhtml:p> This schema defines 2 elements for use in theappinfo portion section of (potentially) all builtin datatypes in the schemafor XML Schema Part 2: Datatypes. </xhtml:p><xhtml:p> One intended use ofthis appinfo is in the generation of the HTML version of the XML Schema Part 2:Datatypes specification itself. All portions of the HTML text which describethe facets and/or properties of each datatype is generated by an XSLTtransformation which keys off of this appinfo. </xhtml:p><xhtml:p> Schemaprocessors may have another use for this appinfo (although one certainly notrequired in any way by the specification). The information may be useful indynamically building validation modules/classes and/or user-interfaces forschema creation. </xhtml:p></documentation></annotation><element name="hasFacet"><annotation><documentation><xhtml:p>hasFacet is used to signal that the contraining facetgiven in the name attribute is applicable to a primitivedatatype (and all types derived from it).</xhtml:p><xhtml:p>Note: this element will only appear in the appinfo ofprimitive types or built-in types derived by "list".</xhtml:p><xhtml:p>A schema processor (or the XSLT which generates theHTML version of the XML Schema Part 2: Datatypesspecification) which reads a derived simpleTypedefinition should walk up the base type chain untilit reaches the primitive type at the top of the chainand "push" all facets found their down to all derivedtypes in the chain.</xhtml:p></documentation></annotation><complexType><attribute name="name" use="required"><simpleType><annotation><documentation><xhtml:p>This datatype names all existing contraining facets.</xhtml:p><xhtml:p>Question: should each of the enumerations below begiven a documentation annotation, which would containthe text to be used in the definition of the facetin the XML Schema Part 2: Datatypes specification?Might be nice to try to collect all of that informationtogether here.</xhtml:p></documentation></annotation><restriction base="NMTOKEN"><enumeration value="length"/><enumeration value="minLength"/><enumeration value="maxLength"/><enumeration value="pattern"/><enumeration value="enumeration"/><enumeration value="maxInclusive"/><enumeration value="maxExclusive"/><enumeration value="minInclusive"/><enumeration value="minExclusive"/><enumeration value="totalDigits"/><enumeration value="fractionDigits"/><enumeration value="whiteSpace"/><enumeration value="maxScale"/><enumeration value="minScale"/></restriction></simpleType></attribute></complexType></element><element name="hasProperty"><annotation><documentation><xhtml:p> hasProperty is used to signal that the propertygiven in the name attribute has the value given in the value attribute for thedatatype in which it occurs (and all types derived from it, which do notoverride the value of the property). </xhtml:p><xhtml:p> Note: this elementmay appear in the appinfo of primitive and built-in derived types. </xhtml:p><xhtml:p> A schema processor (or the XSLT which generates the HTML version ofthe XML Schema Part 2: Datatypes specification) which reads a simpleTypedefinition should gather the information from any occurances of hasProperty inthat simpleType definition, and then walk up the base type chain gatheringinformation from any occurances of hasProperty (unless a value was given to thename in a dervied type) until either it reaches the primitive type at the topof the chain or it has gathered values for all existing properties. </xhtml:p></documentation></annotation><complexType><attribute name="name" use="required"><simpleType><annotation><documentation><xhtml:p> This datatype names all existing fundamentalfacets, otherwise known as properties (with the exception of<xhtml:em>equality</xhtml:em>, a property which has no<xhtml:em>value</xhtml:em>). </xhtml:p><xhtml:p> Question: should each ofthe enumerations below be given a documentation annotation, which would containthe text to be used in the definition of the properties in the XML Schema Part2: Datatypes specification? Might be nice to try to collect all of thatinformation together here. </xhtml:p></documentation></annotation><restriction base="NMTOKEN"><enumeration value="ordered"/><enumeration value="bounded"/><enumeration value="cardinality"/><enumeration value="numeric"/></restriction></simpleType></attribute><attribute name="value" type="normalizedString" use="required"/></complexType></element></schema>