日期:2014-05-19  浏览次数:20498 次

小弟刚接触xsl,找到了一个xsl分页的例子,但是不知道怎样改xsl才是我的xml的效果,请各位朋友帮忙看看,谢谢!
我的xml:
<?xml   version= "1.0 "   encoding= "UTF-8 "?>
<rss   version= "2.0 ">
    <channel>
        <generator> NFE/1.0 </generator>
        <link> http://news.google.com/news?q=%E5%A5%A5%E8%BF%90%E5%9C%A3%E7%81%AB&amp;hl=zh-CN&amp;lr=&amp;nxpt=20.946262443952854650275&amp;ie=UTF-8&amp;oe=UTF-8&amp;um=1&amp;tab=wn </link>
        <description> 奥运圣火   -   Google   资讯 </description>
        <language> zh-CN </language>
        <webMaster> news-feedback@google.com </webMaster>
        <copyright> &amp;copy;2007   Google </copyright>
        <pubDate> Fri,   27   Apr   2007   06:52:36   GMT </pubDate>
        <lastBuildDate> Fri,   27   Apr   2007   06:52:36   GMT </lastBuildDate>
        <image>
            <title> 奥运圣火   -   Google   资讯 </title>
            <url> http://news.google.com/intl/zh-CN_cn/images/news_res.gif </url>
            <link> http://news.google.com/ </link>
        </image>
        <item>
            <title> 北京奥运圣火明年5月登顶珠峰   -   新浪网 </title>
            <link> http://news.google.com/news/url?sa=T&amp;ct=cn/0-0&amp;fd=R&amp;url=http://news.sina.com.cn/o/2007-04-27/124911728474s.shtml&amp;cid=1112826555&amp;ei=s50xRviLNaGMqQP3_YDzBQ </link>
            <guid   isPermaLink= "false "> tag:news.google.com,2005:cluster=425462bb </guid>
            <pubDate> Fri,   27   Apr   2007   04:52:00   GMT </pubDate>
            <description> &lt;br&gt;&lt;table   border=0   width=   valign=top   cellpadding=2   cellspacing=7&gt;&lt;tr&gt;&lt;td   width=80   align=center   valign=top&gt;&lt;a   href= "http://news.google.com/news/url?sa=T&amp;ct=cn/0i-0&amp;fd=R&amp;url=http://2008.sports.tom.com/2007-04-26/0C4P/46353773.html&amp;cid=1112826555&amp;ei=s50xRviLNaGMqQP3_YDzBQ "&gt;&lt;img   src=http://news.google.com/news?imgefp=4-6pVeIgCcMJ&amp;imgurl=2008.sports.tom.com/uimg/2007/4/26/wuzhongyan/1177591953343_43216.jpg   width=79   height=52   alt= " "   border=1&gt;&lt;br&gt;&lt;font   size=-2&gt;TOM&lt;/font&gt;&lt;/a&gt;&lt;/td&gt;&lt;td   valign=top   class=j&gt;&lt;a   href= "http://news.google.com/news/url?sa=T&amp;ct=cn/0-0&amp;fd=R&amp;url=http://news.sina.com.cn/o/2007-04-27/124911728474s.shtml&amp;cid=1112826555&amp;ei=s50xRviLNaGMqQP3_YDzBQ "   target=_blank&gt;北京&lt;font   color=#CC0033&gt;奥运圣火&lt;/font&gt;明年5月登顶珠峰&lt;/a&gt;&lt;br&gt;&lt;font   size=-1&gt;&lt;font   color=#6f6f6f&gt;新浪网&amp;nbsp;-&lt;/font&gt;   &am