← Prev in month ← Prev in thread

Re: DOCBOOK-APPS: XSLT question - referencing one node and the oneafter it

From
Daniel Veillard <>
Date
2001-09-10T16:05:14+00:00
ID
Thread
Re: DOCBOOK-APPS: XSLT question - referencing one node and the oneafter it
On Mon, Sep 10, 2001 at 11:14:28AM -0400, Dan York wrote:
> I am writing up an XSLT stylesheet to convert a document from 
> another XML format (custom DTD) to DocBook XML. I've run into a
> stumbling block... all my XSLT books are at home... and I want
> to demo this stylesheet this afternoon... so I thought I would 
> just bounce the question out here in case anyone here might have
> the quick answer...  (if you do, MANY thanks!)

  use 
  item[position() mod 2 = 0]
as the select pattern for row, and use
  following-sibling::item[1]
to address the next consecutive item in that template

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
← Prev in month ← Prev in thread