Page 1 of 1

xsl:if issue

Posted: Fri Mar 27, 2009 12:02 pm
by tjsingh
Hi I have the following in my xsl.

<xsl:if expr="depth(this) > 2">
display: none;
</xsl:if>

but it states that the element must have a test attribute

any ideas?

cheers

Re: xsl:if issue

Posted: Fri Mar 27, 2009 12:19 pm
by sorin_ristache
Hello,

The xsl:if instruction of an XSLT stylesheet must have a test attribute.


Regards,
Sorin