[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Only output element when parameter value is not eq

Subject: Re: Only output element when parameter value is not equal to blank (or null)
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Thu, 1 Feb 2007 13:05:12 +0100 (CET)
Re:  Only output element when parameter value is not eq
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.