cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Smith" <msm...@windebt.com>
Subject a PI in my output
Date Fri, 03 Nov 2000 01:30:47 GMT
	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>

Mime
View raw message