This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: formatting first item differently than the rest



>>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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]