Subject: Re: [xsl] XPath expression that generates false plus a message? From: Michael Kay <mike@xxxxxxxxxxxx> Date: Wed, 25 May 2011 09:28:53 +0100 |
Hi Folks,
I want an XPath expression that is an if-then-else:
If (condition) then true() else false()
If "condition" is satisfied then return true, else return false. However, in addition to returning false, I want to return a message.Your guess is wrong. The else part will always return false.
Here's an example that illustrates what I want to do:
---------------------------------------------------------------------- if (xs:time(start) gt xs:time(end)) then true() else trace(false(), 'Hey, the meeting ends before it begins!') ----------------------------------------------------------------------
Unfortunately, that doesn't work. I guess the "else" part is actually returning true.
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: evaluate rendered text le, Giuseppe Briotti | Thread | [xsl] need xsl template for this xm, Frank Brooks |
[xsl] Re: evaluate rendered text le, Giuseppe Briotti | Date | Re: [xsl] Saxon error: "If none of , Wendell Piez |
Month |