RE: [xsl] Xpath and xsl position question

Subject: RE: [xsl] Xpath and xsl position question
From: Jarno.Elovirta@xxxxxxxxx
Date: Mon, 16 Jun 2003 09:08:33 +0300
Hi,

   

> 1. When I am inside chapter template, how do I know if
> it's the last chapter after each header ?

  <xsl:if test="following-sibling::*[1][self::header]">

> 2. How do I find the position of header when I am
> inside chapter template ?
>    I tried <xsl:value-of select="../position()"/>. But
> that didn't help.

  <xsl:number count="header" level="any"/>

Cheers,

Jarno - Claire Voyant: Twenty-Four Years

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


Current Thread