[
https://issues.apache.org/jira/browse/XERCESJ-1518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068209#comment-13068209
]
Chris Simmons commented on XERCESJ-1518:
----------------------------------------
Thanks Mukul but I don't think your patch fully addresses the issue. Trimming
the qname will leave leading whitespace unaffected so the bug still exists if
you tweak my original test to have both leading and trailing whitespace. I'm
guessing the reason the tests failed is that my original patch doesn't trim all
the whitespace. Is there a way for me to try running these tests you have
locally?
I'll attach an updated patch which tries to ensure that the name attribute is
always whitespace-normalized and improves the test to have leading whitespace
too.
> Forward references to types etc are not subject to whitespace normalization.
> ----------------------------------------------------------------------------
>
> Key: XERCESJ-1518
> URL: https://issues.apache.org/jira/browse/XERCESJ-1518
> Project: Xerces2-J
> Issue Type: Bug
> Components: XML Schema 1.0 Datatypes
> Affects Versions: 2.11.0
> Reporter: Chris Simmons
> Assignee: Mukul Gandhi
> Attachments: schema-whitespace-patch.txt
>
>
> If, say, an element references its type and the element is lexically before
> the type then the type may fail to resolve if the type name contains
> whitespace. This will happen for all cross references as they are handled
> similarly. I'll attach a patch with a test and simple fix shortly.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]