[relaxng-user] another trang question about DTD generation
Sebastian Rahtz
sebastian.rahtz at computing-services.oxford.ac.uk
Mon Jan 19 16:42:31 ICT 2004
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
More information about the relaxng-user
mailing list