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 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
James PearsallSubject: Sorting Repeater row
Author: James Pearsall
Date: 10 Mar 2010 03:14 PM
I've been searching for an hour but I cannot find an example of how to specify which field the XML publisher should use to sort by. All I have been able to find is this statement:

Sorting
By default, data for the repeater component is displayed in document order. You can use an XPath expression in the Loop property's Sort sub-property to specify a different sort order.

In the sort field I'm using the XPath expression /placement/invoice/customerNumber because I'm trying to sort my table by customer number. How is this wrong?

Postnext
Ivan PedruzziSubject: Sorting Repeater row
Author: Ivan Pedruzzi
Date: 11 Mar 2010 12:08 PM
James

If the loop context is /placement/invoice in the sort field you should simply type customerNumber


Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Posttop
James PearsallSubject: Sorting Repeater row
Author: James Pearsall
Date: 16 Mar 2010 02:10 PM
Thanks!! So simple!

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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.