紧急通知:近期网站改版列表
2013-01-12 10:19
302 查看
监控发现,近期继网易即时修改了后台JSON对象格式后,相继有以下网站也进行了类似改版,请及时更新模板。
网站列表:
和讯即时 http://roll.hexun.com/roolNews_listRool.action?type=all
东方互动:http://news.on.cc/js/china_fullList.js?t=1356187600026
人民网即时:http://news.people.com.cn/210801/211150/index.js?_=1355718672442
新浪军事:http://roll.news.sina.com.cn/interface/rollnews_ch_out_interface.php?col=93&spec=&type=&ch=01&k=&offset_page=0&offset_num=0&num=60&asc=&page=1
修改方法是在配置文件中添加array对象,以和讯即时为例,修改配置如下
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<news>
<xsl:apply-templates select="//list/array" mode="news" />
</news>
</xsl:template>
<xsl:template match="//list/array" mode="news">
<item>
<datetime>
<xsl:value-of select="time/text()" />
</datetime>
<url>
<xsl:value-of select="titleLink/text()" />
</url>
<title>
<xsl:value-of select="title/text()" />
</title>
</item>
</xsl:template>
</xsl:stylesheet>
也可通过重新获取数据进行校验,选中Force to reload框,重新打开Source Viewer即可。
网站列表:
和讯即时 http://roll.hexun.com/roolNews_listRool.action?type=all
东方互动:http://news.on.cc/js/china_fullList.js?t=1356187600026
人民网即时:http://news.people.com.cn/210801/211150/index.js?_=1355718672442
新浪军事:http://roll.news.sina.com.cn/interface/rollnews_ch_out_interface.php?col=93&spec=&type=&ch=01&k=&offset_page=0&offset_num=0&num=60&asc=&page=1
修改方法是在配置文件中添加array对象,以和讯即时为例,修改配置如下
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<news>
<xsl:apply-templates select="//list/array" mode="news" />
</news>
</xsl:template>
<xsl:template match="//list/array" mode="news">
<item>
<datetime>
<xsl:value-of select="time/text()" />
</datetime>
<url>
<xsl:value-of select="titleLink/text()" />
</url>
<title>
<xsl:value-of select="title/text()" />
</title>
</item>
</xsl:template>
</xsl:stylesheet>
也可通过重新获取数据进行校验,选中Force to reload框,重新打开Source Viewer即可。
相关文章推荐
- 通知:成都传智播客培训中心网站已改版
- 网站url改版必须要注意的几点
- C#IIS网站应用程序池列表添加修改删除
- 网站改版的需要注意的几个要点
- 网站后台发通知页面效果图
- Java 专业人士必备的书籍和网站列表
- 国内软件破解下载网站列表!
- 世界50所知名大学开放课程列表及对应网站
- .NET开发的大型网站列表、各大公司.NET职位精选,C#王者归来
- 网站遭遇CC及DDOS攻击紧急处理方案
- (视频) 《快速创建网站》3.4 网站改版3分钟搞定 - WordPress主题安装和备份
- 网站调用Wordpress函数,显示博客列表以文章
- 【转自UCDChina】网站改版时的顺序问题
- 网站改版最容易犯的几个错误和网站改版注意事项
- django-pagination---七步教你实现Django网站列表自动分页
- 购物网站17-1:产品action---品牌列表---品牌管理---生成产品静态页面---前台产品管理----产品列表----产品管理
- 如何恰当地进行网站改版
- 网站改版,欢迎光临指导
- 网站改版了
- 网站改版历程的工作体会