cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Abbott <i...@cinesite.co.uk>
Subject Re: why just source !?
Date Wed, 28 Jun 2000 13:41:41 GMT
I made a big typo there... second line should be
<xsl:processing-instruction
name="cocoon-process">type="xslt"</xsl:processing-instruction> as it's
an instruction for more cocoon processing.

cocoon-format is used by the final transform and picks media type, e.g.
text/html.

Ian

> i.e. <xsl:template match="page">
>        <xsl:processing-instruction
> name="cocoon-process">type="xsp"</xsl:processing-instruction>
>        <xsl:processing-instruction
> name="cocoon-format">type="xslt"</xsl:processing-instruction>
>        <xsl:processing-instruction
> name="xml-stylesheet">href="secondtransform.xsl"
> type="text/xsl"</xsl:processing-instruction>
>        <xsp:page>
>        ...
>        </xsp:page>
>      </xsl:template>
> 
> Otherwise, Cocoon is applying the first transform that adds your XSP
> code and outputs the results. You need to explicitly add more chaining
> using PIs into the transformed data so that Cocoon then applys XSP and a
> secondary transform.
> 
> Ian
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

Mime
View raw message