This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: formatting first item differently than the rest
- To: xsl-list at mulberrytech dot com
- Subject: RE: formatting first item differently than the rest
- From: RSuiter at cccis dot com
- Date: Tue, 8 Aug 2000 16:35:48 -0500
- Reply-To: xsl-list at mulberrytech dot com
>>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