Re: How can I merge two DTD by using XSL ?
Hi Stephane, > Is it possible to merge the two files (xsldefinition1.dtd and > xsldefinition2.dtd) by using XSL ? XSLT is built to work over XML files, not over DTDs. The only way of getting XSLT to understand the information held in your DTDs is using a tool that converts the DTD to an XML document of some form. Similarly, the best way to get a DTD out of the transformation will be to have the transformation produce XML that is then serialized (by the XSLT processor) as a DTD. The latter is fairly straightforward, especially if you're using Saxon, which has this capability built-in. A brief search didn't come up with anything that turns a DTD into an XML form, so you might have to create something yourself to do that. And if you're having to program something special to convert into XML anyway, you might consider using something other than XSLT for doing the merging... Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format