xsl-list
[Top] [All Lists]

Re: [xsl] Find First Descendants That Match Predicate?

2018-12-27 11:33:38
It's the reverse logic: exclude those that have an ancestor titled thing that 
is itself a descendant of the current node.
Cheers,
E.
--
Eliot Kimber
http://contrext.com
 

On 12/27/18, 11:16 AM, "Peter Flynn peter(_at_)silmaril(_dot_)ie" 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

    On 27/12/2018 15:15, Eliot Kimber ekimber(_at_)contrext(_dot_)com wrote:
    > That seems too easy (
    [...]
    > On 12/25/18, 12:42 PM, "Wendell Piez wapiez(_at_)wendellpiez(_dot_)com" 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
    >      How about
    >      
    >      .//*[title] except .//*[title]//*[title]
    
    Shouldn't that be .//*[title] except .//*[title]/*[title]
    to exclude those with immediate children with a title, rather than 
    excluding those which have any-depth descendants with a title?
    
    P
    
    
    
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

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