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

Re: specific template?

Subject: Re: specific template?
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 3 Jul 2003 15:58:05 +0100
xsl apply specific template
Hi Martin,

> Oh, thanks, but I found what I need:
>
>            <xsl:apply-templates select="//formular">
>              <xsl:with-param name="name">login</xsl:with-param>
>            </xsl:apply-templates>
>
> ...
>
> <xsl:template match="formular">
>    <xsl:param name="name"/>
>    <xsl:if test="@name=$name">

If you only want to do something with the formular whose name
attribute is 'login', then it's easier to do:

  <xsl:apply-templates select="//formular[@name = 'login']" />

Or you can have two templates, one for general <formular> elements
that does nothing:

<xsl:template match="formular" />

and one for the <formular> element that you're interested in:

<xsl:template match="formular[@name = 'login']">
  ...
</xsl:template>

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.