<p>In XLST how would you find out the length of a node-set?</p>

[{'answer_id': 32092, 'author': 'Theo', 'author_id': 1109, 'author_profile': 'https://Stackoverflow.com/users/1109', 'pm_score': 5, 'selected': True, 'text': '<pre><code>&lt;xsl:variable name="length" select="count(nodeset)"/&gt;\n</code></pre>\n'}, {'answer_id': 32217, 'author': 'samjudson', 'author_id': 1908, 'author_profile': 'https://Stackoverflow.com/users/1908', 'pm_score': 2, 'selected': False, 'text': "<p>Generally in XSLT things aren't referred to as <code>Arrays</code>, since there is really no such thing in XSLT. The technical term is either <code>nodesets</code> (made up of zero or more nodes) or in XSLT 2.0 <code>sequences</code>.</p>\n"}, {'answer_id': 39644, 'author': 'Pierre Spring', 'author_id': 1532, 'author_profile': 'https://Stackoverflow.com/users/1532', 'pm_score': 3, 'selected': False, 'text': '<p>there is no need to put that into a </p>\n\n<pre><code>&lt;xsl:variable name="length" select="count(nodes/node)"/&gt;\n</code></pre>\n\n<p>though... you can just print it out as follows:</p>\n\n<pre><code>&lt;xsl:value-of select="count(nodes/node)"/&gt;\n</code></pre>\n\n<p>or use it in a if-clause as follows:</p>\n\n<pre><code>&lt;xsl:if test="count(comments/comment) &gt; \'0\'"&gt;\n    &lt;ul&gt;\n        &lt;xsl:apply-templates select="comments/comment"/&gt;\n    &lt;/ul&gt;\n&lt;/xsl:if&gt;\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/32085', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']