[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] expression returns true but does not evaluate


Subject: Re: [xsl] expression returns true but does not evaluate
From: "bryan rasmussen" <rasmussen.bryan@xxxxxxxxx>
Date: Sun, 11 Feb 2007 21:35:18 +0100

yeah ken, I was looking for current(), but am sort of worn out trying
to make open office tables space correctly so I totally missed it.

Thanks,
Bryan

On 2/11/07, G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:
At 2007-02-11 21:12 +0100, bryan rasmussen wrote:
>in what situations would the following
>
><xsl:value-of
>
>select="$moduleDoc//value/@name=concat(local-name(parent::*),local-name())
>
>"/>
>
>return true,
>
>while the following
>
><xsl:value-of
>
>select="$moduleDoc//value[@name=concat(local-name(parent::*),local-name())]"/>
>
>does not return the text value of the node.

The portion "parent::*" returns the parent of the current node in the
first expression and the parent of <value> in the second
expression.  Similarly the "local-name()" returns different values in
both expressions.

Did you perhaps want for the second one the following?

select="$moduleDoc//value[@name=concat(local-name(current()/parent::*),local-name(current()))]

I hope this helps.

. . . . . . . . . . . . Ken

--
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


Current Thread
Keywords