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]
