cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hewko, Doug" <Doug.He...@ccra-adrc.gc.ca>
Subject How to set up cocoon to pass parameters?
Date Mon, 01 Oct 2001 16:01:22 GMT
How can I set up cocoon to pass parameters from one file to another? For
now, I would be happy having the value of my parameter change when I click
on a link.

I am trying and this is the internal error I get:
2001-10-01 11:34:41 [org.apache.catalina.connector.warp.WarpConnector] Error
accepting requests
****************************************************************************
***************************
Here is my entry in my sitemap.xml file:
   <map:match pattern="test.html">
    <map:generate src="testing/test.xml"/>
    <map:transform src="testing/test.xsl"/>	 
     <map:parameter name="paramtest"/>	
	   <map:serialize type="html"/>	
   </map:match>   
****************************************************************************
***************************
Here is my XSL:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- determine output of transform -->
<xsl:output method="html" encoding="iso-8859-1" indent="yes"/>

<xsl:param name="paramtest" select="on"/>
<!-- master template-->
<xsl:template match="/">
<html>
<body>
parameter value=<xsl:value-of select="$paramtest"/>
<br /><br />
xml value=<xsl:value-of select="//resource"/>
<xsl:variable name="something">ABC</xsl:variable>
<a href="\cocoon\test.html?paramtest=1234">Click here</a>
</body>
</html>

</xsl:template>

</xsl:stylesheet>

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message