<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
<title>W3Exchange : Script Forums : XML</title>
<link>http://www.w3exchange.com</link>
<description> W3Exchange</description>
<language>en</language>
<docs>http://backend.userland.com/rss</docs>
<item>
<title>XSL syntax in Script Forums : XML</title>
<link>http://www.w3exchange.com/view_topic.php?pid=262#262</link>
<guid isPermaLink="false">262@http://www.w3exchange.com</guid>
<description>Topic: XSL syntax

Message: &#60;xsl:when test=&#34;count(SUB_MENU[@active='True']) = 0&#34;&#62;Isn't that testing if there are no items/nodes in the XML? Try:&#60;xsl:if test=&#34;count(SUB_MENU[@active='True']) = 1&#34; &#62;&#60;xsl:text&#62;There is one item&#60;/xsl:text&#62;&#60;/xsl:if&#62;
</description>
<pubDate>Sun, 27 Aug 2006 03:37:20 -0700</pubDate>
</item>
<item>
<title>XSL syntax in Script Forums : XML</title>
<link>http://www.w3exchange.com/view_topic.php?pid=156#156</link>
<guid isPermaLink="false">156@http://www.w3exchange.com</guid>
<description>Topic: XSL syntax

Message: What is the syntax in XSL to test :If there is only one item in the XML.Following sytax is not working.&#60;xsl:when test=&#34;count(SUB_MENU[@active='True']) = 0&#34;&#62;Thanks.
</description>
<pubDate>Sun, 20 Aug 2006 03:28:27 -0700</pubDate>
</item>
</channel>
</rss>
