[ 
https://issues.apache.org/jira/browse/XERCESJ-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Darren Hurt updated XERCESJ-122:
--------------------------------

    Attachment: Testy.java
                defaultValueContribTest.xsd
                defaultValueContribTest.xml

Put all of the files in a package called a.

Then, simply compile and run Testy class.

I expect that you will see the message FAILED TO AUGMENT, which 
to me proves that the default values aren't being augmented.



> XMLSchemaValidator does not contribute element's default value
> --------------------------------------------------------------
>
>                 Key: XERCESJ-122
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-122
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema Structures
>    Affects Versions: 2.0.0 [beta 4]
>         Environment: Operating System: All
> Platform: All
>            Reporter: Takuki Kamiya
>         Attachments: defaultValueContribTest.xml, 
> defaultValueContribTest.xsd, files.zip, Testy.java
>
>
> Hi,
> XMLSchemaValidator does not contribute element's default value
> as specified in the schema while it does so for attributes.
> I have two problems with this issue. One is that the behaviour
> has been changed since 1.4.3 which gave me default values for
> elements. The other is that the behaviour should be consistent
> both for elements and attributes as far as XNI is concerned.
> I see it is partly implemented in XMLSchemaValidator#endElement.
> Is it planned to be improved in the production release?
> Thanks,
> -taki

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to