[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Problem passing params with XALAN-C/testXSLT
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|