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/07/11 17:40:04 UTC
[Bug 2577] New: - Spurious ambiguous content model error reported
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2577
*** shadow/2577 Wed Jul 11 08:40:04 2001
--- shadow/2577.tmp.9782 Wed Jul 11 08:40:04 2001
***************
*** 0 ****
--- 1,70 ----
+ +============================================================================+
+ | Spurious ambiguous content model error reported |
+ +----------------------------------------------------------------------------+
+ | Bug #: 2577 Product: Xerces-J |
+ | Status: NEW Version: 1.4.1 |
+ | Resolution: Platform: PC |
+ | Severity: Major OS/Version: Windows NT/2K |
+ | Priority: Other Component: Samples |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: jslein@crt.xerox.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Running DOMWriter, I get a whole slew of errors like the following:
+
+ [Error] submit.xml:7:67: Schema error: cos-nonambig: (:Comment) and (:*) violate
+ the "Unique Particle Attribution" rule.
+
+ Since namespace="##local" on the wildcard, and all of the elements that are
+ claimed to be ambiguous are qualified with the JDF namespace, there should be
+ no error here. (I've also run this through IBM Schema Quality Checker and XSV,
+ neither of which reports an error.)
+
+ An example of the sort of structure that is causing the error report is this:
+
+ <complexType name="ResourceQuery_base">
+ <annotation>
+ <documentation>The Resource query may be used to retrieve information
+ about
+ either global device resources or job-related resources. The presence of
+ the
+ JobID attribute determines whether global device resources or job-related
+ resources are queried.</documentation>
+ </annotation>
+ <complexContent>
+ <restriction base="jdf:Query">
+ <sequence>
+ <element ref="jdf:Comment" minOccurs="0" maxOccurs="unbounded"/>
+ <element ref="jdf:ResourceQuParams" minOccurs="0" maxOccurs="1">
+ <annotation>
+ <documentation>Optional. If not present, global device
+ resources
+ are returned.</documentation>
+ </annotation>
+ </element>
+ <element ref="jdf:Subscription" minOccurs="0" maxOccurs="1">
+ <annotation>
+ <documentation>Optional.</documentation>
+ </annotation>
+ </element>
+ </sequence>
+ <!-- All attributes from ancestor types are inherited -->
+ </restriction>
+ </complexContent>
+ </complexType>
+
+ <complexType name="ResourceQuery">
+ <complexContent>
+ <extension base="jdf:ResourceQuery_base">
+ <sequence>
+ <any namespace="##local" processContents="lax" minOccurs="0"
+ maxOccurs="unbounded"/>
+ </sequence>
+ <anyAttribute namespace="##other" processContents="lax"/>
+ </extension>
+ </complexContent>
+ </complexType>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org