 |
 |
 |
Thanks a lot~
And one more question.
Could I allow two xsi:type such as xs:string and xs:anyURI for one element
as below?
<xs:element name="duration">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xml:lang" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
Thanks a lot,
Best regards,
Oknam
>From: "Michael Kay" <mike@s...>
>To: "'oknam park'" <ponda7777@h...>,<xmlschema-dev@w...>
>Subject: RE: Schema Help
>Date: Fri, 10 Feb 2006 09:17:26 -0000
>
>
>
> >
> > 1) How could I define type="xs:anyURI"
> > for identifier element below? it should be for only identifier, not
> > sub-element such as gemq:sid, etc.
> >
> > <xs:element name="identifier">
> > <xs:complexType mixed="true">
>
>If an element has mixed content, you can't constrain the content of the
>text
>nodes (which I imagine is what your question is asking).
> >
> > 2) How could I allow to represent "<dc:description
> > xml:lang='en'>" in a xml
> > instance file in a schem below?
> >
> > <xs:element name="description">
> > <xs:complexType mixed="true">
> > <xs:sequence>
> > <xs:element ref="dcterms:abstract" minOccurs="0"
> > maxOccurs="unbounded"/>
> > <xs:element ref="dcterms:tableOfContents" minOccurs="0"
> > maxOccurs="unbounded"/>
> > </xs:sequence>
> > </xs:complexType>
> > </xs:element>
>
>Import the schema for the XML namespace, and add <xs:attribute
>ref="xml:lang"/> after the xs:sequence (but inside the xs:complexType).
>
>Michael Kay
>http://www.saxonica.com/
>
>
>
From richard.liu@u... Mon Feb 13 07:10:02 2006
Received: from lisa.w3.org ([128.30.52.41])
by fr
|
 | 

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