[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
> <xsl:apply-templates select="not(title | subtitle)"/>
<xsl:apply-templates select="*[not(self::title) or not(name()=subtitle)]"/>
both versions above are possible.
Joerg
Gustaf Liljegren wrote:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] Exclude elements from apply-templates?
Subject: Re: [xsl] Exclude elements from apply-templates? From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Fri, 21 Jun 2002 20:42:40 +0200 |
> <xsl:apply-templates select="not(title | subtitle)"/>
<xsl:apply-templates select="*[not(self::title) or not(name()=subtitle)]"/>
both versions above are possible.
Joerg
Gustaf Liljegren wrote:
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Exclude elements from apply-t, Gustaf Liljegren | Thread | Re: [xsl] Exclude elements from app, Gustaf Liljegren |
[xsl] Exclude elements from apply-t, Gustaf Liljegren | Date | Re: [xsl] Formatting question, Michael Peet |
Month |