This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: simple:xsl
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: simple:xsl
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 18 Apr 2000 11:20:20 +0100
- Reply-To: xsl-list at mulberrytech dot com
> I have written XSL like This
> ---------------------------------------------------
>
> <xsl:choose>
> <xsl:when test="Party[@stdValue='Supply']">
> <xsl:apply-templates select="Party">
> </xsl:when>
> </xsl:choose>
This applies the Party template to all child <Party>s provided any one of
them has @stdValue='Supply'.
I suspect you don't need the <xsl:choose> here at all, just write
<xsl:apply-templates select="Party[@stdValue='Supply']">
But I'm guessing as to your intentions.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list