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

Re: ancestor

Subject: Re: ancestor
From: JBryant@xxxxxxxxx
Date: Mon, 18 Oct 2004 11:23:54 -0500
xsl ancestor
It should be:
select="//inlineequation[not (ancestor::table)]"

I forgot to pull out the *=. Sorry about the oversight.

Jay Bryant
Bryant Communication Services




JBryant@xxxxxxxxx 
10/18/2004 11:21 AM
Please respond to
xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To
xsl-list@xxxxxxxxxxxxxxxxxxxxxx
cc

Subject
Re:  ancestor






Try this:

select="//inlineequation[not (ancestor::* = table)]"

The single quotation marks ('') make the XSL processor look for a string 
literal, when you want it to look for an element.

Jay Bryant
Bryant Communication Services




"Jiang, Peiyun" <Peiyun.Jiang@xxxxxxxxxxxxxx> 
10/18/2004 10:48 AM
Please respond to
xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To
"'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
cc

Subject
 ancestor






Hi,

I'm trying to get all inlineequation elements that are not in the table
element. The following is not working. I don't know why. I always get all
the inlineequation elements.

select="//inlineequation[not (ancestor::* = 'table')]"

I know this can be very expensive even if it works. What cab be a better 
way
to do it?

Thanks.

Peiyun Jiang

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.