This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Exclude elements from apply-templates?
- From: Gustaf Liljegren <gustafl at algonet dot se>
- To: XSL-List at lists dot mulberrytech dot com
- Date: Fri, 21 Jun 2002 20:35:06 +0200
- Subject: [xsl] Exclude elements from apply-templates?
- Reply-to: xsl-list at lists dot mulberrytech dot com
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