Subject: Re: [xsl] Getting variable yet most immediate parentNode From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Fri, 28 Sep 2007 19:21:28 +0200 |
At 11:56 AM 9/28/2007, Steve wrote:<!-- Doesn't work. Ignores all @name --> <xsl:value-of select="(@name|.)[1]" />
This won't work since the current node will always precede any @name attribute in document order. Try select="(.|@name)[last()]" (which adds the value of the @name attribute, if there is one, in preference to the value of the node) or the more explicit (but slightly different)
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Getting variable yet most, David Carlisle | Thread | Re: [xsl] Getting variable yet most, Steve |
[xsl] Attribute of greatest value f, Steve | Date | Re: [xsl] Attribute of greatest val, David Carlisle |
Month |