xsddoc/samples/stress cameleon.xsd,1.1,1.2 imported.xsd,1.3,1.4
Kurt Riede <[email protected]>
| 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-serv29076/samples/stress
Modified Files:
cameleon.xsd imported.xsd
Log Message:
more examples to test problems with references to types and elements defined in a cameleon schema
Index: imported.xsd
===================================================================
RCS file: /cvsroot/xframe/xsddoc/samples/stress/imported.xsd,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** imported.xsd 30 Aug 2004 07:07:59 -0000 1.3
--- imported.xsd 30 Sep 2004 11:11:29 -0000 1.4
***************
*** 10,12 ****
--- 10,30 ----
<xs:restriction base="ii:simpleImportedImported1"></xs:restriction>
</xs:simpleType>
+ <xs:element name="cameleonTypeUsage1" type="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="cameleonType"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
</xs:schema>
Index: cameleon.xsd
===================================================================
RCS file: /cvsroot/xframe/xsddoc/samples/stress/cameleon.xsd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** cameleon.xsd 30 Aug 2004 07:07:59 -0000 1.1
--- cameleon.xsd 30 Sep 2004 11:11:29 -0000 1.2
***************
*** 3,11 ****
<xs:annotation>
<xs:documentation>This schema without a namespace is used to test a cameleon schema design.
! It is included in different namespaces where the components are getting part of
! the namespace of the including schema.</xs:documentation>
</xs:annotation>
! <xs:element name="cameleon" type="cameleonType"/>
<xs:complexType name="cameleonType">
<xs:attribute name="attr1" type="xs:string"/>
<xs:attribute name="attr2" type="xs:string"/>
--- 3,20 ----
<xs:annotation>
<xs:documentation>This schema without a namespace is used to test a cameleon schema design.
! It is included in different namespaces where the components are getting part of
! the namespace of the including schema.</xs:documentation>
</xs:annotation>
! <xs:element name="cameleon" type="cameleonType">
! <xs:annotation>
! <xs:documentation>This element is declared in a cameleon
! schema with empty target namespace.</xs:documentation>
! </xs:annotation>
! </xs:element>
<xs:complexType name="cameleonType">
+ <xs:annotation>
+ <xs:documentation>This complex type is declared in a cameleon
+ schema with empty target namespace.</xs:documentation>
+ </xs:annotation>
<xs:attribute name="attr1" type="xs:string"/>
<xs:attribute name="attr2" type="xs:string"/>
-------------------------------------------------------
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