[ 
http://jira.codehaus.org/browse/JIBX-397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=243782#action_243782
 ] 

Archie Cobbs commented on JIBX-397:
-----------------------------------

As discussed on the mailing list, the description for this issue should really 
be:

_Allow setting flexible="true" and ordered="true" at the same time_.



> Allow setting flexible="true" and ordered="false" at the same time
> ------------------------------------------------------------------
>
>                 Key: JIBX-397
>                 URL: http://jira.codehaus.org/browse/JIBX-397
>             Project: JiBX
>          Issue Type: New Feature
>          Components: core
>    Affects Versions: JiBX 1.2.2
>            Reporter: Archie Cobbs
>
> Currently, setting flexible="true" on a <structure> element is limited to 
> situations in which ordered="false".
> First, I don't understand why this restriction is necessary. Why is it any
> harder to ignore unknown elements in the ordered case than in the unordered
> case? Can't you just ignore them?
> Secondly, this makes JiBX useless on some very common and important use
> cases: XML schemas that allow arbitrary nested elements from other
> namespaces.
> For example, any schema that has ordered elements plus one of these in it:
>   <xsd:any namespace="##other" processContents="lax" minOccurs="0"
> maxOccurs="unbounded"/>
> If you want to write a parser that accepts any valid document adhering to
> such a schema, you need to be able to have your parser automatically ignore
> the nested stuff from other namespaces that you don't recognize. This is a
> common pattern in XML documents to allow independent parties to
> independently define extensions that are automatically (a)
> backward-compatible and (b) don't conflict. But there doesn't seem to be a
> way to accomplish this with JiBX when the namespace="##other" element(s)
> appear among an ordered set of elements.
> JiBX utility would therefore be improved if flexible="true" and 
> ordered="false"
> could be set at the same time.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to