OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: 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/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC