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

RE: XSL selection of apply templates

Subject: RE: XSL selection of apply templates
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 12 Apr 2001 14:22:55 +0100
xsl apply templates selection
<xsl:apply-templates> selects a set of nodes to process.

For each of these nodes, the system searches for a template rule that
matches the node. If there is more than one, it chooses the one with highest
priority and precedence.

Sorry if this is a very short explanation but you will find a longer one in
my book....

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Moshe Eshel
> Sent: 11 April 2001 14:37
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  XSL selection of apply templates
>
>
> I have three files in this scheme...
>
> an XML file which conatins elements named BOX with an
> attribute of PLACE_ID
> and an attribute of  BOX_TEMPLATE_ID
> <BOX PLACE_ID="1" BOX_TEMPLATE_ID="4"/>
>
> an XSL file which holds <xsl:apply-templates
> select="//BOX[@PLACE_ID='1']"/>
>
> another XSL file included in the first which Holds:
> <xsl:template match="BOX[@BOX_TEMPLATE_ID='4']">
> Do Something
> </xsl:template>
>
> Each of the files contains more of these with other values
>
> What happens is that everything works exactly as I want it
> to... The First
> XSL finds the appropriate template to apply on the specific
> BOX element
> (according to its  BOX_TEMPLATE_ID) and executes this in the
> order of the
> PLACE_ID
>
> My question might seem stupid (because it works) but here
> goes: Why does it
> work that way, and Howis it logically done by the XSL processor...
>
> BTW I'm using MSXML3
>
> Thanks a bunch
> Moshe
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  _ _ _ _ _ _
> Moshe Eshel
> U4all.com - The Live Knowledge Trading Community
> http://www.u4all.com
> moshe@xxxxxxxxx
> AIM: hakotea
> +972 3 624 1848 #107
> +972 52 780 475
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>  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.