xsl-list
[Top] [All Lists]

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

2008-05-12 10:06:27
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--