[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Bradley, Peter wrote:
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">
--
Re: [xsl] Counting records
Subject: Re: [xsl] Counting records From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Mon, 08 Dec 2008 17:13:51 +0100 |
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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Counting records, Bradley, Peter | Thread | Re: [xsl] Counting records, Andrew Welch |
Re: [xsl] removing nodes to parent , Cindy Lard | Date | Re: [xsl] Counting records, Andrew Welch |
Month |