Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - ASP & XSL & XML
  FAQ FAQ  Forum Search   Events   Register Register  Login Login


 Post Reply Post Reply
dwhite02 View Drop Down

Joined: 10 October 2004
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote dwhite02 Quote  Post ReplyReply Direct Link To This Post Topic: ASP & XSL & XML
    Posted: 06 March 2012 at 12:40am

I'm using some classic ASP and XSLT to select records from an XML file.

Can someone please show me how to modify the xsl below to return a statement of "no records found" if there is no matches for for the xsl:when query?


<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<xsl:template match="rss/channel">
<xsl:apply-templates select="item">
<xsl:sort order="ascending" select="title"/>
<xsl:template match="item">
<xsl:when test="alpha='d'">
<a href="{link}"><xsl:value-of select="title" /></a>

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.

Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.