Subject: RE: [xsl] get parameter from xalan command line From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Fri, 21 Sep 2001 09:02:34 +0100 |
> I use Xalan command base to translate a XML file to another > xml file with a XSL file, and i > pass in 1 parameter to the xsl, the command is like: > > C:\ java -jar xalan.jar -IN Testing.xml -XSL testing.xsl > -PARAM testParam testValue -OUT > Testing4.xml > > and my problem is how to get parameter testParam and the > value ( taht is textValue ) from the > command line ? I tried to use <xsl:value-of > select="$textParam" /> in my xsl file, but error > occur : variableReference given for variable out of context > or without definition. You've done two of the three things you need to to; the third is to declare the parameter in your stylesheet, with a top-level declaration: <xsl:param name="textParam"/> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] get parameter from xalan comm, Ling Kok Choon | Thread | Re: [xsl] get parameter from xalan , Paulo Henrique S. Be |
RE: [xsl] Inexplicable Null Charact, Michael Kay | Date | RE: [xsl] XML schema general conver, Michael Kay |
Month |