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


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Need to import the XML schema namespace

But the schema for schemas *does* declare those base XSD types, e.g.,
this snippet:

  <xs:simpleType name="string" id="string">

        <hfp:hasFacet name="length"/>
        <hfp:hasFacet name="minLength"/>
        <hfp:hasFacet name="maxLength"/>
        <hfp:hasFacet name="pattern"/>
        <hfp:hasFacet name="enumeration"/>
        <hfp:hasFacet name="whiteSpace"/>
        <hfp:hasProperty name="ordered" value="false"/>
        <hfp:hasProperty name="bounded" value="false"/>
        <hfp:hasProperty name="cardinality" value="countably infinite"/>

        <hfp:hasProperty name="numeric" value="false"/>
    <xs:restriction base="xs:anySimpleType">
      <xs:whiteSpace value="preserve" id="string.preserve"/>


On 5/5/2010 11:10 PM, Liam R E Quin wrote:
> On Wed, 2010-05-05 at 21:28 -0700, Jeff Greif wrote:
>> Thanks, Liam.
>> I had never the seen it before today, but there seem to be several
>> Microsoft tools that generate (in WSDL documents)
>> <schema ...>
>>    <import namespace="http://www.w3.org/2001/XMLSchema";
>> schemaLocation="http://www.w3.org/2001/XMLSchema.xsd"; />
>> ...
> That's actually importing the schema for schemas.
> It declares things like xs:element, but does not define the
> base XSD types like xs:string itself of course.
> You can use it as an additional QA check for your schemas, to
> make sure they conform to the spec in terms of element structure etc.,
> although I hope the MS tools use a local copy and don't fetch it from
> the W3C servers each time!!
> Liam

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS