[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] How to determine that no results exist for given match


Subject: [xsl] How to determine that no results exist for given match
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Wed, 30 Apr 2003 10:48:49 -0700

Hi there,
I have the following template:

<xsl:template match="rs:data/z:row"/>
    <tr>
    <td>Hello</td>
    </tr>
</xsl:template>

What I'd like to do, if there is no match would be to return "NO Match", but
would need to follow the same intendid table structure.  So, expressed in
simple language:

<xsl:template match="rs:data/z:row"/>
    <IF NO MATCH>
        <tr>
        <td>Sorry no match</td>
        </tr>
    <OTHERWISE>
        </tr>
        <tr>
        <td>Hello</td>
        </tr>
    </IF>
</xsl:template>

Thanks,
Karl


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread