You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by st...@the-ecorp.com on 2001/03/08 09:38:02 UTC
XSL parameter passing from sitemap
I've tried to pass an XSL parameter to a stylesheet in a resource pipeline,
and although it apparently is being passed through to the Trax transformer
(at least the relevant debug statement is triggered ;-), I can't reference
the parameter in my stylesheet. Is this a Cocoon or a Xalan bug?
stylesheet:
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="section" />
<xsl:template match="/">
<html>
<head>
<title>
<xsl:value-of select="/doc/title" />
</title>
</head>
<body>
<b>listsection style</b>
<br />
<xsl:value-of select="$section" />
<br />
<xsl:apply-templates select="/doc/body" />
</body>
</html>
</xsl:template>
</xsl:stylesheet>
sitemap fragment:
<map:resource name="thoughts">
<map:generate src="content/resources/thoughts/index.xml"/>
<map:transform src="style/listsection.xsl">
<parameter name="section" value="thoughts"/>
</map:transform>
<map:serialize type="html"/>
</map:resource>
Also, has anyone already looked at my 'slashes in resourcenames' problem?
Regards,
</Steven>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org