[xsl] Exclude elements from apply-templates?

Subject: [xsl] Exclude elements from apply-templates?
From: Gustaf Liljegren <gustafl@xxxxxxxxxx>
Date: Fri, 21 Jun 2002 20:35:06 +0200
I have an element like:

<!ELEMENT chapter (title, subtitle?, (%blocks; | %lists;)*, section+)>

The title and subtitle are handled by the chapter template, so I when I say
apply-templates later, I don't want these to appear again the output. This
seemed logical to me:

<xsl:apply-templates select="not(title | subtitle)"/>

But Saxon says: "Sequence selected by xsl:apply-templates contains an item
that is not a node."

Gustaf


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


Current Thread