Here is what come from the simple installation
In the Site map :
<map:transform src="">"context://stylesheets/system/error2html.xslt">
<map:parameter name="contextPath" value="{request:contextPath}"/>
<map:parameter name="pageTitle" value="Resource not found"/>
</map:transform>
Then in the error2html.xslt file
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:error="http://apache.org/cocoon/error/2.1">
<xsl:param name="contextPath" select="string('/cocoon')"/>
<!-- let sitemap override default page title -->
<xsl:param name="pageTitle" select="//error:notify/error:title"/>
<xsl:template match="error:notify">
...
and it works
Laurent
| Terence Kearns <[EMAIL PROTECTED]>
29/04/2004 11:18
|
To: [EMAIL PROTECTED] cc: Subject: how to pass XSL param to stylesheet from sitemap |
Basically I want to pass the matched pattern in {1} as the content of an
XSL parameter to whatever stylesheet I am using.
Is this possible?
Thanks for any help.
--
Terence Kearns
ph: +61 2 6201 5516
Enterprise Applications Developer
Enterprise Systems Support and Development
Information and Communications Technology (ICT) Services
University of Canberra, Australia - http://www.canberra.edu.au
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
