xsl-list
[Top] [All Lists]

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

2007-02-11 13:35:40
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(_at_)cranesoftwrights(_dot_)com> 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[(_at_)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[(_at_)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(_at_)CraneSoftwrights(_dot_)com
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


--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>