This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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@u4all.com
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]