[ 
https://issues.apache.org/jira/browse/XERCESJ-1518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067085#comment-13067085
 ] 

Mukul Gandhi commented on XERCESJ-1518:
---------------------------------------

Hi Chris,
    Thanks for reporting this issue.

I would agree that you have spotted a potential bug. For the test case you've 
submitted with this bug report, your patch seems to work fine.

But your patch seems to produce a side effect (i.e it seems to break something 
else within Xerces). 

After I apply your patch, the result of the XSD 1.1 "schema test" s4_2_4si01s 
get's inverted [1]. We've existing Xerces W3C XSD 1.1 (IBM) test results here, 
http://wiki.apache.org/xerces/xmlschema11IBMTests (you may search this page for 
the test s4_2_4si01s).

This test id (i.e s4_2_4si01s) seems to be refereed in this file, 
http://dev.w3.org/cvsweb/XML/xml-schema-test-suite/2004-01-14/xmlschema2006-11-06/ibmMeta/cyclicRedefineIncludeImportOverride.testSet
 (which you may inspect to study the affected test XSD file).

I believe, we must find way how to restore the functionality of the affected 
test case [1], along with the needed fixes that you've proposed.

If you're willing to revisit your patch, to help restore the affected XSD 1.1 
test [1], that would be great. In the meantime I would try to find answers at 
my end.


Regards,
Mukul 

> 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
>         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: j-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-dev-h...@xerces.apache.org

Reply via email to