another trang question about DTD generation

Sebastian Rahtz <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
If I start with this bit of RelaxNG:

<define name="c">
    <element name="c">
      <ref name="content.c"/>
    </element>
  </define>
  <define name="content.c">
    <text/>
  </define>

Trang generates

<!ENTITY % content.c "(#PCDATA)">
<!ELEMENT ns1:c (%content.c;)>

which parsers reject, saying eg
  Error: Misplaced #PCDATA in content declaration

Is this an error in trang, or something I have to work around by hand?

Sebastian Rahtz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.