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

Call Template processing problem

Subject: Call Template processing problem
From: "Mlachak, Michael \(SAIC\)" <Michael.Mlachak@xxxxxx>
Date: Mon, 7 Nov 2005 10:18:04 -0600
michael mlachak
I am trying to call a template with 2 parameters and am having some
problems.  The second parameter of the following call always returns an
empty string.  I am using MSXML.  Here is the appropriate code.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method="html" version="4.0" indent="yes"/>

   <xsl:template name="test">
       <xsl:param name="sstr" />
       <xsl:param name="length1" />
         (<xsl:value-of select="$length1"/>)---[<xsl:value-of
select="$sstr"/>]
  </xsl:template>

   <!--============================  Start of TAB
============================-->
   <xsl:template match="/">
		<xsl:call-template name="test">
			<xsl:with-param name="length1" select="2" />
			<xsl:with-param name="sstr" select="somestring"
/>
		</xsl:call-template>
   </xsl:template>
</xsl:stylesheet>

Any help or guidance would be appreciated.

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.