RE: formatting first item differently than the rest

Subject: RE: formatting first item differently than the rest
From: RSuiter@xxxxxxxxx
Date: Tue, 8 Aug 2000 16:35:48 -0500
>>I want to format the section title one way if this is the first
>><fieldlist>,
>>and slightly differently for number 2ff.

Bob DuCharme:
>Write two templates, using "fieldlist[1]" for the match pattern in one and
>"fieldlist[position() > 1]" for the other.

The second template doesn't even need the qualification "[position() > 1]".
XSLT will apply the more specific one to the first fieldlist, and the
generic one
with 'match="fieldlist"' to all the rest.

Rick Suiter





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


Current Thread