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

XSL selection of apply templates

Subject: XSL selection of apply templates
From: "Moshe Eshel" <hakotea@xxxxxxxxx>
Date: Wed, 11 Apr 2001 15:36:37 +0200
972 moshe yahoo.
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


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.