Altova Mailing List Archives

Re: check if nodes match xpath expression

From: Christian Nentwich <c.nentwich@------------>
Date: 12/1/2000 10:48:00 AM
> I'd greatly appreciate receiving any comments reflecting your
> experience with the XPath Visualiser.

> <xsl:if test="count(. | $SelectedNodes) = count($SelectedNodes) ">

Thanks very much for that trick... This should be in the XSLT FAQ! The
XPath Visualiser is a great little tool. I have used it in talks for
lightning introductions to XPath. I think it is particularly valuable as
a teaching tool.

However, the stylesheet we need must not depend on microsoft technology
since we have to use it in a variety of operating systems, so the
visualiser is out of the question. My summary: Great stuff, but only
under windows. And also, I had to change the colours because the default
ones killed me :) (Colour customisation wasn't that easy because, for
example, it's not that easy to see from the documentation which class is
the colour for the '+' character)

"If anything can be linked, it will be linked." - xlinkit
Christian Nentwich Dept. of Computer Science, University College London
+44 (0)20 7679 7190 -

 XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.