Subject: Re: [xsl] template matching with modes, not seeing what I expect From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 15 Mar 2020 18:19:50 -0000 |
On Sun, Mar 15, 2020 at 06:06:52PM -0000, Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx scripsit: > I thought the test "not(not(section) and not(title))" would be true for all > elements that had only title and section children. Evidently that's not > true. ELEMENT[*[not(self::title or self::section)]] will match an element ELEMENT with element children, at least one of which is not title or section. Your example is going to return true if there's a title (which is not a section) and true if there's a section (which is not a title) and might, depending on context, be trying to find child elements with child sections and titles anyway. -- Graydon
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] template matching with mo, Trevor Nicholls trev | Thread | Re: [xsl] template matching with mo, David Carlisle d.p.c |
Re: [xsl] template matching with mo, Trevor Nicholls trev | Date | Re: [xsl] template matching with mo, David Carlisle d.p.c |
Month |