You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Dominik Holler (JIRA)" <xe...@xml.apache.org> on 2008/04/07 09:06:24 UTC
[jira] Created: (XERCESC-1792) xerces (-c + -j) does not validate
a valid xml file against schema
xerces (-c + -j) does not validate a valid xml file against schema
-------------------------------------------------------------------
Key: XERCESC-1792
URL: https://issues.apache.org/jira/browse/XERCESC-1792
Project: Xerces-C++
Issue Type: Bug
Components: Validating Parser (XML Schema)
Affects Versions: Nightly build (please specify the date), 2.8.0
Environment: Windows XP 32 bit, MinGW (gcc 3.4.5), MS Visual Studio 2005, xerces-c 2.8.0 and svn-trunk of 2. April, xerces-j 2.9.1
Reporter: Dominik Holler
I want to validate a xml file against a schema, the example file and the schema files are part of the stabdard "(FBX) FIBEX - Field Bus Exchange Format" [1]. MSXML and xsv does validate the file successful, and I does not see a error in the file, too.
The root element of the file FlexRay_Cluster_Example.xml has the attribute
xsi:schemaLocation="http://www.asam.net/xml/fbx/all fibex4multiplatform.xsd"
.
The validation with xerces-c via
SAX2Count.exe -v=always -p -f
results to
Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 120, char 52
Message: Unknown element 'fx:PDU-TRIGGERING'
Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 120, char 52
Message: Attribute 'ID' is not declared for element 'fx:PDU-TRIGGERING'
Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 124, char 52
Message: Unknown element 'fx:PDU-TRIGGERING'
Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 124, char 52
Message: Attribute 'ID' is not declared for element 'fx:PDU-TRIGGERING'
Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 154, char 52
Message: Unknown element 'fx:PDU-TRIGGERING'
...
The validation with xerces-j via
sax.Counter -n -np -v -s -f -hs -va
results to
[Error] FlexRay_Cluster_Example.xml:33:55: cvc-elt.1: Cannot find the declaration of element 'fx:FIBEX'.
[Error] FlexRay_Cluster_Example.xml:40:76: cvc-elt.4.2: Cannot resolve 'flexray:CLUSTER-TYPE' to a type definition for element 'fx:CLUSTER'.
...
Because fibex4multiplatform.xsd imorts fibex4flexray.xsd and fibex.xsd, the schemaLocation of the root element of the xml file is changed to
xsi:schemaLocation="http://www.asam.net/xml/fbx/flexray fibex4flexray.xsd http://www.asam.net/xml/fbx fibex.xsd"
sax.Counter of xerces-j validates the xml now successful:
FlexRay_Cluster_Example.xml: 1060 ms (961 elems, 369 attrs, 0 spaces, 19497 chars)
and xerces-c is producing the same errors.
[1]
http://www.asam.net/03_standards_06.php
--
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
[jira] Issue Comment Edited: (XERCESC-1792) xerces (-c + -j) does
not validate a valid xml file against schema
Posted by "Dominik Holler (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESC-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587515#action_12587515 ]
dominik.holler@gmx.net edited comment on XERCESC-1792 at 4/10/08 12:47 AM:
-------------------------------------------------------------------
current trunk of xerces-c is working correct now.
thx
was (Author: dominik.holler@gmx.net):
current trunk of xerces-c is working correct.
thx
> xerces (-c + -j) does not validate a valid xml file against schema
> -------------------------------------------------------------------
>
> Key: XERCESC-1792
> URL: https://issues.apache.org/jira/browse/XERCESC-1792
> Project: Xerces-C++
> Issue Type: Bug
> Components: Validating Parser (XML Schema)
> Affects Versions: Nightly build (please specify the date), 2.8.0
> Environment: Windows XP 32 bit, MinGW (gcc 3.4.5), MS Visual Studio 2005, xerces-c 2.8.0 and svn-trunk of 2. April, xerces-j 2.9.1
> Reporter: Dominik Holler
> Fix For: 3.0.0, 2.9.0
>
>
> I want to validate a xml file against a schema, the example file and the schema files are part of the stabdard "(FBX) FIBEX - Field Bus Exchange Format" [1]. MSXML and xsv does validate the file successful, and I does not see a error in the file, too.
> The root element of the file FlexRay_Cluster_Example.xml has the attribute
> xsi:schemaLocation="http://www.asam.net/xml/fbx/all fibex4multiplatform.xsd"
> .
> The validation with xerces-c via
> SAX2Count.exe -v=always -p -f
> results to
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 120, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 120, char 52
> Message: Attribute 'ID' is not declared for element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 124, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 124, char 52
> Message: Attribute 'ID' is not declared for element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 154, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> ...
> The validation with xerces-j via
> sax.Counter -n -np -v -s -f -hs -va
> results to
> [Error] FlexRay_Cluster_Example.xml:33:55: cvc-elt.1: Cannot find the declaration of element 'fx:FIBEX'.
> [Error] FlexRay_Cluster_Example.xml:40:76: cvc-elt.4.2: Cannot resolve 'flexray:CLUSTER-TYPE' to a type definition for element 'fx:CLUSTER'.
> ...
> Because fibex4multiplatform.xsd imorts fibex4flexray.xsd and fibex.xsd, the schemaLocation of the root element of the xml file is changed to
> xsi:schemaLocation="http://www.asam.net/xml/fbx/flexray fibex4flexray.xsd http://www.asam.net/xml/fbx fibex.xsd"
> sax.Counter of xerces-j validates the xml now successful:
> FlexRay_Cluster_Example.xml: 1060 ms (961 elems, 369 attrs, 0 spaces, 19497 chars)
> and xerces-c is producing the same errors.
> [1]
> http://www.asam.net/03_standards_06.php
--
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
[jira] Commented: (XERCESC-1792) xerces (-c + -j) does not
validate a valid xml file against schema
Posted by "Dominik Holler (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESC-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587515#action_12587515 ]
Dominik Holler commented on XERCESC-1792:
-----------------------------------------
current trunk of xerces-c is working correct.
thx
> xerces (-c + -j) does not validate a valid xml file against schema
> -------------------------------------------------------------------
>
> Key: XERCESC-1792
> URL: https://issues.apache.org/jira/browse/XERCESC-1792
> Project: Xerces-C++
> Issue Type: Bug
> Components: Validating Parser (XML Schema)
> Affects Versions: Nightly build (please specify the date), 2.8.0
> Environment: Windows XP 32 bit, MinGW (gcc 3.4.5), MS Visual Studio 2005, xerces-c 2.8.0 and svn-trunk of 2. April, xerces-j 2.9.1
> Reporter: Dominik Holler
> Fix For: 3.0.0, 2.9.0
>
>
> I want to validate a xml file against a schema, the example file and the schema files are part of the stabdard "(FBX) FIBEX - Field Bus Exchange Format" [1]. MSXML and xsv does validate the file successful, and I does not see a error in the file, too.
> The root element of the file FlexRay_Cluster_Example.xml has the attribute
> xsi:schemaLocation="http://www.asam.net/xml/fbx/all fibex4multiplatform.xsd"
> .
> The validation with xerces-c via
> SAX2Count.exe -v=always -p -f
> results to
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 120, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 120, char 52
> Message: Attribute 'ID' is not declared for element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 124, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 124, char 52
> Message: Attribute 'ID' is not declared for element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 154, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> ...
> The validation with xerces-j via
> sax.Counter -n -np -v -s -f -hs -va
> results to
> [Error] FlexRay_Cluster_Example.xml:33:55: cvc-elt.1: Cannot find the declaration of element 'fx:FIBEX'.
> [Error] FlexRay_Cluster_Example.xml:40:76: cvc-elt.4.2: Cannot resolve 'flexray:CLUSTER-TYPE' to a type definition for element 'fx:CLUSTER'.
> ...
> Because fibex4multiplatform.xsd imorts fibex4flexray.xsd and fibex.xsd, the schemaLocation of the root element of the xml file is changed to
> xsi:schemaLocation="http://www.asam.net/xml/fbx/flexray fibex4flexray.xsd http://www.asam.net/xml/fbx fibex.xsd"
> sax.Counter of xerces-j validates the xml now successful:
> FlexRay_Cluster_Example.xml: 1060 ms (961 elems, 369 attrs, 0 spaces, 19497 chars)
> and xerces-c is producing the same errors.
> [1]
> http://www.asam.net/03_standards_06.php
--
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
[jira] Resolved: (XERCESC-1792) xerces (-c + -j) does not validate
a valid xml file against schema
Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESC-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alberto Massari resolved XERCESC-1792.
--------------------------------------
Resolution: Duplicate
It is the same problem of XERCESC-1776, the grammar is not switched when an anonymous complex type is being validated
> xerces (-c + -j) does not validate a valid xml file against schema
> -------------------------------------------------------------------
>
> Key: XERCESC-1792
> URL: https://issues.apache.org/jira/browse/XERCESC-1792
> Project: Xerces-C++
> Issue Type: Bug
> Components: Validating Parser (XML Schema)
> Affects Versions: Nightly build (please specify the date), 2.8.0
> Environment: Windows XP 32 bit, MinGW (gcc 3.4.5), MS Visual Studio 2005, xerces-c 2.8.0 and svn-trunk of 2. April, xerces-j 2.9.1
> Reporter: Dominik Holler
> Fix For: 3.0.0, 2.9.0
>
>
> I want to validate a xml file against a schema, the example file and the schema files are part of the stabdard "(FBX) FIBEX - Field Bus Exchange Format" [1]. MSXML and xsv does validate the file successful, and I does not see a error in the file, too.
> The root element of the file FlexRay_Cluster_Example.xml has the attribute
> xsi:schemaLocation="http://www.asam.net/xml/fbx/all fibex4multiplatform.xsd"
> .
> The validation with xerces-c via
> SAX2Count.exe -v=always -p -f
> results to
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 120, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 120, char 52
> Message: Attribute 'ID' is not declared for element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 124, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 124, char 52
> Message: Attribute 'ID' is not declared for element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 154, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> ...
> The validation with xerces-j via
> sax.Counter -n -np -v -s -f -hs -va
> results to
> [Error] FlexRay_Cluster_Example.xml:33:55: cvc-elt.1: Cannot find the declaration of element 'fx:FIBEX'.
> [Error] FlexRay_Cluster_Example.xml:40:76: cvc-elt.4.2: Cannot resolve 'flexray:CLUSTER-TYPE' to a type definition for element 'fx:CLUSTER'.
> ...
> Because fibex4multiplatform.xsd imorts fibex4flexray.xsd and fibex.xsd, the schemaLocation of the root element of the xml file is changed to
> xsi:schemaLocation="http://www.asam.net/xml/fbx/flexray fibex4flexray.xsd http://www.asam.net/xml/fbx fibex.xsd"
> sax.Counter of xerces-j validates the xml now successful:
> FlexRay_Cluster_Example.xml: 1060 ms (961 elems, 369 attrs, 0 spaces, 19497 chars)
> and xerces-c is producing the same errors.
> [1]
> http://www.asam.net/03_standards_06.php
--
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
[jira] Updated: (XERCESC-1792) xerces (-c + -j) does not validate
a valid xml file against schema
Posted by "Boris Kolpackov (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESC-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Kolpackov updated XERCESC-1792:
-------------------------------------
Fix Version/s: 2.9.0
3.0.0
I've done some initial investigations (BTW, the sample XML document is part of the schema package from the link above). The original version of FlexRay_Cluster_Example.xml is broken in that it does not specify the proper schema via schemaLocation. Howevere, after changing the schema location to read:
xsi:schemaLocation="http://www.asam.net/xml/fbx/flexray fibex4flexray.xsd"
I don't see why Xerces-C++ keeps reporting the errors. So I tend to think this is a bug.
> xerces (-c + -j) does not validate a valid xml file against schema
> -------------------------------------------------------------------
>
> Key: XERCESC-1792
> URL: https://issues.apache.org/jira/browse/XERCESC-1792
> Project: Xerces-C++
> Issue Type: Bug
> Components: Validating Parser (XML Schema)
> Affects Versions: Nightly build (please specify the date), 2.8.0
> Environment: Windows XP 32 bit, MinGW (gcc 3.4.5), MS Visual Studio 2005, xerces-c 2.8.0 and svn-trunk of 2. April, xerces-j 2.9.1
> Reporter: Dominik Holler
> Fix For: 3.0.0, 2.9.0
>
>
> I want to validate a xml file against a schema, the example file and the schema files are part of the stabdard "(FBX) FIBEX - Field Bus Exchange Format" [1]. MSXML and xsv does validate the file successful, and I does not see a error in the file, too.
> The root element of the file FlexRay_Cluster_Example.xml has the attribute
> xsi:schemaLocation="http://www.asam.net/xml/fbx/all fibex4multiplatform.xsd"
> .
> The validation with xerces-c via
> SAX2Count.exe -v=always -p -f
> results to
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 120, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 120, char 52
> Message: Attribute 'ID' is not declared for element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 124, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 124, char 52
> Message: Attribute 'ID' is not declared for element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 154, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> ...
> The validation with xerces-j via
> sax.Counter -n -np -v -s -f -hs -va
> results to
> [Error] FlexRay_Cluster_Example.xml:33:55: cvc-elt.1: Cannot find the declaration of element 'fx:FIBEX'.
> [Error] FlexRay_Cluster_Example.xml:40:76: cvc-elt.4.2: Cannot resolve 'flexray:CLUSTER-TYPE' to a type definition for element 'fx:CLUSTER'.
> ...
> Because fibex4multiplatform.xsd imorts fibex4flexray.xsd and fibex.xsd, the schemaLocation of the root element of the xml file is changed to
> xsi:schemaLocation="http://www.asam.net/xml/fbx/flexray fibex4flexray.xsd http://www.asam.net/xml/fbx fibex.xsd"
> sax.Counter of xerces-j validates the xml now successful:
> FlexRay_Cluster_Example.xml: 1060 ms (961 elems, 369 attrs, 0 spaces, 19497 chars)
> and xerces-c is producing the same errors.
> [1]
> http://www.asam.net/03_standards_06.php
--
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
[jira] Closed: (XERCESC-1792) xerces (-c + -j) does not validate a
valid xml file against schema
Posted by "Dominik Holler (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESC-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dominik Holler closed XERCESC-1792.
-----------------------------------
> xerces (-c + -j) does not validate a valid xml file against schema
> -------------------------------------------------------------------
>
> Key: XERCESC-1792
> URL: https://issues.apache.org/jira/browse/XERCESC-1792
> Project: Xerces-C++
> Issue Type: Bug
> Components: Validating Parser (XML Schema)
> Affects Versions: Nightly build (please specify the date), 2.8.0
> Environment: Windows XP 32 bit, MinGW (gcc 3.4.5), MS Visual Studio 2005, xerces-c 2.8.0 and svn-trunk of 2. April, xerces-j 2.9.1
> Reporter: Dominik Holler
> Fix For: 3.0.0, 2.9.0
>
>
> I want to validate a xml file against a schema, the example file and the schema files are part of the stabdard "(FBX) FIBEX - Field Bus Exchange Format" [1]. MSXML and xsv does validate the file successful, and I does not see a error in the file, too.
> The root element of the file FlexRay_Cluster_Example.xml has the attribute
> xsi:schemaLocation="http://www.asam.net/xml/fbx/all fibex4multiplatform.xsd"
> .
> The validation with xerces-c via
> SAX2Count.exe -v=always -p -f
> results to
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 120, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 120, char 52
> Message: Attribute 'ID' is not declared for element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 124, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 124, char 52
> Message: Attribute 'ID' is not declared for element 'fx:PDU-TRIGGERING'
> Error at file F:\xxx\fibex/FlexRay_Cluster_Example.xml, line 154, char 52
> Message: Unknown element 'fx:PDU-TRIGGERING'
> ...
> The validation with xerces-j via
> sax.Counter -n -np -v -s -f -hs -va
> results to
> [Error] FlexRay_Cluster_Example.xml:33:55: cvc-elt.1: Cannot find the declaration of element 'fx:FIBEX'.
> [Error] FlexRay_Cluster_Example.xml:40:76: cvc-elt.4.2: Cannot resolve 'flexray:CLUSTER-TYPE' to a type definition for element 'fx:CLUSTER'.
> ...
> Because fibex4multiplatform.xsd imorts fibex4flexray.xsd and fibex.xsd, the schemaLocation of the root element of the xml file is changed to
> xsi:schemaLocation="http://www.asam.net/xml/fbx/flexray fibex4flexray.xsd http://www.asam.net/xml/fbx fibex.xsd"
> sax.Counter of xerces-j validates the xml now successful:
> FlexRay_Cluster_Example.xml: 1060 ms (961 elems, 369 attrs, 0 spaces, 19497 chars)
> and xerces-c is producing the same errors.
> [1]
> http://www.asam.net/03_standards_06.php
--
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org