[relaxng-user] Converting Relax-NG to Schema and DTD

David Tolpin dvd at davidashen.net
Tue Jan 13 16:11:53 ICT 2004


> Some of them I could work around, but others I have trouble seing the 
> problem right away.

Which ones?

> For comparison, these are the message from the XSD conversion: (4 total)
> warning: choice between attributes and children cannot be represented; 
> approximating
> warning: cannot represent an optional group of attributes; approximating
> warning: cannot represent required wildcard attribute; approximating
> 
> Note that these are all warnings about approximations, no errors. This 
> is exactly what I want. :-)

XSD output is more elaborated than DTD's. Three ways -- push James Clark
to enhance DTD output, hack the code of Trang and preprocess Relax NG so
that Trang could handle. I stillt think that automatic preprocessing with
XSL is doable and not that difficult. And while it may not a very general
solution, it will definitely not introduce new problems into Trang.

David Tolpin


More information about the relaxng-user mailing list