What you have written in <mixed> is the equivalent of:
<interleave>
<element name="emph">
<text/>
</element>
<text/>
</interleave>
(One instance of <emph> possibly bracketed by text.) This has no direct
translation into a DTD, and is probably not what you mean, either. You
probably intend to allow more than one instance of <emph> in the mixed
sequence, which would be written:
<mixed>
<zeroOrMore>
<element name="emph">
<text/>
</element>
</zeroOrMore>
</mixed>
Trang will translate this to the expected:
<!ELEMENT description (#PCDATA|emph)*>
Bob Foster
"Paul A. Hoadley" <pa***@grover.logicsquad.net> wrote in message
news:slrnbru6na.13f3.pa***@grover.logicsquad.net.. .
Hello,
I am trying to convert a RELAX NG schema to DTD using Trang. I am
currently trying to add some inline elements to the schema, such as
<emph> for marking emphasised text. Here is an excerpt from the
schema:
<define name="description">
<element name="description">
<mixed>
<element name="emph">
<text/>
</element>
</mixed>
</element>
</define>
Trang complains:
593: error: sorry, cannot handle this kind of "mixed"
Am I botching the RELAX NG syntax there, or is this a limitation of
Trang?
--
Paul.
mailto:paulh_logicsquad_net (make the obvious substitutions)