Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Only output element when parameter value is not equal to blank (or null)

From: Florent Georges <darkman_spam@-------->
To:
Date: 2/1/2007 12:07:00 PM
Chris Coyle wrote:

  Hi

> 06:47:27.062 global (ERROR) - Uncaught Exception:
> 'exists' is not a valid XSLT or XPath function.

  So your processor is bugged (if it is claiming to be an XSLT 2.0
processor, what I expect because you're using @version="2.0").

  BTW, your initial param declarations were:

    <xsl:param name="..."/>
    <xsl:param name="..."/>

  exists() will give you true here, because when xsl:param (or
xsl:variable) has neither @select or content, its value is the
zero-length string.

  If you can test for both empty sequence of zero-length string, use
just <xsl:if test="$param">.

  Regards,

--drkm

> --- Martynas Jusevicius
> <martynas.jusevicius@xxxxxxxxx> wrote:

> > <xsl:if test="$param">
> >   <Key>
> >     <xsl:value-of select="$param"/>
> >   </Key>
> > </xsl:if>

> > On 2/1/07, Chris Coyle <chriscoyle@xxxxxxxxx> wrote:

> > > <xsl:stylesheet version="2.0"



	

	
		
___________________________________________________________________________ 
Dicouvrez une nouvelle fagon d'obtenir des riponses ` toutes vos questions ! 
Profitez des connaissances, des opinions et des expiriences des internautes sur Yahoo! Questions/Riponses 
http://fr.answers.yahoo.com


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent