[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:
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type="text/xsl" href="test2.xsl"?>
<root>
<stuff>stuff</stuff>
<thing>thing</thing>
</root>

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:call-template>
   </xsl:template>

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

      <results>result is all good</results>
   </xsl:template>
</xsl:stylesheet>


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 ?


Thanks!


--


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

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.