|
Subject: [xsl] Need your recommendation please for an XPath expression From: "Costello, Roger L. costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 19 Jul 2016 12:05:33 -0000 |
Hi Folks,
I need an XPath expression which returns a Boolean value:
If there is an A then return true only if there is a B.
If there is no A then return true.
For example, the XPath expression should return true for this:
<Document>
<A/>
<B/>
</Document>
The XPath should return false for this:
<Document>
<A/>
</Document>
Which XPath expression is best (most efficient)?
(a) if (A) then exists(B) else true()
(b) (A and B) or (not(A))
(c) something else (what?)
/Roger
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Aw: [xsl] Which is less expensi, Dan Vint dvint@xxxxx | Thread | Re: [xsl] Need your recommendation , David Carlisle d.p.c |
| Re: [xsl] Which is less expensive g, Dan Vint dvint@xxxxx | Date | Re: [xsl] Need your recommendation , David Carlisle d.p.c |
| Month |