This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] RE: [SPAM] - [docbook-apps] Re: Docbook inlineequation/graphic to html - Bayesian Filter detected spam
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Dimitry V. Ketov" <Dimitry dot Ketov at avalon dot ru>,"Vitaly Ostanin" <vyt at vzljot dot ru>, <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 30 Dec 2003 10:28:37 -0800
- Subject: Re: [docbook-apps] RE: [SPAM] - [docbook-apps] Re: Docbook inlineequation/graphic to html - Bayesian Filter detected spam
- References: <E1B7C89B8DCB084C809A22D7FEB90B3840E6@frodo.avalon.ru>
----- Original Message -----
From: "Dimitry V. Ketov" <Dimitry.Ketov@avalon.ru>
To: "Vitaly Ostanin" <vyt@vzljot.ru>; <docbook-apps@lists.oasis-open.org>
Sent: Thursday, December 25, 2003 6:31 AM
Subject: [docbook-apps] RE: [SPAM] - [docbook-apps] Re: Docbook
inlineequation/graphic to html - Bayesian Filter detected spam
> > element. Grepping through the stylesheets
>
> You can also use
> http://xsldbg.sourceforge.net/
> great tool for debugging XSL stylesheets.
Ok. I will pay attention on it.
> test="../inlineequation"> test,
> > instead<xsl:when test="parent::inlineequation">. Am I wrong?
>
> IMHO, XPath expressions "../inlineequation" and
> "parent::inlineequation" are identical:
> http://www.w3.org/TR/xpath#path-abbrev
I suppose ".." is identical to "parent::node()" or (because each element
has only one parent) "parent::*" but "../element" is identical to
"parent::node()/element" or "parent::*/element" (this expresses parent
that contains element) but not to "parent::element" (parent that _is_
element).
Real tests (xsltproc) is proving that claim.
Am I still wrong?
----------------------------------------------------------------------------
----
No, you are correct. It should be
test="parent::inlineequation".
The current test="../inlineequation" matches on a
sibling inlineequation, not parent.
I'll fix it in CVS.
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.