XSL stylesheet which generates DTD from XML stylesheet

Subject: XSL stylesheet which generates DTD from XML stylesheet
From: Miloslav Nic <nicmila@xxxxxxxx>
Date: Tue, 13 Jul 1999 12:58:29 +0200
At http://zvon.vscht.cz/ZvonHTML/Zvon/zvonHomepage_en.html
you will find a XSL script, which reads XML file and generates a DTD
from it. In the template, there are all tags I have ever used. If I need
a new DTD I just add the tags or conditions I do not have in the
template, then I will tell in separate XSL file which root tag and which
scheme should be used, the parent XSL looks for this tag and then
selects only those tags, which are needed. It generates complete DTD,
with the premium that tags are alphabetically sorted.

I have there a problem. I do not know how to generate DTD straight by
XSL, as DTD's are not well formed XML. I am using a solution, in which
&lt ; is printed and then perl script which replaces all occurrences of
&lt ; for <.
Can I somehow tell XSL engine to print <! ....  > sort of tags and use
at same time only portable features of XSL? Thanks.
-- 
***************************************************************
Dr. Miloslav Nic                        e-mail: nicmila@xxxxxxxx
Department of Organic Chemistry         TEL: +420 2 2435 5012  
ICT Prague (VSCHT Praha)                     +420 2 2435 4118
    				        FAX: +420 2 2435 4288  
****************************************************************


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread