xsl-list
[Top] [All Lists]

[xsl] Sorting Using A Predefined Order

2007-06-20 21:16:38
Hi,

Is it possible to sort some data according to a predefined ordering?


I have a file like:

<root>
<div>
   <head>Some text 1</head>
</div>
<div>
   <head>Some text 2</head>
</div>
<div>
   <head>Some text 3</head>
</div>
<div>
   <head>Some text <4/head>
</div>
<div>
   <head>Some text 5</head>
</div>
</root>

and i want it sorted using this ordering:

Some text 2
Some text 3
Some text 5
Some text 1
Some text 4

Is the only solution to this is creating my own collation?

Thanks!
-- Jeff


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>