xsl-list
[Top] [All Lists]

RE: Troubleshooting a sort

2004-02-25 16:12:48
David,

Our email filter stole the digest containing your reply (sometimes happens with 
emails containing script). I just got it released yesterday. I thought I *did* 
try "status" instead of "status_history" and it didn't work. BUT I went back 
and tried it again after getting your email. I'm both embarrassed and grateful 
to report that it worked perfectly! (Maybe it was a refresh problem before :) )

Anyway, THANK YOU (and everyone else who contributed). Once again, this list is 
awesome.

Kathryn

------------------------------

Date: Fri, 20 Feb 2004 23:17:25 GMT
From: David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>
Subject: Re: [xsl] RE: XSL-List Digest V5 #135

function View6()
{
var pass1 = 'status_history'
transform(pass1)
}



well, there you go then,
you said you wanted to look for an element called status (and you do) but
this is going to make it look for an element called status history
it will find such a thing (because of the original *, not the */* that's
looking for status grand children) and then it will sort on the string
value of that which is the concatenation of all the character data in
there, including white space used to indent the status elements
That might not be quite the order you intended...


try that with pass1= 'status'


- -- 
http://www.dcarlisle.demon.co.uk/matthew


**********************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
****************************************************************


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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