[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
At 2007-02-11 21:12 +0100, bryan rasmussen wrote:
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
Re: [xsl] expression returns true but does not evaluate
Subject: Re: [xsl] expression returns true but does not evaluate From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sun, 11 Feb 2007 15:31:58 -0500 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] expression returns true but d, bryan rasmussen | Thread | Re: [xsl] expression returns true b, bryan rasmussen |
[xsl] expression returns true but d, bryan rasmussen | Date | [xsl] Re: expression returns true b, bryan rasmussen |
Month |