You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Matthew Smith <ms...@windebt.com> on 2000/11/03 02:30:47 UTC
a PI in my output
My final output has an xml PI in it. I don't understand why it doesn't go
away before the document gets to the user. The document definitly gets
processed through that stylesheet.
Here's the output:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<?xml-stylesheet href="style/layout.xsl" type="text/xsl"?>
<html><head><title>...
The PI is built in a stylesheet that all my xml gets run through. That
stylesheet:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">
<xsl:processing-instruction
name="cocoon-process">type="xsp"</xsl:processing-instruction>
<xsl:processing-instruction name="xml-logicsheet">href="logic/logic.xsl"
type="text/xsl"</xsl:processing-instruction>
<xsl:processing-instruction
name="cocoon-process">type="xslt"</xsl:processing-instruction>
<xsl:processing-instruction name="xml-stylesheet">href="style/layout.xsl"
type="text/xsl"</xsl:processing-instruction>
<page>
<xsl:copy-of select="@*|node()|text()" />
</page>
</xsl:template>
</xsl:stylesheet>