xsl-list
[Top] [All Lists]

Re: [xsl] How to detect if the context item exists

2011-06-30 12:44:11
Hi Stefan,

Is this version 2.0+?  Have you tried the empty(.) function?

http://www.w3.org/TR/xpath-functions/#func-empty

Cheers,
Hank



On 6/30/11 10:33 AM, stf(_at_)snafu(_dot_)de wrote:
Hello,

I need to detect inside a named template if the context item is defined,
but exists(.) and (. castable as xs:anyType) fail, because, you know,
the context item is not defined. Any suggestions?

Thanks,

Stefan

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--
Louis (Hank) Ratzesberger
hankr(_at_)ucsd(_dot_)edu
Scripps Orbit and Permanent Array Center
Mailing Address:
Mail Code 0225
9500 Gilman Drive
University of California, San Diego
La Jolla, CA 92093-0225
858-822-4472
IGPP/SIO Location:
Bldg T-31
8860 Biological Grade


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--