Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Using External XML to control loop [Thread Next] Re: Using External XML to control loopTo: NULL Date: 3/1/2006 2:36:00 PM
beepeeoh@g... wrote:
> I'm using .NET (c# powering an ASP.NET website if it helps!) but I'm
> passing the XmlResolver and it's definately reading the file as I can
> use
> _______________________
> <th>Offences</th>
> <xsl:for-each select="$divLook/divisions/division/code">
> <xsl:variable name="divF" select="." />
> <th><xsl:value-of select="$divF" /></th>
> </xsl:for-each>
>
> to give me a list of the column headers.
What exactly goes wrong then? What does
<xsl:value-of
select="count(//xml/rs:data/z:row[@CrimeType_Code='2' and
@division=$divF" />
output, does it give '0'?
Make sure you have the right namespaces declared in the stylesheet or at
least show use the relevant declarations. We have only seen snippets like
<z:row crime_no='XX/06/1264'
date_ent='2006-02-02T00:00:00'
ho_class='28/3'
division='HD'
beat='8'
CrimeType_Code='4' />
without seeing any declaration of the namespace, neither in the input
XML nor in the stylesheet.
It is not possible to tell whether the XPath
/xml/rs:data/z:row
finds anything without seeing more details.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
