XInclude and Relax NG: How to use?
Posted: Wed Sep 22, 2010 12:40 pm
Hello,
i'm new to xml and especially rng. Now i have the following problem:
My xml file contains a construction like:
So how do i solve this with rng? The first testgroup is no problem. But what do i have to do with the include? rng can't read it/the referencing file.
Do i have to write something like this???:
I really don't have a plan to work with that...
Greetz
m0ps
i'm new to xml and especially rng. Now i have the following problem:
My xml file contains a construction like:
Code: Select all
<testgroup>
<test name="t1">
...
<test name="t2">
...
</testgroup>
<testgroup>
<xi:include href="other.xml" parse="xml"/> <!-- xml contains another <test name="t3"> and <test name="t4"> -->
</testgroup>
Do i have to write something like this???:
Code: Select all
<rng:define name="testgroup">
<rng:zeroOrMore>
<rng:choice>
<rng:element name="test">
...
</rng:element>
<rng:include/>
</rng:choice>
</rng:zeroOrMore>
</rng:define>
Greetz
m0ps