[Home] [By Thread] [By Date] [Recent Entries]
Hi,
At 12:18 PM 1/9/2009, Martin wrote: Martin Honnen wrote:David B?rgin wrote: This will work in XSLT 2.0, although it sounds like you also want text()[preceding::text()[normalize-space()][1] << preceding::pb[1]] ... which makes sure that whitespace-only text nodes won't be considered in the test. In XSLT 1.0 the problem is nastier and expensive, although doable. But when restricted to 1.0, one should keep in mind other options (such as judicious pre-processing) to alleviate problems either with performance or code complexity. It's doable because the pb can in fact be found on preceding:: (even when not on preceding-sibling::). Cheers, Wendell ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 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 ======================================================================
|

Cart



