Subject: Re: [xsl] how to assign a NULL to a variable? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 26 Jul 2007 15:02:53 -0400 |
<xsl:variable name="result"> <xsl:apply-templates/> </xsl:variable> <xsl:if test="normalize-space($result)">...</xsl:if>
Cheers, Wendell
>> In XSLT 1.0 you have 4 datatypes: number, boolean, string and nodeset. > >actually there is another, and that is the type that will be returned in >this case (with an xsl:variable with eleemnt content). >result tree fragment. >
Well, yes. Forgot about that in 1.0 but how would the OP test for a result tree fragment for the purposes of signifying "nil" or "null" without incurring a runtime error, given that the operations permitted on a result tree fragment are a subset of those permitted on a node-set?
Justin Johansson
*** A horse with no name is called Lambda ***
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to assign a NULL to a, David Carlisle | Thread | [xsl] < to < while preserving &a, Kai Weber |
[xsl] OECD Position for experienced, mozer | Date | RE: [xsl] Rounding errors in financ, W Charlton |
Month |