Bradley, Peter wrote:
<HesaValidate_Response xmlns="http://HesaValidateSqlSend">
<row instance_no="1 "
The problem is that this always returns zero: as does
count(/HesaValidate_Response/row), and count(row); which I suppose is to
be expected if //row does.
Those elements are in the namespace http://HesaValidateSqlSend while
//row selects 'row' elements in no namespace.
So you need
<xsl:stylesheet
xmlns:df="http://HesaValidateSqlSend"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<xsl:value-of select="count(/df:HesaValidate_Response/df:row)"/>
--
Martin Honnen
http://JavaScript.FAQTs.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--