Saigal, Ankur wrote:
Hi,
I have the following style sheet,
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:mynsprefix="urn:sap-com:document:sap:rfc:functions"
xmlns:java="http://xml.apache.org/xslt/java"
exclude-result-prefixes="java"
version="1.0" >
<xsl:param name="Xpathname"/>
<xsl:template match="/">
<xsl:copy-of select="$Xpathname"/>
</xsl:template>
</xsl:stylesheet>
From the java code I set the value of this parameter (Xpathname).The value I
set happens to be a String object.
Now when I transform I get the output as the value of the Xpathname
parameter only, whereas If I declare a vraible inside the stylesheet and
give it the same value as I am giving to the parameter from outside I get
the desired result.
Is there some problem with passing the String Object?
Thanks and Regards,
Ankur
Well, I don't have the solution (any are welcome) but I did have the
same problem .I tried with the command line and Xalan didn't accept
passing the argument as aString Object but was expecting for something
else .
Xavier