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

Find out the existance of an element between 2 others

Subject: Find out the existance of an element between 2 others
From: "Ed Yau" <eyau@xxxxxxxxxxxxxxx>
Date: Tue, 14 Nov 2006 14:13:26 -0000
 Find out the existance of an element between 2 others
Hi,

I'm working with some WordML at present, trying to identify if a page is
blank so that I can remove it.

Unfortunately, there is no <page> tag, otherwise things would be a lot
easier.
Instead, pages are delimited using the <w:br> tag.  Valid text elements
are wrapped in <w:t> tags.

What I am trying to express in an Xpath is
"Look to see where there are any <w:t> elements containing text between
these 2 <w:br>s".  I can understand how to see whether there are any
<w:t> after a <w:br> using axes. What I don't get is how to tell it that
all the <w:t> below the next <w:br> should be excluded.  Any thoughts?

Cheers,
    Ed

P.s. how do I reply back to this thread afterwards?

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.