Re: [xsl] XSL/XPath to generate a list of ancestors?

Subject: Re: [xsl] XSL/XPath to generate a list of ancestors?
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Mon, 12 May 2008 19:05:51 +0200
Nathan Potter wrote:

I tried this:

     <xsl:template match="*" name="fullNameWorker" mode="fullName">
        <xsl:if test="generate-id(.)!=generate-id(/)">

You have a template for element nodes (match="*") so why do you test generate-id(.) != generate-id(/) ? An element (.) is never a root node (/).



--

	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread