Subject: Re: [xsl] Seek an XPath 2.0 expression that handles an empty text field, regardless of how it's represented in XML From: "G. Ken Holman g.ken.holman@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 22 Sep 2016 16:01: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. This XPath expression seems to work:
if (not(B) or B eq '') then "do action" else "no action"
-- Check our site for free XML, XSLT, XSL-FO and UBL developer resources | Streaming hands-on XSLT/XPath 2 training @US$45: http://goo.gl/Dd9qBK | Crane Softwrights Ltd. _ _ _ _ _ _ http://www.CraneSoftwrights.com/s/ | G Ken Holman _ _ _ _ _ _ _ _ _ _ mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ blog _ _ _ _ _ http://plus.google.com/+GKenHolman-Crane/posts | Legal business disclaimers: _ _ http://www.CraneSoftwrights.com/legal |
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Seek an XPath 2.0 express, Sewell, David R. (dr | Thread | Re: [xsl] Seek an XPath 2.0 express, David Carlisle d.p.c |
Re: [xsl] Seek an XPath 2.0 express, Sewell, David R. (dr | Date | Re: [xsl] Seek an XPath 2.0 express, David Carlisle d.p.c |
Month |