[xml] relaxng external interleave bug?



Given the following pair of relaxng schema files and XML input, schema validation with libxml2-2.6.7 yields "Expecting an element e2, got nothing". If I remove the interleave (replace "&" with ","), the validation succeeds.

Is this a bug or do I misunderstand something?

Thanks,
-John


== file bug-a.rnc ==

    start = root
    root = element root {
        element e1 { text }
        & external "bug-b.rnc"
    }

== file bug-b.rnc ==

    start = e2
    e2 = element e2 {
        element e3 { text }
    }

== file test.xml ==

    <root>
        <e1>x</e1>
        <e2>
            <e3>y</e3>
        </e2>
    </root>



--
http:// if  ile.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]