Sign Up
Search
Options
search
Chat
Help
News
Log in
Not Logged in
Home
»
Boards
»
Stylus Studio Developer Network
»
XSLT Help and Discussion
»
easy position ? by newbie
Topic
Topic Page
1
2
3
4
5
6
7
8
9
Prev Topic
Next Topic
next
Subject:
easy position ? by newbie
Author:
Chris Holmes
Date:
15 Jan 2007 12:18 PM
I'm trying to create a table using for-each where a </tr> tag will be inserted after every third entry (and then the last entry) in the select list.
Is there a way to do test=position() div 3 = "a whole number" or am I barking up the wrong tree?
Thanks for any help on this.
Chris
next
Subject:
easy position ? by newbie
Author:
Ivan Pedruzzi
Date:
15 Jan 2007 12:33 PM
Use mod instead
<xsl:if test="position() mod 3 = 0">
<br/>
</xsl:if>
Ivan Pedruzzi
Stylus Studio Team
top
Subject:
easy position ? by newbie
Author:
Chris Holmes
Date:
15 Jan 2007 12:43 PM
Thanks, Ivan.
It works like a charm.
Topic Page
1
2
3
4
5
6
7
8
9
Prev Topic
Next Topic
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 to Conference:
Select Conference
Stylus Studio Feature Requests
Stylus Studio Technical Forum
Website Feedback
XSLT Help and Discussion
XQuery Help and Discussion
Stylus Studio FAQs
Stylus Studio Code Samples & Utilities
Stylus Studio Announcements
go
Log In Options
Username:
Password:
Site Map
|
Privacy Policy
|
Terms of Use
|
Trademarks
Stylus Scoop XML Newsletter:
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.