[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Applying different transformations to every n'th node

Subject: Applying different transformations to every n'th node
From: "Philip McAllister" <pem@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Apr 2000 12:40:34 +0100
different transformations
I realise that something very similar has come up recently but I'm still
having problems, so my apologies if this bores you :-)

I'm using Xalan and XSLT to output as HTML.

I have some xml that goes something like:

...
  <categories>
    <category id="something">Name of Category</category>
    <category id="something">Name of Category</category>
    <category id="something">Name of Category</category>
    ...
  </categories>
...

What I want to be able to do is apply one template to every fourth category
and a different template to anything else.

Basically, what I am trying to do is create a table with 3 columns, so I
want every fourth column to start a new table row.

Insights greatly appreciated, thanks.

--
Philip McAllister
Web Developer, ticketingsolutions
pem@xxxxxxxxxxxxxxxxxxxxxx


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.