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

Subject: Re: [xsl] How to detect if the context item exists
From: Hank Ratzesberger <hankr@xxxxxxxx>
Date: Thu, 30 Jun 2011 10:44:00 -0700
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@xxxxxxxx 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


-- Louis (Hank) Ratzesberger hankr@xxxxxxxx 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

Current Thread