[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-c-dev
Subject: [jira] Commented: (XERCESC-1481) lax assessment
From: "Bernhard Jungk (JIRA)" <xerces-c-dev () xml ! apache ! org>
Date: 2005-08-23 0:41:08
Message-ID: 549222414.1124757668287.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]
[ http://issues.apache.org/jira/browse/XERCESC-1481?page=comments#action_12319663 ]
Bernhard Jungk commented on XERCESC-1481:
-----------------------------------------
The original thread in the mailing list is:
http://www.mail-archive.com/c-dev%40xerces.apache.org/msg00893.html
> lax assessment
> --------------
>
> Key: XERCESC-1481
> URL: http://issues.apache.org/jira/browse/XERCESC-1481
> Project: Xerces-C++
> Type: Bug
> Components: Validating Parser (Schema) (Xerces 1.5 or up only)
> Versions: 2.6.0
> Environment: Windows 2000, Visual C++ 7.1
> Reporter: Bernhard Jungk
> Priority: Minor
>
> I'm trying to validate some xml files like the following example against a xml schema.
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <tag
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ns="ns"
> xsi:schemaLocation="ns ns.xsd"
> xsi:type="ns:type">
> </tag>
>
> The parser reports an error:
>
> Message:Unknown element 'tag'
>
> My understanding of the XML Schema standard is, that it's possible to switch
> to lax assessment for the element-tag. This would validate the element
> against the complex type ns:type defined in the schema file named ns.xsd.
> My understanding is based upon Xml Schema Part: 1 §5.2 (1) and §3.3.4
> (Validation Rule: Schema-Validity Assessment (Element)).
>
> §5.2 http://www.w3.org/TR/xmlschema-1/#validation_outcome
> §3.3.4 http://www.w3.org/TR/xmlschema-1/#c-td
>
> If my understanding is correct, is it possible to get this behavior with
> the current Xerces-C version without ignoring the error (which means
> ignoring all non-fatal errors) ?
>
> Xerces-J 2 doesn't issue an error. I didn't try any other parser.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic