Subject: RE: Counting records [Solved]
From: "Bradley, Peter" <pbradley@xxxxxxxxxx>
Date: Mon, 8 Dec 2008 16:20:31 -0000
|
Thanks Martin, Andrew and David. Sorry to bother you with such a
trivial query.
Cheers
Peter
-----Original Message-----
From: Andrew Welch [mailto:andrew.j.welch@xxxxxxxxx]
Sent: 08 December 2008 16:14
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Counting records
> <HesaValidate_Response xmlns="http://HesaValidateSqlSend">
your xml is in the namespace "http://HesaValidateSqlSend"
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:template match="/">
> <xsl:variable name="RowCount" select="count(//row)"/>
you need to give that namespace a prefix in your stylesheet and use
that:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:h="http://HesaValidateSqlSend"
exclude-result-prefixes="h">
<xsl:template match="/">
<xsl:value-of select="count(//h:row)"/>
cheers
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
|