[ https://issues.apache.org/jira/browse/XERCESJ-1699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mukul Gandhi resolved XERCESJ-1699. ----------------------------------- Resolution: Fixed resolving this issue as fixed. fix committed in the SVN revision 1863082. > Xerces-J 2.12.0: XSD 1.1 CTA validation errors > ----------------------------------------------- > > Key: XERCESJ-1699 > URL: https://issues.apache.org/jira/browse/XERCESJ-1699 > Project: Xerces2-J > Issue Type: Bug > Components: JAXP (javax.xml.validation) > Affects Versions: 2.12.0 > Environment: Windows 10, 64-bit > Reporter: Yitzhak Khabinsky > Assignee: Mukul Gandhi > Priority: Major > Attachments: IFRS15_CBC_In_XercesJ.xsd, > XercesJ_TZ20171231_IFRS15_CBCInput_3TZ005.xml > > > {color:#000000}There are 2 scenarios: {color} > # XSD file is specified inside the XML file via xsi:schemaLocation attribute. > The *"-fx"* parameter is ignored. And it causes CTAs to fail to pick up the > full XPath 2.0 > # XSD file is specified via command line parameter *"-a"*. > The *"-fx"* parameter is taken into the account. > CTAs pick up the full XPath 2.0 > Here my command line statement: > C:\Program Files\Stylus Studio X16 XML Enterprise Suite > 64-bit\bin>*"c:\Program Files\Java\jre1.8.0_181\bin\java.exe" -Xms512m > -Xmx1024m > -Xbootclasspath/p:path:;c:\xerces212\xercesImpl.jar;c:\xerces212\xml-apis.jar;c:\xerces212\org.eclipse.wst.xml.xpath2.processor_1.2.0.jar;c:\xerces212\icu4j.jar;c:\xerces212\resolver.jar;c:\xerces212\serializer.jar;c:\xerces212\cupv10k-runtime.jar;c:\xerces212\xercesSamples.jar > jaxp.SourceValidator -xsd11 -fx -i "file:///d:/Temp/Xerces-J > 2.12.0/XercesJ_TZ20171231_IFRS15_CBCInput_3TZ005.xml"* > It doesn't recognize the *"-fx"* parameter, and therefore, the XSD validation > is not picking up the full XPath 2.0 for the CTAs. > It gives the following errors: > * [Error]IFRS15_CBC_In_XercesJ.xsd:26:185: c-cta-xpath: The XPath expression > '@OrganizationCode = ('1GT001', '1GT005', '1GT006', '1GT010', '1HN001', > '1HN003', '1SV001', '2BO002', '2PY003', '2PY007')' couldn't compile > successfully in 'cta-subset' mode, during CTA evaluation. > * [Error]IFRS15_CBC_In_XercesJ.xsd:27:89: c-cta-xpath: The XPath expression > '@OrganizationCode eq '2CO001'' couldn't compile successfully in 'cta-subset' > mode, during CTA evaluation. > * [Error]IFRS15_CBC_In_XercesJ.xsd:28:99: c-cta-xpath: The XPath expression > '@OrganizationCode = ('2CO008', '2CO009')' couldn't compile successfully in > 'cta-subset' mode, during CTA evaluation. > * [Error]IFRS15_CBC_In_XercesJ.xsd:29:113: c-cta-xpath: The XPath expression > '@OrganizationCode = ('3TZ001', '3TZ002', '3TZ003', '3TZ004')' couldn't > compile successfully in 'cta-subset' mode, during CTA evaluation. > {color:#000000}Here my modified command line statement: {color} > {color:#000000}C:\Program Files\Stylus Studio X16 XML Enterprise Suite > 64-bit\bin>{color}*"c:\Program Files\Java\jre1.8.0_181\bin\java.exe" -cp > .;c:\xerces212\* jaxp.SourceValidator -xsd11 -fx -i "file:///d:\Temp\Xerces-J > 2.12.0\XercesJ_TZ20171231_IFRS15_CBCInput_3TZ005.xml" -a "d:\Temp\Xerces-J > 2.12.0\IFRS15_CBC_In_XercesJ.xsd"* > And errors are gone. -- This message was sent by Atlassian JIRA (v7.6.14#76016) --------------------------------------------------------------------- To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: j-dev-h...@xerces.apache.org