Re: [xsl] apply-templates select and current() question

Subject: Re: [xsl] apply-templates select and current() question
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 19 May 2005 12:00:01 -0400

What Jarno said.


At 10:42 PM 5/18/2005, you wrote:
If I change the statement to "if (../db:footnote) then * else ." then it also seems to work (there's one problem that I think is unrelated).

Probably it "seems to work" except for problems that may or may not appear related because this test is asking "does my parent have a db:footnote child?", which is true for footnotes but also for siblings of footnotes. "../db:footnote" is short for "parent::node()/child::db:footnote". This isn't quite the same as "am I a db:footnote", but it will be true for all db:footnotes.


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

Current Thread