XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Cindy ASubject: Group by function
Author: Cindy A
Date: 22 Aug 2006 11:52 PM
Originally Posted: 22 Aug 2006 11:51 PM
This should be so simple and yet I have racked my brain over it for hours.

Essentially, what I am looking to accomplish is building out three columns within a table. For example:
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td>Section One</td>
<td>Section Four</td>
<td>Section Seven</td>
</tr>
<tr>
<tdSection Two</td>
<td>Section Five</td>
<td>Section Eight</td>
</tr>
<tr>
<td>Section Three</td>
<td>Section Six</td>
<td>Section Seven</td>
</tr>
</table>

I think I have the mod function working properly which will place each XML element it processes into the appropriate column. However, what I can't get is how to wrap the <tr></tr> tags around each "section". The for-each loop definitely is causing too many <tr></tr> tags to be built. I was hoping someone could help me find a way to group the areas by the mod function or something to that effect. I have attached a sample XML output file and the XSL.

Any suggestions would be so very much appreciated.

Regards,
BoarderChic15


Unknowncatanchorlinks.xsl


Unknowncategoryanchorlinks.xml

Posttop
Ivan PedruzziSubject: Group by function
Author: Ivan Pedruzzi
Date: 23 Aug 2006 12:36 AM

This forum is for Stylus Studio users only and we can't find your email address in our records.

Which Stylus Studio version are you running?

Ivan Pedruzzi
Stylus Studio Team
http://www.stylusstudio.com/xml_download.html

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.