[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: grouping by x number of elements

Subject: Re: grouping by x number of elements
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 8 Jul 2005 13:55:17 +0100
x number of
> Iv'e been able to test position at the record level and do something every 5 
> records or whatever, but basically once I hit that position of 65,535, I 
> want to re-write a new worksheet tag, 

beware the T-word. XSLT has no access to the tags in the source document
and can not generate tags in the result.

You want to generate a Worksheet node every 65,535 records so that's
something like
<xsl:for-each select="record[position() mod 65535 = 1]">
  <Worksheet ss:name="{$WORKSHEET}">
  ....

(If you need to keep the numbering going across from one file to the
next that's also possible but a bit more involved.)


Incidentally don't use
xmlns:html="http://www.w3.org/TR/REC-html40"
either use no namespace (for html) or
xmlns:html="http://www.w3.org/1999/xhtml
for xhtml.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.