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 ji...@apache.org on 2004/04/12 23:21:58 UTC
[jira] Updated: (XERCERJ-286) DOM does not contain default values for attributes after parsing.
The following issue has been updated:
Updater: Serge Knystautas (mailto:sergek@lokitech.com)
Date: Mon, 12 Apr 2004 2:21 PM
Changes:
Attachment changed from DOMTest.java
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/XERCERJ-286?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCERJ-286
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCERJ-286
Summary: DOM does not contain default values for attributes after parsing.
Type: Bug
Status: Resolved
Resolution: INCOMPLETE
Project: Xerces2-J
Assignee: Xerces-J Developers Mailing List
Reporter: Rikus Grobler
Created: Tue, 23 Apr 2002 2:54 PM
Updated: Mon, 12 Apr 2004 2:21 PM
Environment: Operating System: Windows NT/2K
Platform: PC
Description:
I define a schema containing an attribute with a default value:
<xs:attribute name="TestAttribute" type="xs:string" default="TestDefault"/>
I then use Xerces (validating against my schema) to parse a XML document that
does not contain the attribute "TestAttribute". I expect the parser to insert
the default, but it does not.
I use the following feature setting on Xerces:
"http://xml.org/sax/features/validation", true
"http://apache.org/xml/features/validation/schema", true
"http://apache.org/xml/features/validation/schema/element-default", true
"http://apache.org/xml/features/validation/schema-full-checking", true
"http://apache.org/xml/features/validation/schema/normalized-value", true
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org