Subject: Re: [xsl] XSL/XPath to generate a list of ancestors? From: Nathan Potter <ndp@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 12 May 2008 10:11:13 -0700 |
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/
============================================================ Nathan Potter Oregon State University, COAS ndp at coas.oregonstate.edu 104 Ocean. Admin. Bldg. 541 737 2293 voice Corvallis, OR 97331-5503 541 737 2064 fax
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL/XPath to generate a l, Martin Honnen | Thread | Re: [xsl] XSL/XPath to generate a l, Martin Honnen |
Re: [xsl] XSL/XPath to generate a l, Martin Honnen | Date | [xsl] [ANN] Release 2 of Altova's 2, ANNOUNCE |
Month |