[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] How can I merge two DTD by using XSL ?


Subject: Re: [xsl] How can I merge two DTD by using XSL ?
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Sun, 24 Mar 2002 16:04:02 +0000

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



Current Thread
Keywords