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

AW: calling templates

Subject: AW: calling templates
From: <christof.hoeke@xxxxxxx>
Date: Mon, 21 Jun 2004 12:39:18 +0200
free calling template
just use the union operator "|"

<xsl:apply-templates select="link | section" />

which in this case could be read as link or section

chris

> -----Ursprüngliche Nachricht-----
> Von: james walker [mailto:jameswalkerandy@xxxxxxxxxxx]
> Gesendet: Montag, 21. Juni 2004 12:36
> An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Betreff:  calling templates
> 
> 
> if u have an xml file like this:
> <main>
> <name>
> <desc>
> <link></link>
> <section></section>
> .........(the any number of section an dlink tags in any order)
> </main>
> 
> and u had a template match currently in main, how would u do an 
> <xsl:apply-templates /> on all the <link> and <section> tags 
> but not the 
> <name> and <desc> tags?
> i thought about <xsl:apply-templates select="link" /> and then 
> <xsl:apply-templates select="section" /> but that would do it 
> in two groups, 
> i would like to apply the template sin the order they appear 
> in the xml 
> file......
> can anyone help
> cheers
> james walker
> 
> _________________________________________________________________
> It's fast, it's easy and it's free. Get MSN Messenger today! 
> http://www.msn.co.uk/messenger
> 
> 
> --+------------------------------------------------------------------
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> --+--
> 
> 

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.