This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20593 - [XSCDTS] errors in catalog.xsd and catalog.xml
Summary: [XSCDTS] errors in catalog.xsd and catalog.xml
Status: RESOLVED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: SCDS: XML Schema Component Designators (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Mary Holstege
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-08 01:24 UTC by C. M. Sperberg-McQueen
Modified: 2013-01-08 03:32 UTC (History)
0 users

See Also:


Attachments
a modified catalog.xsd file (12.36 KB, application/octet-stream)
2013-01-08 01:24 UTC, C. M. Sperberg-McQueen
Details
modified catalog.xml file (6.44 KB, text/xml)
2013-01-08 01:25 UTC, C. M. Sperberg-McQueen
Details
modified catalog.xml file (second try) (6.59 KB, text/xml)
2013-01-08 01:34 UTC, C. M. Sperberg-McQueen
Details

Description C. M. Sperberg-McQueen 2013-01-08 01:24:33 UTC
Created attachment 1306 [details]
a modified catalog.xsd file

The schema document for the SCDS test suite catalog has a number of errors. 

1 There are two top-level elements named paths; one is used as a child of 'test' in the catalog itself and the other is used in the paths files pointed to from the main catalog.  In the attached modification of catalog.xsd, I have made both 'schema' and 'paths' local to 'test'.

2 In the complex type for 'test', the attribute declarations had slipped down past the end-tag of the complexType, so they were its younger siblings instead of being its children.

3 The declarations of the types of canonical-section and selected-section lack groups around the single child element particles.  I've wrapped them in sequences.

4 The selected-section element appears to be have been caught in the middle of changing from a local declaration to a reference to a global declaration, or vice versa:  it has ref="this:selected-section", but it contains a type declaration, and there is no top-level declaration for the reference to point to.

5 The declarations for complex types canonicalPathType and selectedPathType use prefxed names in their 'name' attributes, instead of unprefixed names as required by the spec.

When these changes are made, Xerces J and Saxon accept the schema document and complain that the includes-builtins attribute is missing from each occurrence of  'test'.  (The catalog.xml file uses the name 'include-builtins'.  Since the name in the declaration seems more declarative, I have changed the attributes in the catalog instance, not the declaration.  When that is done, catalog.xml becomes schema-valid.)
Comment 1 C. M. Sperberg-McQueen 2013-01-08 01:25:57 UTC
Created attachment 1307 [details]
modified catalog.xml file

The attached catalog.xml file uses the attribute name 'includes-builtins' instead of 'include-builtins'; this aligns it with the declaration in catalog.xsd.
Comment 2 C. M. Sperberg-McQueen 2013-01-08 01:34:21 UTC
Created attachment 1308 [details]
modified catalog.xml file (second try)

The catalog.xml file I uploaded a moment ago had not been updated (I had made the change in an editor but not saved).  This  one obsoletes that one.
Comment 3 Mary Holstege 2013-01-08 03:32:42 UTC
Thanks for the corrections. Fixed as suggested.