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

RE: Iterative XML Handling


Subject: RE: Iterative XML Handling
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 7 Oct 1999 10:56:28 +0100

> <xsl:template match="invoices/invoice/header/addresses/address">
>      <xsl:apply-templates select type="Billing"/>
> </xsl:template>
> 
> However, I only wish addresses to appear that are Billing 
> addresses
>

Then use:
 
<xsl:template
match="invoices/invoice/header/addresses/address[type='Billing']">
     ...
</xsl:template>

(Do you really need to name all the ancestors? It will only slow down the
pattern matching...)

Mike Kay


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



Current Thread