[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Problem passing params with XALAN-C/testXSLT

Subject: Problem passing params with XALAN-C/testXSLT
From: Niall Kavanagh <kavanagh@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 May 2000 10:51:15 -0400 (EDT)
xalan params
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.