Subject: Problem passing params with XALAN-C/testXSLT From: Niall Kavanagh <kavanagh@xxxxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 26 May 2000 10:51:15 -0400 (EDT) |
Hi there! Apologies if this is a very basic question, and for it being specific (I think) to XALAN. I'm using XALAN-C 0.30.0, and have a question regarding one of the examples, TestXSLT. I'm trying to accomplish something that I thought TestXSLT could do, but I'm apparantly running into the same problem with TestXSLT as I am with my own application. Take this simple stylesheet: --cut here-- <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="clusterConfig"> <xsl:value-of select="$memberID" /> </xsl:template> <xsl:template match="clusterStatus"> </xsl:template> </xsl:stylesheet> --end cut-- When I stick this line in: <xsl:param name="memberID" select="1" /> Everything works fine... however, when I try to pass the param on the command line: ./testXSLT -IN file:///home/kavanagh/myfile.xml -XSL file:///home/kavanagh/test.xsl -HTML -PARAM memberID '3' ... I get: VariableReference given for variable out of context or without definition! Name = memberID, at line number 0 at offset 0 test.xsl is exactly the same as the stylesheet I posted above. Am I totally misunderstanding what the -PARAM paramater (and setStylesheetParam) should be doing? Any help or clue-stick bashing is greatly appriciated. ;) -- Niall Kavanagh kavanagh@xxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Newbie Question: call-template , Kay Michael | Thread | running table-header?, Pawson, David |
Re: How would you add depth to this, Eric G. Bosch | Date | RE: Newbie Question: call-template , Kay Michael |
Month |