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

RE: Reading Attributes in XSL

Subject: RE: Reading Attributes in XSL
From: "Haarman, Michael" <mhaarman@xxxxxxxxx>
Date: Tue, 15 Nov 2005 13:34:31 -0600
xsl reading element attributes
> -----Original Message-----
> From: pankaj.ahuja@xxxxxxxxxxxx

> I cannot get this to work where it is needed to first read
> the first attribute and then all attributes of the child and then
> back to reading the second attribute of the parent element. Also how
> to keep track of next items by restricting count of rows per 
> table to just
> 4.

You can get the elements in groups of four and restart your table or page
based upon that easily enough, q.v. --

http://www.dpawson.co.uk/xsl/sect2/N4486.html#d5052e727

What you cannot do, as several others have pointed out, is process
attributes in a fashion dependent upon ordering.  Attributes, by definition,
are unordered.

This is one of the few constraints that make a clear choice between elements
and attributes in designing an XML data structure.  If you want your
processing to be influenced by the order of a set of datapoints, you must
make them element children rather than attributes.

HTH,

Mike


-----------------------------------
Mike Haarman,
XSL Developer,
Internet Broadcasting Systems, Inc.

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.