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

Re: Applying lists outside of paragraphs

Subject: Re: Applying lists outside of paragraphs
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 20 Sep 2006 15:15:49 -0400
Re:  Applying lists outside of paragraphs
Spencer,

At 01:53 PM 9/20/2006, you wrote:
I can't quite figure out why <xsl:apply-templates
select="*[not(descendant-or-self::list.appl)]"/> does not want to
apply the default text() template. I've also tried no axis, child::,
descendant:: and even self:: but none give the desired output... Any
ideas? I'm using Saxon 8.7.1

It's because you're asking for elements, not text nodes.


* in this context is short for child::*, meaning all child elements.

You want (or perhaps you think you want)

node()[not(descesdant-or-self::list.appl)]

which selects all node children of any type, including elements and test, which are not themselves list.appl elements and have no list.appl element descendants.

That will get you at least part of the way there. But if you're trying to split your paragraphs around the list, it won't get you all the way, as the list is going to appear only after the paragraph -- so out of order, unless your list is always the last thing in the paragraph (as in your example). Maybe that's okay with you....

Cheers,
Wendell

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.