xsddoc/samples/stress imported2.xsd,1.4,1.5
Kurt Riede <[email protected]> Thu, 07 Oct 2004 22:50:32 +0000
| Newsgroups | gmane.text.xml.xframe.xsddoc.devel |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/xframe/xsddoc/samples/stress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23678/samples/stress
Modified Files:
imported2.xsd
Log Message:
more examples to test problems with references to types and elements defined in a cameleon schema
Index: imported2.xsd
===================================================================
RCS file: /cvsroot/xframe/xsddoc/samples/stress/imported2.xsd,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** imported2.xsd 30 Sep 2004 11:27:47 -0000 1.4
--- imported2.xsd 7 Oct 2004 22:50:30 -0000 1.5
***************
*** 1,8 ****
<?xml version="1.0" encoding="UTF-8"?>
! <xs:schema targetNamespace="http://xframe.sf.net/sample/stress/imported2" xmlns="http://xframe.sf.net/sample/stress/imported2"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:annotation>
<xs:documentation>This is another namespace to test imports.</xs:documentation>
</xs:annotation>
<xs:simpleType name="imported2baseType">
<xs:restriction base="xs:string">
--- 1,9 ----
<?xml version="1.0" encoding="UTF-8"?>
! <xs:schema targetNamespace="http://xframe.sf.net/sample/stress/imported2" xmlns:i2="http://xframe.sf.net/sample/stress/imported2"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:annotation>
<xs:documentation>This is another namespace to test imports.</xs:documentation>
</xs:annotation>
+ <xs:include schemaLocation="cameleon.xsd"/>
<xs:simpleType name="imported2baseType">
<xs:restriction base="xs:string">
***************
*** 11,16 ****
</xs:simpleType>
<xs:simpleType name="imported2DerivedType">
! <xs:restriction base="imported2baseType"></xs:restriction>
</xs:simpleType>
<xs:element name="testImported2" type="imported2DerivedType"/>
</xs:schema>
--- 12,35 ----
</xs:simpleType>
<xs:simpleType name="imported2DerivedType">
! <xs:restriction base="i2:imported2baseType"></xs:restriction>
</xs:simpleType>
<xs:element name="testImported2" type="imported2DerivedType"/>
+ <xs:element name="cameleonTypeUsage1" type="i2:cameleonType">
+ <xs:annotation>
+ <xs:documentation>The type of this element is defined in a cameleon
+ schema with empty target namespace.</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="cameleonTypeUsage2">
+ <xs:annotation>
+ <xs:documentation>This element contains another element that
+ referes an element declaration from a cameleon schema
+ with empty target namespace.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="i2:cameleon"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
</xs:schema>
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl