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

RE: generate xsl 1.0 from 2.0 question

Subject: RE: generate xsl 1.0 from 2.0 question
From: "Bryan Rasmussen" <bry@xxxxxxxxxx>
Date: Wed, 23 Jan 2002 12:05:50 +0100
RE:  generate xsl 1.0 from 2.0 question
now the coffee's kicking in, I should be able to get rid of all my named
templates, click_here etc. and just have
<xsl:template name="translator2">
<xsl:param name="transparam"/>
<temp:choose><xsl:for-each
select="$translator[@name=$transparam]/child::node()[name()!='']">
<xsl:call-template name="translator"/></xsl:for-each></temp:choose>
</xsl:template>
right? in xslt 2.0 I mean. Is there any optimization that can be done on
that?

>anyway the thing I was wondering about is in the template name="click_here"
>you'll notice I do the $translator[@name='Click_here'] is there anyway to
>select the name of the template one is in(in xslt 2.0), in such a way that
I
>could make a parameter holding the template/@name value and pass it to a
>named template through a call?





 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 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.