[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Matching only text nodes with certain (complicated) properties


Subject: Re: [xsl] Matching only text nodes with certain (complicated) properties
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 09 Jan 2009 18:18:25 +0100

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]]">

--

	Martin Honnen
	http://JavaScript.FAQTs.com/


Current Thread
Keywords
xsl