cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <>
Subject Re: Embedding XML output of XSP into another XML page?
Date Wed, 15 Mar 2000 22:34:31 GMT
Erik Norvelle wrote:
> Folks:
> I have solved this problem...  It turns out I have to insert
> <xsl:processing-instruction
> name="cocoon-format">type="text/xml"</xsl:processing-instruction> into the
> XSL sheet for step #1.  This tag apparently goes inside the <xsl:template
> match="/"> tagset, although it may be able to be put elsewhere.
> As a note to any writers of documentation, it would be a good idea to
> include a section in the cocoon spec that lists the processing instructions
> that can be sent to Cocoon via the <xsl:processing-instruction> tag.  I only
> found this one by hunting around in the sample files for several hours.
> Also, there seems to be a problem that this introduces with the XSLT spec.
> It's my impression that use of the <xsl:output method="xml"/> is the
> recommended way to indicate output preference.  And indeed, Xalan appears to
> honor this tag.  However, Cocoon, when it sends the processed file out to
> the client, prepends a <!DOCTYPE HTML PUBLIC> declaration to the top of the
> file, ignoring the output type that the xsl file requested.  It seems to me
> that Cocoon should honor the output type that Xalan produces, marking it as
> HTML iff (if and only if) the xsl sheet has specified html via the
> <xsl:output> tag.
> For what it's worth...

xsl:output is a hack, exactly like ?cocoon-format? so we should get rid
of both of them starting from Cocoon2.

About the docs, any help to improve them will be greatly appreciated :)

Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<>                             Friedrich Nietzsche
 Come to the first official Apache Software Foundation Conference!  
------------------------- http://ApacheCon.Com ---------------------

View raw message