Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redefine xs:element

Status
Not open for further replies.

JuliusIT

Programmer
Mar 15, 2006
1
IT
I have a problem redefining the xs:element in this way:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema"[/URL] xmlns="[URL unfurl="true"]http://www.giulio.org"[/URL] targetNamespace="[URL unfurl="true"]http://www.giulio.org"[/URL] elementFormDefault="qualified">
<xs:import namespace="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema"[/URL] schemaLocation="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema.xsd"/>[/URL]
<xs:complexType name="elementType">
<xs:complexContent>
<xs:extension base="xs:element">
<xs:attribute name="mioattr" type="mioattrtype"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="mioattrtype">
<xs:restriction base="xs:string">
<xs:enumeration value="union"/>
<xs:enumeration value="disjunction"/>
<xs:enumeration value="overlap"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="element" type="elementType"/>
</xs:schema>

When i validate it, all goes well, but
when i try to use this schema to validate another schema and i try to validate it, the validator come out with problems with the previous valid schema.
Can someone help me?
 
>when i try to use this schema to validate another schema and i try to validate it, the validator come out with problems with the previous valid schema.
Not quite understandable... Maybe try rephrase it and say it again that others might be more forthcoming?

 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top