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

Fwd: Re: Complex expression

Subject: Fwd: Re: Complex expression
From: "Oleg Konovalov" <olegkon@xxxxxxxxx>
Date: Thu, 16 Mar 2006 11:46:05 -0500
Fwd: Re:  Complex expression
Andrew,

So you are saying that to determine the Type of the Cell [named
"Start_Date"],
I need to use:  sht:Cell[sht:Name="Start_Date"]/@ValueType.

I also looked at not() vs. != in "Beginning XSLT" book and
if I understand correctly, it is better to use not() in my case (for
comparison true for any node), so it boils down to using:
<xsl:when test='not(sht:Cell[sht:Name="Start_Date"]/@ValueType = 'DATE')'
>...

Do you agree ?

Thank you,
Oleg.

On 3/16/06, andrew welch <andrew.j.welch@xxxxxxxxx> wrote:
> On 3/16/06, Oleg Konovalov <olegkon@xxxxxxxxx> wrote:
> > Are these 2 expressions equal (if not, please explain):
> > sht:Cell[sht:Name="Start_Date"]/@ValueType    and
> > sht:Cell/sht:Name[.="Start_Date"]/@ValueType
>
> no, the former looks for @ValueType on sht:Cell and the latter on
sht:Name...
>
> Sorry I hit "reply" instead of "reply to all" on the last mail, we
> really should keep this on list

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.