Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Newbie XSL Question: Comparing to preceding-sibling within for-each [Thread Next] Re: Newbie XSL Question: Comparing to preceding-sibling within for-eachTo: NULL Date: 5/9/2007 8:06:00 AM You might want to start by looking at the examples on Dave Pawson's XSLT FAQ page http://www.dpawson.co.uk/xsl/sect2/sect21.html I haven't checked, but I'd be willing to bet that something in the sorting or grouping category illustrates exactly this test. (Though you've almost answered your own question: you want to use a conditional based on the immediately preceeding sibling.) General reminder: Any time you're thinking about using for-each, you should seriously consider using apply-templates and a separate template instead. That's usually a better solution. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
