RE: [xsl] XSL selection of apply templates

Subject: RE: [xsl] XSL selection of apply templates
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 12 Apr 2001 14:22:55 +0100
<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] 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