xsl-list
[Top] [All Lists]

testing for preceding-sibling's

2003-09-02 11:07:01

  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



<Prev in Thread] Current Thread [Next in Thread>