This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Not sure what is happenning
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Not sure what is happenning
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 11 Feb 2000 09:08:30 -0000
- Reply-To: xsl-list at mulberrytech dot com
> So when a call-template call is made, then how will the
> called template change its current node ? ( In the example below, I need
to
> work with the "INSTANCE" element in the "all-info" template )
use <xsl:for-each select="INSTANCE">
for-each is often used just to change the current node, not necessarily for
iteration at all.
MHK
>
>
> If you have any other questions, please feel free to call us
> at 972-980-2890
> or send email to jticket@tek-tools.com
>
> Thanks
>
> Pady
> JTicket Main Site: http://www.tek-tools.com/jticket
> JTicket FAQ Site: http://www.tek-tools.com/jticket/jticketfaq.htm
>
>
>
> ----- Original Message -----
> From: Kay Michael <Michael.Kay@icl.com>
> To: <xsl-list@mulberrytech.com>
> Sent: Thursday, February 10, 2000 1:30 PM
> Subject: 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@tek-tools.com]
> > Sent: 10 February 2000 17:41
> > To: xsl-list@mulberrytech.com
> > 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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list