Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Declaring a global ID Attribute

From: Bubba <bubba_wgu_@^-------.--->
To: NULL
Date: 10/8/2007 10:07:00 AM

George Bina wrote:
> Hi Bubba,
> 
> It is difficult for me to understand very well your message but, in
> any case, you might take a look at the XML Schema for XML Schemas as
> there it is defined an optional id attribute that can appear on schema
> components, so it may be a good example to follow:
> 
> http://www.w3.org/TR/xmlschema-1/#normative-schemaSchema
> 
> Best Regards,
> George

Hi George,

Thanks for the reply, but this is over my head, I can't disclose the 
schema here as it's proprietry to the creator and confidential.

All I can say at best is that there are many simpleType definitions 
followed by complexType definitions, however none of the complexType are 
'wrapped' in <xs:element> tags as I've seen in O'reilly's XML Schema book.

Below is a representation of the structure of the schema I have.

<xs:schema ...>
<xs:simpleType name="Blah">
...
</xs:simpleType>

More simpleTypes

<xs:complexType name="Foo">
     <xs:sequence>
     <xs:element name="Bar" type="Blah" minOccurs="0" />
     <xs:element ... />
     ...
     </xs:sequence>
</xs:complexType>

More complexTypes...

<xs:complexType name="Master">
     <xs:sequence>
     <xs:element name="B" type="Foo" minOccurs="0"/>
     ...
     </xs:sequence>
</xs:complexType>

and finally

<xs:element name="M" type="Master" />
</xs:schema>

I'm really confused here as I know this 'global' id attribute is 
supported but for the life of me I can't work out how to fix this.

I'd really appreciate any help I can get with this.

-- 
Bubba



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent