Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 9th, 2017, 07:58 AM
Authorized User
Points: 115, Level: 2
Points: 115, Level: 2 Points: 115, Level: 2 Points: 115, Level: 2
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Nov 2016
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Smile sorting issues XSLT

Hi,

Please help me anyone, it is very urgent for me.

I have an elemnt <sec> this values are coming different format like below
Input:
<test>
<Para0 id="60-80" refid="[60-80]">
<strfact>Bills of Exchange </strfact>
<sec>s 10000A</sec>
</Para0>
<Para0 id="60-105" refid="[60-105]">
<strfact>Bills of Exchange </strfact>
<sec>s 8B</sec>
</Para0>
<Para0 id="60-80" refid="[60-80]">
<strfact>Bills of Exchange </strfact>
<sec>s 8(2)</sec>
</Para0>
<Para0 id="60-80" refid="[60-80]">
<strfact>Bills of Exchange Act 1909</strfact>
<sec>s 8</sec>
</Para0>
<Para0 id="60-105" refid="[60-105]">
<strfact>Bills of Exchange </strfact>
<sec>s 8(1)</sec>
</Para0>
</test>

But I need to sort the value based <sec> for below:

<para0>
<sec>s 8</sec>
<sec>s 8B</sec>
<sec>s 8(1)</sec>
<sec>s 8(2)</sec>
</para0>

Thanks in advance,
Bharathi
Reply With Quote
  #2 (permalink)  
Old September 9th, 2017, 02:23 PM
mhkay's Avatar
Wrox Author
Points: 18,252, Level: 58
Points: 18,252, Level: 58 Points: 18,252, Level: 58 Points: 18,252, Level: 58
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,929
Thanks: 0
Thanked 281 Times in 276 Posts
Default

What have you tried, how did it fail, where did you get stuck reading the documentation (or reading your Wrox reference book)?

There are lots of people happy to help you when you get stuck, but not to provide a free code-writing service.

And telling us it's urgent doesn't help. When you're asking volunteers to help, don't create a pressure.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
xslt sorting from two different X paths sen1953 XSLT 18 September 10th, 2013 12:17 PM
sorting with XSLT gullamahi XSLT 0 April 29th, 2013 05:02 AM
XSLT sorting issue? vb89 XSLT 11 February 22nd, 2012 04:32 PM
Sorting in XSLT hchaudh1 XSLT 1 November 30th, 2005 04:37 AM
pre-sorting in XSLT - help! thebnut XSLT 6 April 6th, 2004 07:45 AM



All times are GMT -4. The time now is 02:14 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.