← Prev in month ← Prev in thread
Next in thread → Next in month →

RE: PE wrappers [WAS RE: Minutes for RELAX NG TC 2001-06-07]

From
Michael Fitzgerald <>
Date
2001-06-07T22:44:19+00:00
ID
Thread
RE: PE wrappers [WAS RE: Minutes for RELAX NG TC 2001-06-07]
Well take:

foo.dtd
<!ELEMENT foo (bar,baz)>
<!ATTLIST foo blork CDATA #IMPLIED>
<!ELEMENT bar (#PCDATA)>
<!ELEMENT baz (#PCDATA)>

bigfoo.dtd
...
<!ENTITY % foo-class SYSTEM './foo.dtd'> %foo-class;
...

So you could represent these declarations as part of a single file as....

bigfoo.rng
...
<div ns="urn:foo-org:foo-class">
 <element name="foo">
  <element name="bar">
   <text/>
  </element>
  <element name="baz">
   <text/>
  </element>
  <attribute name="blork>
   <text/>
  </attribute>
 </element>
</div>
...

Of course, you could write these separate DTD files as discrete RNG files
and then use include, as well you might. But sometimes you like things to be
less obscure, that is, in one file. div can help you do that.

I hope Norm can father elucidate, if necessary...

Mike




-----Original Message-----
From: Kohsuke KAWAGUCHI [mailto:]
Sent: Thursday, June 07, 2001 3:21 PM
To: RNG List
Subject: Re: Minutes for RELAX NG TC 2001-06-07



Thank you very much!

But then I don't understand why <div> is useful for that purpose. Isn't
it <include> that is useful for that purpose?


--
Kohsuke KAWAGUCHI                          +1 650 786 0721
Sun Microsystems                   


------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: 
← Prev in month ← Prev in thread
Next in thread → Next in month →