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/05/08 18:47:39 UTC
[Bug 1661] New - Parser not properly handling element default value
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1661
*** shadow/1661 Tue May 8 09:47:39 2001
--- shadow/1661.tmp.491 Tue May 8 09:47:39 2001
***************
*** 0 ****
--- 1,39 ----
+ +============================================================================+
+ | Parser not properly handling element default value |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1661 Product: Xerces-J |
+ | Status: NEW Version: 1.3.1 |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: Other |
+ | Priority: Component: Schema-Structures |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: mansfield@orbitcommerce.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Here is my schema file:
+
+ <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
+ elementFormDefault="qualified">
+ <xsd:element name="Root" type="Root"/>
+ <xsd:complexType name="Root">
+ <xsd:sequence>
+ <xsd:element name="a" default="def" type="xsd:string"/>
+ <xsd:element name="b"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+
+ Here is my xml file:
+
+ <Root xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="c:\temp\test.xsd">
+ <a/>
+ <b/>
+ </Root>
+
+ When the parser parse this file with schema validation turned on, the document
+ did not contain a default value for the a element.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org