You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mu...@apache.org on 2012/12/16 10:13:39 UTC
svn commit: r1422490 [8/13] - in /xerces/java/branches/xs-1.1-tests: ./
data/ data/assertions/ data/assertions/ST/ data/assertions/ST/list/
data/assertions/attributes/ data/assertions/defaultValues/
data/assertions/errors/ data/assertions/list_union/ d...
Added: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/countries.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/countries.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/countries.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/countries.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,276 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+
+ <xs:simpleType name="Countries">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="Afghanistan"/>
+ <xs:enumeration value="Albania"/>
+ <xs:enumeration value="Algeria"/>
+ <xs:enumeration value="American_samoa"/>
+ <xs:enumeration value="Andorra"/>
+ <xs:enumeration value="Angola"/>
+ <xs:enumeration value="Anguilla"/>
+ <xs:enumeration value="Antartica"/>
+ <xs:enumeration value="Antigua_and_barbuda"/>
+ <xs:enumeration value="Arctic_ocean"/>
+ <xs:enumeration value="Argentina"/>
+ <xs:enumeration value="Armenia"/>
+ <xs:enumeration value="Aruba"/>
+ <xs:enumeration value="Ashmore_and_cartier_islands"/>
+ <xs:enumeration value="Atlantic_ocean"/>
+ <xs:enumeration value="Australia"/>
+ <xs:enumeration value="Austria"/>
+ <xs:enumeration value="Azerbaijan"/>
+ <xs:enumeration value="Bahamas"/>
+ <xs:enumeration value="Bahrain"/>
+ <xs:enumeration value="Baker_island"/>
+ <xs:enumeration value="Bangladesh"/>
+ <xs:enumeration value="Barbados"/>
+ <xs:enumeration value="Bassas_da_india"/>
+ <xs:enumeration value="Belarus"/>
+ <xs:enumeration value="Belgium"/>
+ <xs:enumeration value="Benin"/>
+ <xs:enumeration value="Bermuda"/>
+ <xs:enumeration value="Bhutan"/>
+ <xs:enumeration value="Bhutan"/>
+ <xs:enumeration value="Bolivia"/>
+ <xs:enumeration value="Bosnia_and_herzegovina"/>
+ <xs:enumeration value="Botswana"/>
+ <xs:enumeration value="Bouvet_island"/>
+ <xs:enumeration value="Brazil"/>
+ <xs:enumeration value="British_indian_ocean_territory"/>
+ <xs:enumeration value="British_virgin_islands"/>
+ <xs:enumeration value="Brunei"/>
+ <xs:enumeration value="Bulgaria"/>
+ <xs:enumeration value="Burkina_faso"/>
+ <xs:enumeration value="Burma"/>
+ <xs:enumeration value="Burundi"/>
+ <xs:enumeration value="Cambodia"/>
+ <xs:enumeration value="Cameroon"/>
+ <xs:enumeration value="Canada"/>
+ <xs:enumeration value="Cape_verde"/>
+ <xs:enumeration value="Cayman_islands"/>
+ <xs:enumeration value="Central_african_republic"/>
+ <xs:enumeration value="Chad"/>
+ <xs:enumeration value="Chile"/>
+ <xs:enumeration value="China"/>
+ <xs:enumeration value="Christmas_island"/>
+ <xs:enumeration value="Clipperton_island"/>
+ <xs:enumeration value="Cocos_keeling_islands"/>
+ <xs:enumeration value="Colombia"/>
+ <xs:enumeration value="Comoros"/>
+ <xs:enumeration value="Congo_democratic_republic_of_the"/>
+ <xs:enumeration value="Congo_republic_of_the"/>
+ <xs:enumeration value="Cook_islands"/>
+ <xs:enumeration value="Coral_sea_islands"/>
+ <xs:enumeration value="Costa_rica"/>
+ <xs:enumeration value="Cote_divoire"/>
+ <xs:enumeration value="Croatia"/>
+ <xs:enumeration value="Cuba"/>
+ <xs:enumeration value="Cyprus"/>
+ <xs:enumeration value="Czech_republic"/>
+ <xs:enumeration value="Denmark"/>
+ <xs:enumeration value="Djibouti"/>
+ <xs:enumeration value="Dominica"/>
+ <xs:enumeration value="Dominican_republic"/>
+ <xs:enumeration value="Ecuador"/>
+ <xs:enumeration value="Egypt"/>
+ <xs:enumeration value="El_salvador"/>
+ <xs:enumeration value="Equatorial_guinea"/>
+ <xs:enumeration value="Eritrea"/>
+ <xs:enumeration value="Estonia"/>
+ <xs:enumeration value="Ethiopia"/>
+ <xs:enumeration value="Europa_island"/>
+ <xs:enumeration value="Falkland_islands_(islas_malvinas)"/>
+ <xs:enumeration value="Faroe_islands"/>
+ <xs:enumeration value="Fiji"/>
+ <xs:enumeration value="Finland"/>
+ <xs:enumeration value="France"/>
+ <xs:enumeration value="French_guiana"/>
+ <xs:enumeration value="French_polynesia"/>
+ <xs:enumeration value="French_southern_and_antartica_lands"/>
+ <xs:enumeration value="Gabon"/>
+ <xs:enumeration value="Gambia_the"/>
+ <xs:enumeration value="Gaza_strip"/>
+ <xs:enumeration value="Georgia"/>
+ <xs:enumeration value="Germany"/>
+ <xs:enumeration value="Ghana"/>
+ <xs:enumeration value="Gibraltar"/>
+ <xs:enumeration value="Glorioso_islands"/>
+ <xs:enumeration value="Greece"/>
+ <xs:enumeration value="Greenland"/>
+ <xs:enumeration value="Grenada"/>
+ <xs:enumeration value="Guadeloupe"/>
+ <xs:enumeration value="Guam"/>
+ <xs:enumeration value="Guatemala"/>
+ <xs:enumeration value="Guernsey"/>
+ <xs:enumeration value="Guinea"/>
+ <xs:enumeration value="Guinea_bissau"/>
+ <xs:enumeration value="Guyana"/>
+ <xs:enumeration value="Haiti"/>
+ <xs:enumeration value="Heard_island_and_mcdonald_islands"/>
+ <xs:enumeration value="Holy_see_(vatican_city)"/>
+ <xs:enumeration value="Honduras"/>
+ <xs:enumeration value="Hong_kong"/>
+ <xs:enumeration value="Howland_island"/>
+ <xs:enumeration value="Hungary"/>
+ <xs:enumeration value="Iceland"/>
+ <xs:enumeration value="India"/>
+ <xs:enumeration value="Indian_ocean"/>
+ <xs:enumeration value="Indonesia"/>
+ <xs:enumeration value="Iran"/>
+ <xs:enumeration value="Iraq"/>
+ <xs:enumeration value="Ireland"/>
+ <xs:enumeration value="Israel"/>
+ <xs:enumeration value="Italy"/>
+ <xs:enumeration value="Jamaica"/>
+ <xs:enumeration value="Jan_mayen"/>
+ <xs:enumeration value="Japan"/>
+ <xs:enumeration value="Jarvis_island"/>
+ <xs:enumeration value="Jersey"/>
+ <xs:enumeration value="Johnston_atoll"/>
+ <xs:enumeration value="Jordan"/>
+ <xs:enumeration value="Juan_de_nova_island"/>
+ <xs:enumeration value="Kazakhstan"/>
+ <xs:enumeration value="Kenya"/>
+ <xs:enumeration value="Kingman_reef"/>
+ <xs:enumeration value="Kiribati"/>
+ <xs:enumeration value="Korea_north"/>
+ <xs:enumeration value="Korea_south"/>
+ <xs:enumeration value="Kuwait"/>
+ <xs:enumeration value="Kyrgyzstan"/>
+ <xs:enumeration value="Laos"/>
+ <xs:enumeration value="Latvia"/>
+ <xs:enumeration value="Lebanon"/>
+ <xs:enumeration value="Lesotho"/>
+ <xs:enumeration value="Liberia"/>
+ <xs:enumeration value="Libya"/>
+ <xs:enumeration value="Liechtenstein"/>
+ <xs:enumeration value="Lithuania"/>
+ <xs:enumeration value="Luxembourg"/>
+ <xs:enumeration value="Macau"/>
+ <xs:enumeration value="Macedonia_the_former_yugoslav_republic_of"/>
+ <xs:enumeration value="Madagascar"/>
+ <xs:enumeration value="Malawi"/>
+ <xs:enumeration value="Malaysia"/>
+ <xs:enumeration value="Maldives"/>
+ <xs:enumeration value="Mali"/>
+ <xs:enumeration value="Malta"/>
+ <xs:enumeration value="Man_isle_of"/>
+ <xs:enumeration value="Marshall_islands"/>
+ <xs:enumeration value="Martinique"/>
+ <xs:enumeration value="Mauritania"/>
+ <xs:enumeration value="Mauritius"/>
+ <xs:enumeration value="Mayotte"/>
+ <xs:enumeration value="Mexico"/>
+ <xs:enumeration value="Micronesia_federated_states_of"/>
+ <xs:enumeration value="Midway_islands"/>
+ <xs:enumeration value="Moldova"/>
+ <xs:enumeration value="Monaco"/>
+ <xs:enumeration value="Mongolia"/>
+ <xs:enumeration value="Montserrat"/>
+ <xs:enumeration value="Morocco"/>
+ <xs:enumeration value="Mozambique"/>
+ <xs:enumeration value="Namibia"/>
+ <xs:enumeration value="Nauru"/>
+ <xs:enumeration value="Navassa_island"/>
+ <xs:enumeration value="Nepal"/>
+ <xs:enumeration value="Netherlands"/>
+ <xs:enumeration value="Netherlands_antilles"/>
+ <xs:enumeration value="New_caledonia"/>
+ <xs:enumeration value="New_zealand"/>
+ <xs:enumeration value="Nicaragua"/>
+ <xs:enumeration value="Niger"/>
+ <xs:enumeration value="Nigeria"/>
+ <xs:enumeration value="Niue"/>
+ <xs:enumeration value="Norfolk_island"/>
+ <xs:enumeration value="Northern_mariana_islands"/>
+ <xs:enumeration value="Norway"/>
+ <xs:enumeration value="Oman"/>
+ <xs:enumeration value="Pacific_ocean"/>
+ <xs:enumeration value="Pakistan"/>
+ <xs:enumeration value="Palau"/>
+ <xs:enumeration value="Palmyra_atoll"/>
+ <xs:enumeration value="Panama"/>
+ <xs:enumeration value="Papua_new_guinea"/>
+ <xs:enumeration value="Paracel_islands"/>
+ <xs:enumeration value="Paraguay"/>
+ <xs:enumeration value="Peru"/>
+ <xs:enumeration value="Philippines"/>
+ <xs:enumeration value="Pitcairn_islands"/>
+ <xs:enumeration value="Poland"/>
+ <xs:enumeration value="Portugal"/>
+ <xs:enumeration value="Puerto_rico"/>
+ <xs:enumeration value="Qatar"/>
+ <xs:enumeration value="Reunion"/>
+ <xs:enumeration value="Romania"/>
+ <xs:enumeration value="Russia"/>
+ <xs:enumeration value="Rwanda"/>
+ <xs:enumeration value="Saint_Helena"/>
+ <xs:enumeration value="Saint_Kitts_and_Nevis"/>
+ <xs:enumeration value="Saint_Lucia"/>
+ <xs:enumeration value="Saint_pierre_and_miquelon"/>
+ <xs:enumeration value="Saint_vincent_and_the_grenadines"/>
+ <xs:enumeration value="Samoa"/>
+ <xs:enumeration value="San_marino"/>
+ <xs:enumeration value="Sao_tome_and_principe"/>
+ <xs:enumeration value="Saudi_arabia"/>
+ <xs:enumeration value="Senegal"/>
+ <xs:enumeration value="Seychelle"/>
+ <xs:enumeration value="Sierra_leone"/>
+ <xs:enumeration value="Singapore"/>
+ <xs:enumeration value="Slovakia"/>
+ <xs:enumeration value="Slovenia"/>
+ <xs:enumeration value="Solomon_islands"/>
+ <xs:enumeration value="Somalia"/>
+ <xs:enumeration value="South_africa"/>
+ <xs:enumeration value="South_georgia_and_the_south_sandwich_islands"/>
+ <xs:enumeration value="Southern_ocean"/>
+ <xs:enumeration value="Spain"/>
+ <xs:enumeration value="Spratly_islands"/>
+ <xs:enumeration value="Sri_lanka"/>
+ <xs:enumeration value="Sudan"/>
+ <xs:enumeration value="Suriname"/>
+ <xs:enumeration value="Svalbard"/>
+ <xs:enumeration value="Swaziland"/>
+ <xs:enumeration value="Sweden"/>
+ <xs:enumeration value="Switzerland"/>
+ <xs:enumeration value="Syria"/>
+ <xs:enumeration value="Taiwan"/>
+ <xs:enumeration value="Tajikistan"/>
+ <xs:enumeration value="Tanzania"/>
+ <xs:enumeration value="Thailand"/>
+ <xs:enumeration value="Togo"/>
+ <xs:enumeration value="Tokelau"/>
+ <xs:enumeration value="Tonga"/>
+ <xs:enumeration value="Trinidad_and_tobago"/>
+ <xs:enumeration value="Tromelin_island"/>
+ <xs:enumeration value="Tunisia"/>
+ <xs:enumeration value="Turkey"/>
+ <xs:enumeration value="Turkmenistan"/>
+ <xs:enumeration value="Turks_and_caicos_islands"/>
+ <xs:enumeration value="Tuvalu"/>
+ <xs:enumeration value="Uganda"/>
+ <xs:enumeration value="Ukraine"/>
+ <xs:enumeration value="United_arab_emirates"/>
+ <xs:enumeration value="United_kingdom"/>
+ <xs:enumeration value="United_states"/>
+ <xs:enumeration value="Uruguay"/>
+ <xs:enumeration value="Uzbekistan"/>
+ <xs:enumeration value="Vanuatu"/>
+ <xs:enumeration value="Venezuela"/>
+ <xs:enumeration value="Vietnam"/>
+ <xs:enumeration value="Virgin_islands"/>
+ <xs:enumeration value="Wake_island"/>
+ <xs:enumeration value="Wallis_and_futuna"/>
+ <xs:enumeration value="West_bank"/>
+ <xs:enumeration value="Western_sahara"/>
+ <xs:enumeration value="World"/>
+ <xs:enumeration value="Yemen"/>
+ <xs:enumeration value="Yugoslavia"/>
+ <xs:enumeration value="Zambia"/>
+ <xs:enumeration value="Zimbabwe"/>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/countries.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/countries.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/holiday.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/holiday.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/holiday.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/holiday.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<holiday xml:lang="en">
+
+ <country-visited>Greece</country-visited>
+ <country-visited>Italy</country-visited>
+ <country-visited>Luxembourg</country-visited>
+
+</holiday>
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/holiday.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/holiday.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/holiday.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/holiday.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/holiday.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/holiday.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+
+
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="xml.xsd"/>
+
+
+ <xs:include schemaLocation="countries.xsd" />
+
+
+ <xs:element name="holiday">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="country-visited" type="xs:string" maxOccurs="unbounded">
+ <xs:alternative test="@xml:lang='en'" type="Countries" />
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute ref="xml:lang" use="required" inheritable="true" />
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/holiday.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/holiday.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/meeting/meeting.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/meeting/meeting.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/meeting/meeting.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/meeting/meeting.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Example>
+
+ <Meeting start-time="08:00:00" end-time="09:00:00">
+ <Subject>Discuss the new project</Subject>
+ <Tea>green</Tea>
+ </Meeting>
+
+ <Meeting start-time="13:00:00" end-time="14:00:00">
+ <Subject>Discuss the new project</Subject>
+ <Juice>apple</Juice>
+ </Meeting>
+
+</Example>
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/meeting/meeting.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/meeting/meeting.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/meeting/meeting.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/meeting/meeting.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/meeting/meeting.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/meeting/meeting.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+
+ <xs:element name="Example">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Meeting" type="MeetingType" maxOccurs="unbounded">
+ <xs:alternative test="@end-time le '12:00:00'" type="MorningMeeting" />
+ <xs:alternative test="@end-time gt '12:00:00'" type="AfternoonMeeting" />
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="MeetingType">
+ <xs:sequence>
+ <xs:element name="Subject" type="xs:string"/>
+ </xs:sequence>
+ <xs:attribute name="start-time" type="xs:time" />
+ <xs:attribute name="end-time" type="xs:time" />
+ <xs:assert test="@end-time gt @start-time" />
+ </xs:complexType>
+
+ <xs:complexType name="MorningMeeting">
+ <xs:complexContent>
+ <xs:extension base="MeetingType">
+ <xs:sequence>
+ <xs:element name="Tea" type="xs:string"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="AfternoonMeeting">
+ <xs:complexContent>
+ <xs:extension base="MeetingType">
+ <xs:sequence>
+ <xs:element name="Juice" type="xs:string"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/meeting/meeting.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/meeting/meeting.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Example>
+
+ <Publication kind="book">
+ <Title>Illusions The Adventures of a Reluctant Messiah</Title>
+ <Author>Richard Bach</Author>
+ <Date>1977</Date>
+ <ISBN>0-440-34319-4</ISBN>
+ <Publisher>Dell Publishing Co.</Publisher>
+ </Publication>
+
+ <Publication kind="magazine">
+ <Title>Natural Health</Title>
+ <Date>1999</Date>
+ </Publication>
+
+ <Publication kind="CD">
+ <Title>Time to Say Goodbye</Title>
+ <Author>Sarah Brightman</Author>
+ <Date>1997</Date>
+ </Publication>
+
+</Example>
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication_v1.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication_v1.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication_v1.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication_v1.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+
+ <xs:element name="Example">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Publication" type="PublicationType" maxOccurs="unbounded">
+ <xs:alternative test="@kind eq 'magazine'" type="MagazineType" />
+ <xs:alternative test="@kind eq 'book'" type="BookType" />
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="PublicationType">
+ <xs:sequence>
+ <xs:element name="Title" type="xs:string"/>
+ <xs:element name="Author" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="Date" type="xs:gYear"/>
+ </xs:sequence>
+ <xs:attribute name="kind" type="xs:string" />
+ </xs:complexType>
+
+ <xs:complexType name="BookType">
+ <xs:complexContent>
+ <xs:extension base="PublicationType">
+ <xs:sequence>
+ <xs:element name="ISBN" type="xs:string"/>
+ <xs:element name="Publisher" type="xs:string"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="MagazineType">
+ <xs:complexContent>
+ <xs:restriction base="PublicationType">
+ <xs:sequence>
+ <xs:element name="Title" type="xs:string"/>
+ <xs:element name="Date" type="xs:gYear"/>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication_v1.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication_v1.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication_v5.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication_v5.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication_v5.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication_v5.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+
+ <xs:element name="Example">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Publication" type="PublicationType" maxOccurs="unbounded">
+ <xs:alternative test="@kind eq 'magazine'" type="MagazineType" />
+ <xs:alternative test="@kind eq 'book'" type="BookType" />
+ <xs:alternative test="(@kind ne 'book') and (@kind ne 'magazine')" type="xs:error" />
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="PublicationType">
+ <xs:sequence>
+ <xs:element name="Title" type="xs:string"/>
+ <xs:element name="Author" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="Date" type="xs:gYear"/>
+ </xs:sequence>
+ <xs:attribute name="kind" type="xs:string" />
+ </xs:complexType>
+
+ <xs:complexType name="BookType">
+ <xs:complexContent>
+ <xs:extension base="PublicationType">
+ <xs:sequence>
+ <xs:element name="ISBN" type="xs:string"/>
+ <xs:element name="Publisher" type="xs:string"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="MagazineType">
+ <xs:complexContent>
+ <xs:restriction base="PublicationType">
+ <xs:sequence>
+ <xs:element name="Title" type="xs:string"/>
+ <xs:element name="Date" type="xs:gYear"/>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication_v5.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/publication/publication_v5.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/xml.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/xml.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/xml.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/xml.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,54 @@
+<?xml version='1.0'?>
+<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xml:lang="en">
+
+ <xs:annotation>
+ <xs:documentation>
+ This schema defines attributes and an attribute group
+ suitable for use by schemas wishing to allow xml:lang or
+ xml:space attributes on elements they define.
+
+ To enable this, such a schema must import this schema
+ for the XML namespace, e.g. as follows:
+ <schema . . .>
+ . . .
+ <import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
+
+ Subsequently, qualified reference to either of the attributes
+ or the group defined below will have the desired effect, e.g.
+
+ <type . . .>
+ . . .
+ <attributeGroup ref="xml:specialAttrs"/>
+
+ will define a type which will schema-validate a instance
+ element with both xml:space and xml:lang attribute
+ </xs:documentation>
+ </xs:annotation>
+
+ <xs:attribute name="lang" type="xs:language">
+ <xs:annotation>
+ <xs:documentation>
+ In due course, we should install the relevant ISO
+ 2- and 3-letter codes as the enumerated possible values . .
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+
+ <xs:attribute name="space" default="preserve">
+ <xs:simpleType>
+ <xs:restriction base="xs:NCName">
+ <xs:enumeration value="default"/>
+ <xs:enumeration value="preserve"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+
+ <xs:attributeGroup name="specialAttrs">
+ <xs:attribute ref="xml:lang"/>
+ <xs:attribute ref="xml:space"/>
+ </xs:attributeGroup>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/xml.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/type-alternatives/xml.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/roger/version-control/BookStore.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/roger/version-control/BookStore.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/roger/version-control/BookStore.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/roger/version-control/BookStore.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<BookStore xmlns="http://www.books.org"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation=
+ "http://www.books.org
+ BookStore.xsd">
+ <Book>
+ <Title>My Life and Times</Title>
+ <Author>Paul McCartney</Author>
+ <Date>1998</Date>
+ <ISBN>1-56592-235-2</ISBN>
+ <Publisher>McMillin Publishing</Publisher>
+ </Book>
+ <Book>
+ <Title>Illusions The Adventures of a Reluctant Messiah</Title>
+ <Author>Richard Bach</Author>
+ <Date>1977</Date>
+ <ISBN>0-440-34319-4</ISBN>
+ <Publisher>Dell Publishing Co.</Publisher>
+ </Book>
+ <Book>
+ <Title>The First and Last Freedom</Title>
+ <Author>J. Krishnamurti</Author>
+ <Date>1954</Date>
+ <ISBN>0-06-064831-7</ISBN>
+ <Publisher>Harper & Row</Publisher>
+ </Book>
+</BookStore>
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/version-control/BookStore.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/version-control/BookStore.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/roger/version-control/BookStore.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/roger/version-control/BookStore.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/roger/version-control/BookStore.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/roger/version-control/BookStore.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+ targetNamespace="http://www.books.org"
+ elementFormDefault="qualified">
+ <xs:element name="BookStore">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Book" maxOccurs="unbounded" vc:minVersion="1.1" vc:maxVersion="3.2">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Title" type="xs:string"/>
+ <xs:element name="Author" type="xs:string"/>
+ <xs:element name="Date" type="xs:string"/>
+ <xs:element name="ISBN" type="xs:string"/>
+ <xs:element name="Publisher" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="Book" maxOccurs="unbounded" vc:minVersion="3.2">
+ <xs:new>
+ <xs:element name="Title" type="xs:string"/>
+ <xs:element name="Author" type="xs:string"/>
+ <xs:element name="Date" type="xs:string"/>
+ <xs:element name="ISBN" type="xs:string"/>
+ <xs:element name="Publisher" type="xs:string"/>
+ </xs:new>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/version-control/BookStore.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/roger/version-control/BookStore.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/simpletypes/test1.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/simpletypes/test1.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/simpletypes/test1.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/simpletypes/test1.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:element name="X">
+ <xs:simpleType>
+ <xs:list itemType="xs:anyAtomicType"/>
+ </xs:simpleType>
+ </xs:element>
+
+ <xs:element name="Y">
+ <xs:simpleType>
+ <xs:list itemType="xs:anySimpleType"/>
+ </xs:simpleType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/simpletypes/test1.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/simpletypes/test1.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/simpletypes/test2.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/simpletypes/test2.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/simpletypes/test2.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/simpletypes/test2.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:element name="X">
+ <xs:simpleType>
+ <xs:union memberTypes="xs:int xs:anyAtomicType"/>
+ </xs:simpleType>
+ </xs:element>
+
+ <xs:element name="Y">
+ <xs:simpleType>
+ <xs:union memberTypes="xs:int xs:anySimpleType"/>
+ </xs:simpleType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/simpletypes/test2.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/simpletypes/test2.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns10.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns10.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns10.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns10.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,8 @@
+<X xmlns="http://xx">
+ <Y xmlns="http://yy">
+ <Z/>
+ <U/>
+ <V/>
+ <W/>
+ </Y>
+</X>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns10.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns10.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns10.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns10.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns10.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns10.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,12 @@
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xx">
+
+ <xs:element name="X">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any processContents="lax" />
+ </xs:sequence>
+ <xs:assert test="Y[count(Y) = count(node() except text())][normalize-space() = '']" xpathDefaultNamespace="http://yy" />
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns10.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns10.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns11.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns11.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns11.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns11.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,8 @@
+<X xmlns="http://xx">
+ <Y xmlns="http://yy">
+ <Z/>
+ <U/>
+ <V/>
+ <W/>
+ </Y>
+</X>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns11.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns11.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns11.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns11.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns11.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns11.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,12 @@
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xx">
+
+ <xs:element name="X">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any processContents="lax" />
+ </xs:sequence>
+ <xs:assert test="Y[deep-equal(*, (Z, U, V, W)) and not(*/node()) and (normalize-space() = '')]" xpathDefaultNamespace="http://yy" />
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns11.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns11.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,8 @@
+<X xmlns="http://xx">
+ <Y xmlns="http://yy">
+ <Z/>
+ <U/>
+ <V xmlns="http://zz" />
+ <W/>
+ </Y>
+</X>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<xs:schema xmlns:testYY="http://yy" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xx">
+
+ <xs:import namespace="http://yy" schemaLocation="tns12_imp.xsd"/>
+
+ <xs:element name="X" type="testYY:X_TYPE"/>
+
+</xs:schema>
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12_imp.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12_imp.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12_imp.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12_imp.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,30 @@
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://yy" xmlns:yy="http://yy">
+
+ <xs:complexType name="X_TYPE">
+ <xs:sequence>
+ <xs:element ref="yy:Y" />
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:element name="Y">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="yy:Z" />
+ <xs:element ref="yy:U" />
+ <xs:element ref="yy:V" />
+ <xs:element ref="yy:W" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="Z" type="yy:EMPTY" />
+
+ <xs:element name="U" type="yy:EMPTY" />
+
+ <xs:element name="V" type="yy:EMPTY" />
+
+ <xs:element name="W" type="yy:EMPTY" />
+
+ <xs:complexType name="EMPTY" />
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12_imp.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns12_imp.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns13.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns13.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns13.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns13.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,42 @@
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xx" xmlns:test1="http://xx">
+
+ <xs:element name="X">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="test1:DUMMY_ABST_TYPE">
+ <xs:sequence>
+ <xs:element name="Y" targetNamespace="http://yy">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="test1:DUMMY_ABST_TYPE">
+ <xs:sequence>
+ <xs:element name="Z" targetNamespace="http://yy">
+ <xs:complexType />
+ </xs:element>
+ <xs:element name="U" targetNamespace="http://yy">
+ <xs:complexType />
+ </xs:element>
+ <xs:element name="V" targetNamespace="http://yy">
+ <xs:complexType />
+ </xs:element>
+ <xs:element name="W" targetNamespace="http://yy">
+ <xs:complexType />
+ </xs:element>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="DUMMY_ABST_TYPE" abstract="true">
+ <xs:sequence>
+ <xs:any processContents="skip" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns13.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns13.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns14.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns14.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns14.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns14.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<xs:schema xmlns:test1="http://xx" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xx">
+
+ <xs:element name="X">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="test1:DUMMY_ABST_TYPE">
+ <xs:sequence>
+ <xs:element name="Y" targetNamespace="http://yy">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="test1:DUMMY_ABST_TYPE">
+ <xs:sequence>
+ <xs:element name="Z" targetNamespace="http://yy">
+ <xs:complexType/>
+ </xs:element>
+ <xs:element name="U" targetNamespace="http://yy">
+ <xs:complexType/>
+ </xs:element>
+ <xs:element name="V" targetNamespace="http://zz">
+ <xs:complexType/>
+ </xs:element>
+ <xs:element name="W" targetNamespace="http://yy">
+ <xs:complexType/>
+ </xs:element>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType abstract="true" name="DUMMY_ABST_TYPE">
+ <xs:sequence>
+ <xs:any maxOccurs="unbounded" processContents="skip"/>
+ </xs:sequence>
+ </xs:complexType>
+
+</xs:schema>
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns14.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns14.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns9.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns9.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns9.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns9.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,5 @@
+<X xmlns="http://xx">
+ <Y xmlns="http://yy">
+ <Y/>
+ </Y>
+</X>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns9.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns9.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns9.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns9.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns9.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns9.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,33 @@
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xx" xmlns:test1="http://xx">
+
+ <xs:element name="X">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="test1:DUMMY_ABST_TYPE">
+ <xs:sequence>
+ <xs:element name="Y" targetNamespace="http://yy">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="test1:DUMMY_ABST_TYPE">
+ <xs:sequence>
+ <xs:element name="Y" targetNamespace="http://yy">
+ <xs:complexType />
+ </xs:element>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="DUMMY_ABST_TYPE" abstract="true">
+ <xs:sequence>
+ <xs:any processContents="skip" />
+ </xs:sequence>
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns9.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/example1/tns9.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns1.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns1.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns1.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns1.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,3 @@
+<x xmlns="http://test1">
+ <y xmlns="http://test2" />
+</x>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns1.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns1.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns1.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns1.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns1.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns1.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<xs:schema xmlns:test1="http://test1" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://test1">
+
+ <xs:element name="x">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="test1:TEST_TYPE">
+ <xs:sequence>
+ <xs:element name="y" targetNamespace="http://test2">
+ <xs:complexType/>
+ </xs:element>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="TEST_TYPE">
+ <xs:sequence>
+ <xs:element name="y">
+ <xs:complexType/>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+
+</xs:schema>
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns1.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns1.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns2.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns2.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns2.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns2.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,6 @@
+<x xmlns="http://test1">
+ <y xmlns="http://test2">
+ <a>1</a>
+ <a>2</a>
+ </y>
+</x>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns2.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns2.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns2.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns2.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns2.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,33 @@
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:test1="http://test1"
+ targetNamespace="http://test1">
+
+ <xs:element name="x">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="test1:TEST_TYPE">
+ <xs:sequence>
+ <xs:element name="y" targetNamespace="http://test2">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="test1:TEST_TYPE">
+ <xs:sequence>
+ <xs:element name="a" type="xs:integer" maxOccurs="unbounded" targetNamespace="http://test2" />
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="TEST_TYPE">
+ <xs:sequence>
+ <xs:any processContents="lax" />
+ </xs:sequence>
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns2.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns2.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns3.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns3.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns3.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns3.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,6 @@
+<x xmlns="http://test1">
+ <y xmlns="http://test2">
+ <a>1</a>
+ <a>2</a>
+ </y>
+</x>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns3.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns3.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns3.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns3.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns3.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns3.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,33 @@
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:test1="http://test1"
+ targetNamespace="http://test1">
+
+ <xs:element name="x">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="test1:TEST_TYPE">
+ <xs:sequence>
+ <xs:element name="y" type="test1:TYPE_Y" targetNamespace="http://test2" />
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="TYPE_Y">
+ <xs:complexContent>
+ <xs:restriction base="test1:TEST_TYPE">
+ <xs:sequence>
+ <xs:element name="a" type="xs:integer" maxOccurs="unbounded" targetNamespace="http://test2" />
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="TEST_TYPE">
+ <xs:sequence>
+ <xs:any processContents="lax" />
+ </xs:sequence>
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns3.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns3.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,6 @@
+<x xmlns="http://test1">
+ <y xmlns="http://test2">
+ <a>1</a>
+ <a>2</a>
+ </y>
+</x>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<xs:schema xmlns:test2="http://test2" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://test1">
+
+ <xs:import namespace="http://test2" schemaLocation="tns4_imp.xsd"/>
+
+ <xs:element name="x">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="test2:y"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4_imp.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4_imp.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4_imp.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4_imp.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,19 @@
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:test2="http://test2"
+ targetNamespace="http://test2">
+
+ <xs:element name="y">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="test2:a" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="a">
+ <xs:simpleType>
+ <xs:restriction base="xs:integer" />
+ </xs:simpleType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4_imp.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns4_imp.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns5.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns5.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns5.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns5.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1 @@
+<x xmlns:test1="http://test1" test1:a="100">Hello World</x>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns5.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns5.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns5.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns5.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns5.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns5.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,21 @@
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:element name="x">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:restriction base="TEST_TYPE">
+ <xs:attribute name="a" type="xs:integer" targetNamespace="http://test1" />
+ </xs:restriction>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="TEST_TYPE">
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:anyAttribute />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns5.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns5.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns6.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns6.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns6.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns6.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1 @@
+<x xmlns:test1="http://test1" test1:a="100">Hello World</x>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns6.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns6.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns6.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns6.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns6.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns6.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,21 @@
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:element name="x">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:restriction base="TEST_TYPE">
+ <xs:attribute name="a" type="xs:integer" targetNamespace="http://test1" />
+ </xs:restriction>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="TEST_TYPE">
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:anyAttribute />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns6.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns6.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns7.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns7.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns7.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns7.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,3 @@
+<x xmlns="http://test1">
+ <y xmlns="http://test2" />
+</x>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns7.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns7.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns7.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns7.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns7.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns7.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<xs:schema xmlns:test1="http://test1" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://test1">
+
+ <xs:element name="x">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="test1:TEST_TYPE">
+ <xs:sequence>
+ <xs:element name="y" targetNamespace="http://test2">
+ <xs:complexType/>
+ </xs:element>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="TEST_TYPE">
+ <xs:complexContent>
+ <xs:extension base="xs:anyType"/>
+ </xs:complexContent>
+ </xs:complexType>
+
+</xs:schema>
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns7.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns7.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns8.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns8.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns8.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns8.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<xs:schema xmlns:test1="http://test1" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://test1">
+
+ <xs:element name="x">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="test1:TEST_TYPE">
+ <xs:sequence>
+ <xs:element name="y" targetNamespace="http://test2">
+ <xs:complexType/>
+ </xs:element>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="TEST_TYPE">
+ <xs:complexContent>
+ <xs:restriction base="xs:anyType">
+ <xs:sequence>
+ <xs:any processContents="lax"/>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+
+</xs:schema>
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns8.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/targetNamespace/tns8.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/test1.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/test1.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/test1.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/test1.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,3 @@
+<X min="1" max="5">
+ <message>hello world</message>
+</X>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/test1.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/test1.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/test1.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/test1.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/test1.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/test1.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:element name="X" type="XType"/>
+
+ <xs:complexType name="XType">
+ <xs:sequence>
+ <xs:element name="message" type="xs:string"/>
+ </xs:sequence>
+ <xs:attribute name="min" type="xs:int"/>
+ <xs:attribute name="max" type="xs:int"/>
+ <xs:assert test="@min le @max"/>
+ <xs:assert test="string-length(message) le 30"/>
+ </xs:complexType>
+
+</xs:schema>
Propchange: xerces/java/branches/xs-1.1-tests/data/test1.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/test1.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/test10.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/test10.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/test10.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/test10.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,4 @@
+<!-- to be validated with, test10.xsd -->
+<message mustUnderstand="YES">
+ <body>hello..</body>
+</message>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/test10.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/test10.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/test10.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/test10.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/test10.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/test10.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,29 @@
+<!-- demonstrates assertions on derived complex type -->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:complexType name="baseType">
+ <xs:sequence>
+ <xs:element name="body" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="mustUnderstand" type="xs:string"/>
+ <xs:assert test="@mustUnderstand"/>
+ </xs:complexType>
+
+ <xs:complexType name="derivedType">
+ <xs:complexContent>
+ <xs:restriction base="baseType">
+ <xs:sequence>
+ <xs:element name="body" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="mustUnderstand" type="xs:string"/>
+ <xs:assert test="(@mustUnderstand = 'YES' and count(./body) gt 0)
+ or (@mustUnderstand = 'NO')"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <!-- assertions of both 'derivedType' and of base type must succeed, for
+ validation to pass -->
+ <xs:element name="message" type="derivedType"/>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/test10.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/test10.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/test11.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/test11.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/test11.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/test11.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,3 @@
+<X xmlns="http://xyz">
+ <message>hello</message>
+</X>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/test11.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/test11.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/test11.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/test11.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/test11.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/test11.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,15 @@
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xx="http://www.w3.org/2005/xpath-functions"
+ targetNamespace="http://xyz"
+ elementFormDefault="qualified">
+
+ <xsd:element name="X">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="message" type="xsd:string" />
+ </xsd:sequence>
+ <xsd:assert test="xsd:string(message) = 'hello'" xpathDefaultNamespace="##targetNamespace" />
+ </xsd:complexType>
+ </xsd:element>
+
+</xsd:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/test11.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/test11.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/test12.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/test12.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/test12.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/test12.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,3 @@
+<X xmlns="http://xyz">
+ <message>hello</message>
+</X>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/test12.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/test12.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/test12.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/test12.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/test12.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/test12.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xx="http://www.w3.org/2005/xpath-functions" elementFormDefault="qualified" targetNamespace="http://xyz">
+
+ <xsd:element name="X">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="message" type="xsd:string"/>
+ </xsd:sequence>
+ <xsd:assert test="xsd:string(message) = 'hello'" xpathDefaultNamespace="##targetNamespace"/>
+ </xsd:complexType>
+ </xsd:element>
+
+</xsd:schema>
Propchange: xerces/java/branches/xs-1.1-tests/data/test12.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/test12.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/test13.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/test13.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/test13.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/test13.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,6 @@
+<shape type="square">
+ <a>10</a>
+ <b>10</b>
+ <c>10</c>
+ <d>10</d>
+</shape>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/test13.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/test13.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/test13.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/test13.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/test13.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/test13.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,18 @@
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:element name="shape" type="Shape" />
+
+ <xs:complexType name="Shape">
+ <xs:sequence>
+ <xs:element name="a" type="xs:int" />
+ <xs:element name="b" type="xs:int" />
+ <xs:element name="c" type="xs:int" />
+ <xs:element name="d" type="xs:int" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute name="type" type="xs:string" use="required" />
+ <xs:assert test="if (@type eq 'square') then (a = b and b = c and c = d) else true()" />
+ <xs:assert test="if (@type eq 'rectangle') then (a = c and b = d) else true()" />
+ <xs:assert test="if (@type eq 'triangle') then not(d) else true()" />
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/test13.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/test13.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/test14.xml
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/test14.xml?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/test14.xml (added)
+++ xerces/java/branches/xs-1.1-tests/data/test14.xml Sun Dec 16 09:12:49 2012
@@ -0,0 +1,3 @@
+<Example>
+ <even-number>400</even-number>
+</Example>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/test14.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/test14.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: xerces/java/branches/xs-1.1-tests/data/test14.xsd
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/data/test14.xsd?rev=1422490&view=auto
==============================================================================
--- xerces/java/branches/xs-1.1-tests/data/test14.xsd (added)
+++ xerces/java/branches/xs-1.1-tests/data/test14.xsd Sun Dec 16 09:12:49 2012
@@ -0,0 +1,19 @@
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:element name="Example">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="even-number">
+ <xs:simpleType>
+ <xs:restriction base="xs:int">
+ <xs:assertion test="$value mod 2 = 0" />
+ <xs:assertion test="$value lt 500" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+ </xs:sequence>
+ <xs:assert test="even-number lt 500" />
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Propchange: xerces/java/branches/xs-1.1-tests/data/test14.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: xerces/java/branches/xs-1.1-tests/data/test14.xsd
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org