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

Re: [xsl] newbie needs help


Subject: Re: [xsl] newbie needs help
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 11 Sep 2003 23:13:03 +0100

> output xml to only contain documents that have links.  How can the template
> below be changed to only output documents that contain links.

You could change that but simpler, add a new template that outputs
nothing if there are no links:

<xsl:template match="document[not(.//link)]"/>

David

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



Current Thread
Keywords
xml