> Use a stylesheet like this (i called it "add_stylesheet_pi.xsl"): > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > <xsl:strip-space elements="*"/> > <xsl:param name="stylesheet"/> > <xsl:template match="*"> > <xsl:text disable-output-escaping="yes"><?xml-stylesheet > type="text/xsl" href="</xsl:text><xsl:value-of > select="$stylesheet"/><xsl:text > disable-output-escaping="yes">"?></xsl:text> > <xsl:copy-of select="."/> > </xsl:template> > </xsl:stylesheet>
Why not using <xsl:processing-instruction>? <xsl:processing-instruction name="xml-stylesheet"> <xsl:text>type="text/xsl" href="</xsl:text> <xsl:value-of select="$stylesheet"/> <xsl:text>"</xsl:text> </xsl:processing-instruction> In general try to avoid disable-output-escaping! Regards, Joerg -- System Development VIRBUS AG Fon +49(0)341-979-7411 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de --------------------------------------------------------------------- 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]>