Hi,
As far as I know does the xsl:with-param element not allow content, but only the select attribute.
Try <xsl:with-param name="name" select="'message'" /> instead...
But it doesn't really explain your result. And I'm not familiar with the logicsheet-util.xsl...
Cheers, Geert
Marcos Bori wrote:
Hello,
I'm using the file "logicsheet-util.xsl" to use the ":param" tag in a logicsheet, and I get a an unexpected behaviour. These are the files I'm using:
test.xsp:
--------
<?xml version="1.0"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:test="test">
<xsp:logicsheet location="docs/logicsheets/test.xsl"/>
<xsp:logic>
String msg="this is what i want to get";
</xsp:logic>
<document>
<test:test>
<test:param name="message">
<xsp:expr>msg</xsp:expr>
</test:param>
</test:test>
</document>
</xsp:page>
test.xsl: -------- <?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsp="http://apache.org/xsp" xmlns:test="test" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="namespace-uri">test</xsl:variable>
<xsl:variable name="prefix">test</xsl:variable>
<xsl:include href="logicsheet-util.xsl"/>
<xsl:template match="test:test"> <xsl:variable name="message"> <xsl:call-template name="get-parameter"> <xsl:with-param name="name">message</xsl:with-param> </xsl:call-template> </xsl:variable> <result><xsl:value-of select="$message"/></result> </xsl:template>
<xsl:template match="@*|*|text()|processing-instruction()">
<xsl:copy>
<xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Result: ------- <document> <result> msg </result> </document>
What I expect to get: ---------------------- <document> <result> this is what i want to get </result> </document>
Am I doing anything wrong? How can I solve this problem?
Thank you.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- [EMAIL PROTECTED] IT-consultant at Daidalos BV, Zoetermeer (NL)
http://www.daidalos.nl/ tel:+31-(0)79-3316961 fax:+31-(0)79-3316464
GPG: 1024D/12DEBB50
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
