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

RE: Not sure what is happenning

Subject: RE: Not sure what is happenning
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 10 Feb 2000 19:30:21 -0000
RE: Not sure what is happenning
xsl:apply-templates changes the current node; xsl:call-template does not.
 
Mike Kay

-----Original Message-----
From: Pady Srinivasan [mailto:pady@xxxxxxxxxxxxx]
Sent: 10 February 2000 17:41
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Not sure what is happenning


 
When I use xsl:call-template the following XSL script does not work. But it
works when I use xsl:apply-templates ( and remove the template "name"
attribute ). I have put the apply-templates code in comments. Also the
<xsl:param passed to the template does not relect the value inside the
template.
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="xml"/> 

<xsl:template match="/">
 <xsl:call-template name="all-info">
  <xsl:with-param name="network" select="CW_NetworkElement"/>
 </xsl:call-template>
 
</xsl:template>
 
<xsl:template name="all-info" match="INSTANCE"> 
 <xsl:param name="network" select="test"/>
 <xsl:value-of select="$network"/><xsl:text>
 </xsl:text>
 </xsl:template>
 

</xsl:stylesheet>

<!--
 
 <xsl:apply-templates select="INSTANCE">
  <xsl:with-param name="network" select="CW_NetworkElement"/>
 </xsl:apply-templates>
 
-->
 
 
Thanks
 
Pady


 


 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.