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

[xsl] testing for preceding-sibling's


Subject: [xsl] testing for preceding-sibling's
From: "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx>
Date: Tue, 2 Sep 2003 14:07:01 -0400 (EDT)

  in writing a docbook manual, i want to insert a <beginpage>
element before any <section> that has a preceding-sibling,
*except* for a preceding-sibling of a <title> since that doesn't
really change the pagination.

  so far, what seems to work is

   match="section[preceding-sibling::*[local-name() != 'title']]"

as in, match any section that has at least one non-title preceding
sibling.  

  is that a reasonable way to do it?  or is there a much more
elegant way i'm missing?

rday


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords