You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Mukul Gandhi (JIRA)" <xe...@xml.apache.org> on 2016/09/28 06:22:21 UTC
[jira] [Comment Edited] (XERCESJ-1673) CTA doesn't work correctly
[ https://issues.apache.org/jira/browse/XERCESJ-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15528571#comment-15528571 ]
Mukul Gandhi edited comment on XERCESJ-1673 at 9/28/16 6:22 AM:
----------------------------------------------------------------
This isn't a bug. Apologies for my misunderstanding.
In the example I've attached, making this change (and correct) have the sample works correctly:
<xs:element name="X">
<xs:alternative type="Type1" test="@xa = 1"/>
<xs:alternative type="Type2" test="@xa = 2"/>
<xs:alternative type="xs:error"/>
</xs:element>
The sample also doesn't need a complex type "ErrType".
was (Author: mukul_gandhi):
This isn't a bug. Apologies for my misunderstanding.
In the example I've attached, making this change (and correct) have the sample works correctly:
<xs:element name="X">
<xs:alternative type="Type1" test="@xa = 1"/>
<xs:alternative type="Type2" test="@xa = 2"/>
<xs:alternative type="xs:error"/>
</xs:element>
> CTA doesn't work correctly
> --------------------------
>
> Key: XERCESJ-1673
> URL: https://issues.apache.org/jira/browse/XERCESJ-1673
> Project: Xerces2-J
> Issue Type: Bug
> Components: XML Schema 1.1 Structures
> Affects Versions: 2.11.0
> Reporter: Mukul Gandhi
> Assignee: Mukul Gandhi
> Attachments: x1.xml, x1.xsd
>
>
> I'm attaching two files (an XSD and XML). I think, the XSD file should compile successfully and the validation should fail (due to the instance XML document given). But it isn't doing so.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org