[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: Refer to keys in the other grammar.
Say I have a XHTML grammar. <grammar> <define name="div"> <optional> <attribute name="id" type="xsd:NMTOKEN" key="XHTML_ID" /> </optional> <zeroOrMore> <choice> <element name="p"/> <element name="div" /> </choice> </zeroOrMore> </define> <define name="p"><anyString/></define> </grammar> Now suppose I write another grammar which uses the above grammar: <grammar> <start> <element name="root"> <element name="documentation"> <include href="XHTML.rng"/> </element> <element name="doc_ref"> <keyref name="XHTML_ID" /> </element> </element> </start> </grammar> As you see, I tried to refer to XHTML_ID from my own grammar. But I believe this is prohibited because key symbol space is local to a grammar. If so, how should I do what I want? -- Kohsuke KAWAGUCHI +1 650 786 0721 Sun Microsystems kohsuke.kawaguchi@eng.sun.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC