The RELAX NG schema for pipelines in invalid

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The RELAX NG schema for pipelines in invalid

Eric van der Vlist
Hi,

To avoid a redefinition of the xml:base attribute which is defined both
explicitly and implicitly through anyAttributeOtherNS, the namespace for
XML needs to be excluded:

   <define name="anyAttributeOtherNS">
        <!-- Can contain any number of extra attributes in any non-null namespace which is not the p: namespace -->
        <zeroOrMore>
            <attribute>
                <anyName>
                    <except>
                        <nsName ns=""/>
                        <nsName ns="http://www.orbeon.com/oxf/pipeline"/>
                        <nsName ns="http://www.w3.org/XML/1998/namespace"/>
                    </except>
                </anyName>
            </attribute>
        </zeroOrMore>
    </define>

Another option would be to accept xml:base everywhere in which case, its
explicit definition could just be dropped.

Eric
--
GPG-PGP: 2A528005
Le premier annuaire des apiculteurs 100% XML!
                                                http://apiculteurs.info/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: The RELAX NG schema for pipelines in invalid

Alessandro Vernet
Administrator
Eric,

On Jan 14, 2008 9:11 AM, Eric van der Vlist <[hidden email]> wrote:

> To avoid a redefinition of the xml:base attribute which is defined both
> explicitly and implicitly through anyAttributeOtherNS, the namespace for
> XML needs to be excluded:
>
>    <define name="anyAttributeOtherNS">
>         <!-- Can contain any number of extra attributes in any non-null namespace which is not the p: namespace -->
>         <zeroOrMore>
>             <attribute>
>                 <anyName>
>                     <except>
>                         <nsName ns=""/>
>                         <nsName ns="http://www.orbeon.com/oxf/pipeline"/>
>                         <nsName ns="http://www.w3.org/XML/1998/namespace"/>
>                     </except>
>                 </anyName>
>             </attribute>
>         </zeroOrMore>
>     </define>
>
> Another option would be to accept xml:base everywhere in which case, its
> explicit definition could just be dropped.
>
Sounds good. I added <nsName
ns="http://www.w3.org/XML/1998/namespace"/> as you suggested and
checked in that change.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws