根据html列点击次数对xml数据进行排序 [英] Sorting a xml data based on html column clicks

查看:77
本文介绍了根据html列点击次数对xml数据进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用xslt转换为html表的xml文件.
用户调用包含javascript的html页面进行转换.

I have a xml file that is tranformed into html table with xslt.
The user invokes the html page that contains the javascript to do the transformation.

_______________________________________
Number | RunIndex| DesignIndex
_______________________________________

------populated table contents-------------



此输出通过XSLT转换呈现.
现在,如何根据对列名称的单击来对表的内容进行排序.即,如果我单击数字,则必须根据数字对表格的数据进行排序.

迈克尔·凯(Michael Kay)的帖子指出,转换必须通过html页面调用来明确.

请分享您的观点,并提出可能的替代方案.



This output is rendered via the XSLT tranformation.
Now how can I sort the contents of the table based on the clicks to the column names. i.e. If I click on Number the table''s data has to be sorted based on number.

Michael Kay''s post points out that transformation has to be explicit via a html page invocation.

Kindly share your views and suggest a possible alternative, if it is possible.

推荐答案

Google对表排序"或表排序xml"的搜索显示了许多HTML排序选项,其中一些使用外部XML源.
A Google search on "table sort" or "table sort xml" brings up many HTML sort options some of which use an external XML source.


这篇关于根据html列点击次数对xml数据进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆