OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] RELAX NG equivalent of <xsd:any processContents="lax">?

Sorry, I've overlooked the <optional> element. Rule 4.12 comes first in this case and adds a <group>, then 7.15. The basic idea stays the same: you cannot have several roots in an XML document.

2007/2/7, Radu Cernuta <radu.cernuta@gmail.com>:
It's not about recursion. This won't work because the reference you make in the <start> element is resolved to zeroOrMore elements and a document cannot have several roots.

See RELAX NG specification:

Simplification, section 4.15 zeroOrMore element

Restrictions, section 7.15 start element

2007/2/7, Jeff Lowery < jlowery@myrio.com>:
Thanks for your help. I'm thankful for what functionality there is in
RELAX NG, trust me.

Just for kicks I tried self-referencing back to the schema, but
recursion is not allowed (ah well).

Test.rng :

<?xml version="1.0"?>
  xmlns="http://relaxng.org/ns/structure/1.0 "
  ns="http://foo.org/bar ">

        <ref name="children"></ref>

    <define name="children">
                <ref name="children"></ref>
            <ref name="interestingElements"></ref>

    <define name="interestingElements">
            <externalRef href=""Test.rng"/>        </choice>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS