xsl-list
[Top] [All Lists]

How to determine that no results exist for given match

2003-04-30 10:48:49
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



<Prev in Thread] Current Thread [Next in Thread>