xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ykhabins <yitzhak.khabin...@millicom.com>
Subject Re: Xerces-J 2.12.0 vs. Saxon: XSD 1.1 CTA validation errors
Date Tue, 07 Aug 2018 15:45:47 GMT
Hello, 
Finally, I narrowed it down...
There are 2 scenarios:
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
  
It is a bug.
Here my modified 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" -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"*It gives the remaining single error (due
to base-uri(.) misbehavior):
[Error] XercesJ_TZ20171231_IFRS15_CBCInput_3TZ005.xml:8:8: cvc-assertion:
Assertion evaluation ('ends-with(upper-case(string(base-uri(.))),
upper-case(concat('_', @OrganizationCode, '.xml')))') for element 'root' on
schema type '#AnonType_root' did not succeed. 




--
Sent from: http://apache-xml-project.6118.n7.nabble.com/Xerces-J-Users-f4.html
Mime
View raw message