[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: expression returns true but does not evaluate

Subject: Re: expression returns true but does not evaluate
From: "bryan rasmussen" <rasmussen.bryan@xxxxxxxxx>
Date: Sun, 11 Feb 2007 21:35:18 +0100
Re:  expression returns true but does not evaluate
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.