[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Seek an XPath 2.0 expression that handles an empty text field, regardless of how it's represented in XML
From: "David Carlisle d.p.carlisle@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Sep 2016 16:27:30 -0000
> I want an XPath 2.0 expression that outputs "do action" if the B field is empty,
> regardless of which of the two XML representations is used.


if(B/node())  "d" else "n", "o action"


David

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member