cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mika Fonsen <>
Subject Request attributes from XSP and input modules
Date Mon, 27 Oct 2003 13:55:00 GMT

I'm trying to pass a string as request attribute from an XSP to a
XSLT-stylesheet using an input module. The case #1 works fine.

However, in case #2 if I put an XSLT-transformer in between and try to
read the attribute using an input module, nothing gets trough.

What could be the problem? 

Ultimately I'm trying to use the string in an mod-db action, but I left
that part out because of the complexity. I'm actually preprocessing the
post-parameters from a browser before the mod-db action, would there be
a better way doing this?

CASE #1:
<map:match pattern="test">
	<map:generate src="at-test.xsp" type="serverpages"/>

<xsp:page language="java" xmlns:xsp=""
      String body = "test string";

CASE #2:
SITEMAP.XMAP (modified):
<map:match pattern="test">
  <map:generate src="at-test.xsp" type="serverpages"/>
  <map:transform src="paramtest.xsl">
    <map:parameter name="param" value="{request-attr:body}"/>

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
  <xsl:param name="param"/>
  <xsl:template match="/">
    param:<xsl:value-of select="$param"/>

Mika FonsÚn *

Do you Yahoo!?
Exclusive Video Premiere - Britney Spears

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message