xsl-list
[Top] [All Lists]

RE: [xsl] MxN table display

2007-12-09 10:06:21

<table>
  <xsl:for-each select="field[position() mod $N = 1]">
    <tr>
      <xsl:for-each select=".|following-sibling::*[position() &lt; $N]">
        <td><xsl:value-of select="."/></td>
      </
    </
  </
</

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: imap(_at_)adari(_dot_)net [mailto:imap(_at_)adari(_dot_)net] 
Sent: 09 December 2007 15:29
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] MxN table display

Hello,

If data is in the following format:

<table numCols='5'>
  <field name='name1'>value1</field>
  <field name='name2'>value2</field>
               .
               .
  <field name='namen'>valuen</field>
</table>

Assuming that number of field elements are greater than 
'numCols', in xslt 1.0, is it possible to come up with style 
sheet such that the elements in an html table can display the 
field data in an MxN table?

Thanks
__
Seva

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>