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(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com>
wrote:
On 3/16/06, Oleg Konovalov <olegkon(_at_)gmail(_dot_)com> 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
--~------------------------------------------------------------------
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>
--~--