[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: template matching with modes, not seeing what I e

Subject: Re: 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
Re:  template matching with modes
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.