|
[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






