atom feed23 messages in org.oasis-open.lists.relax-ng-commentRE: [relax-ng-comment] Re: recursive ...
FromSent OnAttachments
Daniel PragerSep 26, 2002 7:48 pm 
Michael FitzgeraldSep 27, 2002 10:34 am 
Michael FitzgeraldSep 27, 2002 5:02 pm 
Michael FitzgeraldSep 28, 2002 11:31 pm 
Daniel PragerSep 29, 2002 6:41 pm 
Eddie RobertssonSep 29, 2002 7:16 pm 
Daniel PragerSep 29, 2002 8:37 pm 
Rick JelliffeSep 29, 2002 9:11 pm 
Daniel PragerSep 29, 2002 9:41 pm 
Rick JelliffeSep 30, 2002 2:04 am 
Yonekura KojiSep 30, 2002 3:28 am 
Robert KobergOct 7, 2002 11:05 am 
didier demanyOct 8, 2002 1:35 am 
Robert KobergOct 8, 2002 1:45 am 
Robert KobergOct 8, 2002 1:48 am 
Kohsuke KAWAGUCHIOct 8, 2002 6:32 am 
Robert KobergOct 9, 2002 11:50 am 
MURATA Makoto (FAMILY Given)Oct 9, 2002 5:26 pm 
Eddie RobertssonOct 14, 2002 4:24 pm 
Robert KobergDec 3, 2002 6:52 am 
Michael FitzgeraldDec 3, 2002 8:43 am 
James ClarkDec 3, 2002 8:57 pm 
Robert KobergDec 4, 2002 3:09 am 
Subject:RE: [relax-ng-comment] Re: recursive inlusion
From:Robert Koberg (ro@livestoryboard.com)
Date:Oct 8, 2002 1:48:13 am
List:org.oasis-open.lists.relax-ng-comment

Wait, I did not read this through and just glanced at it. Now that I am reading it again it does look like what I want, sorry for the previous mailing.

thanks, -Rob

-----Original Message----- From: Robert Koberg [mailto:ro@livestoryboard.com] Sent: Tuesday, October 08, 2002 1:42 AM To: didier demany; rela@lists.oasis-open.org Subject: RE: [relax-ng-comment] Re: recursive inlusion

Yes, I realize that - it is how I have it now. But in addition to defining the strong and em in abc, I also have , say, 'def' amd 'ghi' which also use strong and em. I have to define strong and em in each. I was hoping there was a way i could define them once and include them wherever they are needed. This works fine unless it is like the case I posted originally (where strong external-ref's an em and vice versa.

I also want to keep them separate so users can easily add elements to other elements, while definning them in just one place.

-----Original Message----- From: didier demany [mailto:didi@yahoo.fr] Sent: Tuesday, October 08, 2002 1:34 AM To: rela@lists.oasis-open.org Subject: [relax-ng-comment] Re: recursive inlusion

You can alternate including "strong" and "em" elements in separate documents by this way :

------------------------------------ abc.rng

<grammar> <start> <element name="abc"> <zeroOrMore> <choice> <text/> <ref name="strong"/> <ref name="em"/> </choice> </zeroOrMore> </element> </start> <define name="strong"> <grammar> <include href="strong.rng"> <define name="content"> <parentRef name="em"/> </define> </include> </grammar> </define> <define name="em"> <grammar> <include href="em.rng"> <define name="content"> <parentRef name="strong"/> </define> </include> </grammar> </define> </grammar>

------------------------------------ strong.rng

<grammar> <define name="content"> <notAllowed/> </define> <start> <element name="strong"> <oneOrMore> <choice> <text/> <ref name="content"/> </choice> </oneOrMore> </element> </start> </grammar>

------------------------------------ em.rng

<grammar> <define name="content"> <notAllowed/> </define> <start> <element name="em"> <oneOrMore> <choice> <text/> <ref name="content"/> </choice> </oneOrMore> </element> </start> </grammar>

------------------------------------

The construct is the object of the "Nested grammars" section of the tutorial http://www.oasis-open.org/committees/relax-ng/tutorial-20011203.html#IDA3PZR

Best regards,