[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL/XPath to generate a list of ancestors?
Martin Honnen wrote: Hi > >>> <xsl:template match="*" name="fullNameWorker" > >>> mode="fullName"> > >> You have a template for element nodes (match="*") so why do > >> you test > >> generate-id(.) != generate-id(/) > >> ? An element (.) is never a root node (/). > > Because the template recursively ascends the document I need to > > test that I have arrived at the top. > But your template with match="*" is never processed for the root > node which is match="/". This message was posted a few days ago, but I didn't see any response to that, so just for the sake of comprehensiveness in the archive... I didn't looked at the details of the template, but having match="*" is not enough to garantee that the context item is an element, when the template has also a name. This is one reason to try to avoid having named template rules IMHO. Regards, --drkm __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicitis http://mail.yahoo.fr Yahoo! Mail
|
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
|