Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2017, 07:58 AM
Authorized User
 
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
 
Old September 9th, 2017, 02:23 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 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





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 05:32 PM
Sorting in XSLT hchaudh1 XSLT 1 November 30th, 2005 05:37 AM
pre-sorting in XSLT - help! thebnut XSLT 6 April 6th, 2004 07:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.