[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|