| From | Sent On | Attachments |
|---|---|---|
| Daniel Prager | Sep 26, 2002 7:48 pm | |
| Michael Fitzgerald | Sep 27, 2002 10:34 am | |
| Michael Fitzgerald | Sep 27, 2002 5:02 pm | |
| Michael Fitzgerald | Sep 28, 2002 11:31 pm | |
| Daniel Prager | Sep 29, 2002 6:41 pm | |
| Eddie Robertsson | Sep 29, 2002 7:16 pm | |
| Daniel Prager | Sep 29, 2002 8:37 pm | |
| Rick Jelliffe | Sep 29, 2002 9:11 pm | |
| Daniel Prager | Sep 29, 2002 9:41 pm | |
| Rick Jelliffe | Sep 30, 2002 2:04 am | |
| Yonekura Koji | Sep 30, 2002 3:28 am | |
| Robert Koberg | Oct 7, 2002 11:05 am | |
| didier demany | Oct 8, 2002 1:35 am | |
| Robert Koberg | Oct 8, 2002 1:45 am | |
| Robert Koberg | Oct 8, 2002 1:48 am | |
| Kohsuke KAWAGUCHI | Oct 8, 2002 6:32 am | |
| Robert Koberg | Oct 9, 2002 11:50 am | |
| MURATA Makoto (FAMILY Given) | Oct 9, 2002 5:26 pm | |
| Eddie Robertsson | Oct 14, 2002 4:24 pm | |
| Robert Koberg | Dec 3, 2002 6:52 am | |
| Michael Fitzgerald | Dec 3, 2002 8:43 am | |
| James Clark | Dec 3, 2002 8:57 pm | |
| Robert Koberg | Dec 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.
thanks, -Rob
-----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,
Didier Demany didi...@xmloperator.net http://www.xmloperator.net/ : an XML editor
___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
---------------------------------------------------------------- To subscribe or unsubscribe from this elist use the subscription manager: <http://lists.oasis-open.org/ob/adm.pl>





