xsl:if issue

Questions about XML that are not covered by the other forums should go here.
tjsingh
Posts: 4
Joined: Tue Mar 17, 2009 1:52 pm

xsl:if issue

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: xsl:if issue

Post by sorin_ristache »

Hello,

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


Regards,
Sorin
Post Reply