xsl-list
[Top] [All Lists]

Re: [xsl] Inverse of apply-template select

2011-01-13 13:11:04


On 13.01.2011 19:51, russurquhart1(_at_)verizon(_dot_)net wrote:
             <xsl:apply-templates select="*[not(./bookinfo) or not(./title)]"/>

You select all children that don't have a child named bookinfo together with all children that don't have a child named title.

You want to select all children who are not either bookinfo or title:
    <xsl:apply-templates select="*[not(self::bookinfo or self::title)]" />

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>