* david.siefert wrote: >This may sound like a stupid question, but I am still relatively new >to Relax-NG (~6mo's use). The following RNG schema fragment should >really be redundant in the use of choice: > ><define name="a-pattern-using-double-choice" combine="choice"> > <choice> > <ref name="a-pattern-reference-A" /> > <ref name="a-pattern-reference-B" /> > </choice> ></define> ><define name="a-pattern-using-double-choice" combine="choice"> > <ref name="a-pattern-reference-C" /> ></define>
Not really, what is "redundant" here is using two <define>s where one would suffice. It is sometimes more convenient to define a pattern in one place and extend it later. The actual <choice> element is needed as <define> implies a <group>. -- Björn Höhrmann · mailto:[email protected] · http://bjoern.hoehrmann.de Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
