Subject: Re: [xsl] Matching only text nodes with certain (complicated) properties From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 09 Jan 2009 12:28:49 -0500 |
Martin Honnen wrote:David B?rgin wrote:
In one template of my XSL stylesheet I'd like to match a text node with certain properties. Namely, the template should match for any text node where the nearest preceding non-empty text node is farther away than (= comes before) the nearest preceding <pb/> (page-break milestone element).<xsl:template match="text()[preceding::text()[1] >> preceding::pb[1]]">
I think you want << instead of >>: <xsl:template match="text()[preceding::text()[1] << preceding::pb[1]]">
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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Matching only text nodes , Martin Honnen | Thread | Re: [xsl] Matching only text nodes , David Carlisle |
Re: [xsl] Matching only text nodes , Martin Honnen | Date | Re: [xsl] Matching only text nodes , David Carlisle |
Month |