xsl-list
[Top] [All Lists]

Re: ancestor

2004-10-18 09:21:38
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(_dot_)Jiang(_at_)nrc-cnrc(_dot_)gc(_dot_)ca> 
10/18/2004 10:48 AM
Please respond to
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com


To
"'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'" 
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
cc

Subject
[xsl] 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

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--





<Prev in Thread] Current Thread [Next in Thread>