xsl-list
[Top] [All Lists]

Re: RE: DTD within an XML document

2003-04-07 08:38:38
Alessandro,

You could use something like this:
&lt;DOCTYPE <xsl:value-of select="$topDocumentNode"/> SYSTEM [
<xsl:apply-templates/> ]&gt;

You would need to setup the topDocumentNode variable and then add support
templates for the different elements.  Without knowing what you are trying
to transform from, however, it is difficult to provide a working solution.

bix


----- Original Message -----
From: "Alessandro di Bella" <adibella(_at_)riverdeep(_dot_)net>
To: <XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, April 07, 2003 10:17 AM
Subject: [xsl] RE: DTD within an XML document



Hi,
I've been trying to find a solution to this for the last two days so I
would
really appreciate if someone could give me some help. The problem is
simple:
I need to write a stylesheet that outputs something like:

<!DOCTYPE test SYSTEM [
   ...entities definition...
]>

I know it is possible to specify a DTD with the entities in it using
<xsl:output.../> for a list of long reasons I need to do as described
above.

Any ideas?

Thanks

Alessandro


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



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



<Prev in Thread] Current Thread [Next in Thread>