[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Controlling tabular layout of a nodeset
John Marshall wrote:
I want to display it as: > +--------+------------------+ > |property1 - prvalue1 | > +--------+------------------+ > |user_id1|acct_id1, acct_id2| +--------+------------------+> |user_id2|acct_id1 ... | +--------+------------------+
<xsl:for-each select="row[generate-id() = generate-id(key('property',property)[1])"> <tr> <td><xsl:value-of select="property"/></td> <td><xsl:value-of select="prvalue"/></td> <tr> <xsl:for-each select="key('property',property)[ generate-id()=generate-id(key('user_id', concat(property,':',user_id))[1])"> <tr> <td><xsl:value-of select="user_id"/></td> <td> <xsl:for-each select="key('user-id', concat(property,':',user_id))"> <xsl:if test="position()!=last()>,</xsl:if> </td> </tr> </xsl:for-each> </xsl:for-each> (caution: untested) J.Pietschmann XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|