This is a very good idea. I had the same need, and you have solved my
problem.
Thanks !!

Matthieu

PS : here is a Xalan/C2 bug which may be related to this problem :
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1121


>
> Thanks for the link.  Xalan/C2 doesn't seem to like <xsl:output
> doctype-public="..."> too much. However, the page you posted let me to
> another solution that works as well:
>
> <xsl:text disable-output-escaping="yes">
> <![CDATA[
>       <!DOCTYPE ...>
> ]]>
> </xsl:text>
>
> ...hope that helps anyone that might be having the same problem.
>
> -Zack
>
>
> -----Original Message-----
> From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 05, 2002 3:43 PM
> To: [EMAIL PROTECTED]
> Subject: Re: have serialized xml use doctype?
>
> Zack Angelo wrote:
> > I'm generating XML that is to be fetched by an external browser. In
> the
> > serialized XML file, I need it to specify a DTD to use.how do I do it?
>
>
> Check the xsl:output element
>   http://www.w3.org/TR/xslt#output
> add doctype-system and doctype-public as needed.
>
> J.Pietschmann


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to