RE: [xsl] extending the DTD

Subject: RE: [xsl] extending the DTD
From: "Colin Adams" <colinpauladams@xxxxxxxxxxx>
Date: Thu, 14 Sep 2006 07:22:05 +0100
From: Jeff Sese <jsese@xxxxxxxxxxxx>


Is it possible to extend a DTD using XSLT? I can declare a system DTD using the doctype-sytem attribute in the xsl:output element, however I want to add extra entity declarations into the system dtd that I added. I want to achieve an out like the one below:


<!DOCTYPE index SYSTEM "D:\RND\ECW\Asiatype DTD\ATI_1.4.dtd" [
<!ENTITY test "some text">
]>
<element>
   <text>&test;</text>
</element>
Thanks,

This is not possible in a portable manner.
If your processor allows you to use name-spaced output methods, then it might be possible to write your own method to add this facility through (an) extension attribute(s).


My own processor provides such a facility. Saxon has something too.

_________________________________________________________________
Windows Live Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb


Current Thread