Re: empty quotes != not(string(.)) ????
From: Alex Shirshov (nomail_at_mail.ru)
Date: 04/14/04
- Next message: Kevin Yu [MSFT]: "Re: Save Application State to XML: How to have each module create a "Node"?"
- Previous message: Oleg Tkachenko [MVP]: "Re: Tutorial on XML namespaces?"
- In reply to: darrel: "Re: empty quotes != not(string(.)) ????"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Apr 2004 12:12:32 +0400
Hello, darrel!
You wrote on Tue, 13 Apr 2004 13:47:24 -0500:
??>> <xsl:if test="string(pageTitle[../linkID = $activeLink]) =
??>> ''"></xsl:if>
d> Hmm, I had this:
d> <xsl:when test="//pageTitle[../linkID = $activeLink] = ''">
This will be true if there is a node in nodeset, that reterned by
//pageTitle[../linkID = $activeLink] expression, equals to empty string.
d> And then tried your equation:
d> <xsl:when test="string(pageTitle[../linkID = $activeLink]) = ''">
True if the first node in nodeset, that reterned by //pageTitle[../linkID =
$activeLink] expression, equals to empty string.
I use string function, 'cause you said
[q]
I'm trying to find the _one_ (well, _first_, I suppose, though there is only
one)
[/q]
d> The first one seems to work, but the second one doesn't. I'm guessing
d> it's because the second one isn't defining a specific node?
Please, be more precise and post some snippets of the original xml.
With best regards, Alex Shirshov.
- Next message: Kevin Yu [MSFT]: "Re: Save Application State to XML: How to have each module create a "Node"?"
- Previous message: Oleg Tkachenko [MVP]: "Re: Tutorial on XML namespaces?"
- In reply to: darrel: "Re: empty quotes != not(string(.)) ????"
- Messages sorted by: [ date ] [ thread ]