[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?

Subject: Re: XSL/XPath to generate a list of ancestors?
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Sat, 17 May 2008 19:56:56 +0200 (CEST)
Re:  XSL/XPath to generate a list of ancestors?
Martin Honnen wrote:


> >>>      <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.



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 

Current Thread


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.
First Name
Last Name
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.