This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]