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

transform fails with param and variable in template at

Subject: transform fails with param and variable in template at the same time
From: Lindsey Simon <lsimon@xxxxxxxxxxxx>
Date: Fri, 07 Jul 2006 13:34:09 -0500
xsl variable firefox
I'm testing the following in my browser - Firefox - and I looked at the FAQ but I'm not sure why this would fail, so I thought I'd ask the list.

<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type="text/xsl" href="test2.xsl"?>

XSL (test2.xsl):
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method='xml' version='1.0' encoding='UTF-8' indent='no' />

   <xsl:template match='/root'>
      <xsl:call-template name="testTemplate">
         <xsl:with-param name="testParam" select="'testParamVal'" />

   <xsl:template name="testTemplate">
      <xsl:variable name="testVariable" select="'testVariableVal'" />
      <xsl:param name="testParam"  />

      <results>result is all good</results>

If I remove the line: <xsl:variable name="testVariable" select="'testVariableVal'" /> from the testTemplate, then it works just fine. Is there some reason one cannot mix param's and variable's ?



Lindsey Simon
Key fingerprint = C6A9 B9D9 677E A631 3E7F  43BF 5E2F 77F1 A33C B117
Public Key: http://www.commoner.com/pubkey.asc

Current Thread


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.
First Name
Last Name
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.