You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/06/06 17:59:45 UTC
[Bug 2028] New: - processContents value ignored on 2nd in sequence
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2028
*** shadow/2028 Wed Jun 6 08:59:45 2001
--- shadow/2028.tmp.10992 Wed Jun 6 08:59:45 2001
***************
*** 0 ****
--- 1,79 ----
+ +============================================================================+
+ | processContents value ignored on 2nd <any> in sequence |
+ +----------------------------------------------------------------------------+
+ | Bug #: 2028 Product: Xerces-J |
+ | Status: NEW Version: 1.4 |
+ | Resolution: Platform: All |
+ | Severity: Normal OS/Version: All |
+ | Priority: Other Component: Schema-Structures |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: mhuffman@ca.ibm.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ This example causes the parser to report validation errors when no validation
+ should take place (processContents="skip"):
+
+ 3_10v38.xml
+ ===========
+ <?xml version="1.0" encoding="UTF-8"?>
+ <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="3_10v38.xsd"
+ xmlns:v38imp="http://www.schemaTest.org/3_10v38_imp"
+ xmlns:v38 ="http://www.schemaTest.org/3_10v38">
+
+ <v38imp:car year="1999">Ford</v38imp:car>
+
+ <v38imp:car year="2000">The Car</v38imp:car>
+ <v38imp:car year="1">Dodge</v38imp:car>
+ <v38imp:car make="Ford">Mustang</v38imp:car>
+
+ </root>
+
+ 3_10v38.xsd
+ ===========
+ <?xml version="1.0"?>
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:import namespace="http://www.schemaTest.org/3_10v38_imp"
+ schemaLocation="3_10v38_imp.xsd"/>
+
+ <xs:element name="root">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any namespace="http://www.schemaTest.org/3_10v38_imp"/>
+ <xs:any maxOccurs="unbounded" namespace="##other" processContents="skip"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ </xs:schema>
+
+ 3_10v38_imp.xsd
+ ===============
+ <?xml version="1.0"?>
+ <schema xmlns ="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://www.schemaTest.org/3_10v38_imp"
+ xmlns:v38imp ="http://www.schemaTest.org/3_10v38_imp">
+
+ <simpleType name="year">
+ <restriction base="positiveInteger">
+ <minInclusive value="1900"/>
+ <maxExclusive value="2100"/>
+ </restriction>
+ </simpleType>
+
+ <element name="car">
+ <complexType>
+ <simpleContent>
+ <extension base="NCName">
+ <attribute name="year" type="v38imp:year"/>
+ </extension>
+ </simpleContent>
+ </complexType>
+ </element>
+
+ </schema>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org