[Home] [By Thread] [By Date] [Recent Entries]
Thanks for the quick response. Please note that I am a newbie to xsl and
just trying to get a feel of it. But, with the solution you posted, it sorts
with in the worksheet nodes only. I want to sort all the <s:Data
s:Type="String"></s:Data> elements text with in all the worksheets, so for
example
my input file ------------------- <?xml version='1.0'?> <?mso-application progid='Excel.Sheet'?> <s:Workbook xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:s="urn:schemas-microsoft-com:office:spreadsheet"> <s:Worksheet s:Name="Sample1"> <s:Table> <s:Row> <s:Cell> <s:Data s:Type="String">RJTGOVBVHX</s:Data> </s:Cell> </s:Row> <s:Row> <s:Cell> <s:Data s:Type="String">IEXGTQYSBQ</s:Data> </s:Cell> </s:Row> </s:Table> </s:Worksheet> <s:Worksheet s:Name="Sample2"> <s:Table> <s:Row> <s:Cell> <s:Data s:Type="String">WUGRDFHDTV</s:Data> </s:Cell> </s:Row> <s:Row> <s:Cell> <s:Data s:Type="String">PQFWLWQYQW</s:Data> </s:Cell> </s:Row> </s:Table> </s:Worksheet> </s:Workbook> the output that I want to show is -------------------------------------------- <?xml version='1.0'?> <?mso-application progid='Excel.Sheet'?> <s:Workbook xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:s="urn:schemas-microsoft-com:office:spreadsheet"> <s:Worksheet s:Name="Sample1"> <s:Table> <s:Row> <s:Cell> <s:Data s:Type="String">IEXGTQYSBQ</s:Data> </s:Cell> </s:Row> <s:Row> <s:Cell> <s:Data s:Type="String">PQFWLWQYQW</s:Data> </s:Cell> </s:Row> </s:Table> </s:Worksheet> <s:Worksheet s:Name="Sample2"> <s:Table> <s:Row> <s:Cell> <s:Data s:Type="String">RJTGOVBVHX</s:Data> </s:Cell> </s:Row> <s:Row> <s:Cell> <s:Data s:Type="String">WUGRDFHDTV</s:Data> </s:Cell> </s:Row> </s:Table> </s:Worksheet> </s:Workbook>
From: cknell@xxxxxxxxxx Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: Sorting Problem with Xml and Xsl Date: Mon, 12 Mar 2007 16:25:12 -0400 _________________________________________________________________ Find a local pizza place, movie theater, and more.then map the best route! http://maps.live.com/?icid=hmtag1&FORM=MGAC01
|

Cart



