You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Michael Roberts (JIRA)" <ji...@apache.org> on 2008/03/12 21:20:47 UTC
[jira] Created: (WSCOMMONS-310) Attribute "mixed" is not handled
for complextContent element
Attribute "mixed" is not handled for complextContent element
------------------------------------------------------------
Key: WSCOMMONS-310
URL: https://issues.apache.org/jira/browse/WSCOMMONS-310
Project: WS-Commons
Issue Type: Bug
Components: XmlSchema
Reporter: Michael Roberts
the handleComplexContent method in SchemaBuilder needs to handle "mixed" attributes, perhaps like this:
if (complexEl.hasAttribute("mixed")) {
String mixed = complexEl.getAttribute("mixed");
if (mixed.equalsIgnoreCase("true"))
complexContent.setMixed(true);
else
complexContent.setMixed(false);
}
There is already code in handleComplexType, but the "mixed" attribute can appear on either element.
This bug prevents Dublin Core from being read by XmlSchema and then serialized again to create an equivalent schema.
--
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org
[jira] Resolved: (WSCOMMONS-310) Attribute "mixed" is not handled
for complextContent element
Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSCOMMONS-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ajith Harshana Ranabahu resolved WSCOMMONS-310.
-----------------------------------------------
Resolution: Fixed
Assignee: Ajith Harshana Ranabahu
Added the test case
> Attribute "mixed" is not handled for complextContent element
> ------------------------------------------------------------
>
> Key: WSCOMMONS-310
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-310
> Project: WS-Commons
> Issue Type: Bug
> Components: XmlSchema
> Reporter: Michael Roberts
> Assignee: Ajith Harshana Ranabahu
>
> the handleComplexContent method in SchemaBuilder needs to handle "mixed" attributes, perhaps like this:
> if (complexEl.hasAttribute("mixed")) {
> String mixed = complexEl.getAttribute("mixed");
> if (mixed.equalsIgnoreCase("true"))
> complexContent.setMixed(true);
> else
> complexContent.setMixed(false);
> }
> There is already code in handleComplexType, but the "mixed" attribute can appear on either element.
> This bug prevents Dublin Core from being read by XmlSchema and then serialized again to create an equivalent schema.
--
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org
[jira] Commented: (WSCOMMONS-310) Attribute "mixed" is not handled
for complextContent element
Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSCOMMONS-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581279#action_12581279 ]
Ajith Harshana Ranabahu commented on WSCOMMONS-310:
---------------------------------------------------
Checked in the fix - need to add the test case before I mark this as resolved
> Attribute "mixed" is not handled for complextContent element
> ------------------------------------------------------------
>
> Key: WSCOMMONS-310
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-310
> Project: WS-Commons
> Issue Type: Bug
> Components: XmlSchema
> Reporter: Michael Roberts
>
> the handleComplexContent method in SchemaBuilder needs to handle "mixed" attributes, perhaps like this:
> if (complexEl.hasAttribute("mixed")) {
> String mixed = complexEl.getAttribute("mixed");
> if (mixed.equalsIgnoreCase("true"))
> complexContent.setMixed(true);
> else
> complexContent.setMixed(false);
> }
> There is already code in handleComplexType, but the "mixed" attribute can appear on either element.
> This bug prevents Dublin Core from being read by XmlSchema and then serialized again to create an equivalent schema.
--
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org