Subject: Re: [xsl] XSL/XPath to generate a list of ancestors? From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Mon, 12 May 2008 19:15:26 +0200 |
On May 12, 2008, at 10:05 AM, Martin Honnen wrote:
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 (/).
Because the template recursively ascends the document I need to test that I have arrived at the top.
Martin Honnen http://JavaScript.FAQTs.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL/XPath to generate a l, Nathan Potter | Thread | Re: [xsl] XSL/XPath to generate a l, Nathan Potter |
[xsl] [ANN] Release 2 of Altova's 2, ANNOUNCE | Date | [xsl] Page break help, Ferry, Jeremy |
Month |