xsl-list
[Top] [All Lists]

Re: Problem writing xsl to convert xml to excel

2004-03-05 15:57:29
Anna Bikkina wrote:

Thanks to everyone who answered and sorry for the vague question . I got it working with the below xsl, but there is one problem. The columns get printed from column1 instead of column0. Can someone tell me how I can print right from column0.

The position() function returns 1 for the first item in the node
set. If you want to get 0, try something like
  <xsl:with-param name="colnumber" select="position() - 1"/>
instead.

J.Pietschmann

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