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 2002/10/10 23:36:09 UTC

DO NOT REPLY [Bug 13517] New: - Parser gives an error on default attribute of xs:element

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13517>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13517

Parser gives an error on default attribute of xs:element

           Summary: Parser gives an error on default attribute of xs:element
           Product: Xerces2-J
           Version: 2.0.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: XML Schema Structures
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: ian.fore@celera.com


When I try and run the ASBuilder example against a schema in which 
the "default" attribute has been used on an xs:element element I get the 
following error

C:\schema>java -cp c:\xerces-2_2_0\xercesImpl.jar;c:\xerces-2_2_0
\xmlParserAPIs.jar;c:\xerces-2_2_0\xercesSamples.jar dom.ASBuilder -a 
myschema.xsd -i mysata.xml
[Error] myschema.xsd:48:75: s4s-att-not-allowed: Attribute 'default' cannot appe
ar in element 'element'.

The element is defined as follows
<xs:element name="FtLength" type="xs:string" maxOccurs="1"  minOccurs="0" 
default="1"  />

This is stated elsewhere to be valid XML Schema syntax.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org