[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|