如何保存并浏览现在的CSDN论坛的文件! 40Star(陪你去看--☆流星雨★)怎么就被扣信誉度了? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 哎,xml大势所趋呀!大富翁改了,csdn也改了!不过用了xml也方便,在改版直接改一下xslt文件就搞定了!呵呵 TO: chechy(chechy) 还是你比较帅嘛,不一样就是不一样! 我下在这个页面,盖好了,怎么现实的都是 <?xml version="1.0" encoding="GB2312" ?> <?xml:stylesheet type='text/xsl' href=2.xsl'?> - <Topic>- <Issue> <PostUserNickName>chechy</PostUserNickName> <rank>三星(高级)</rank> <ranknum>star3</ranknum> <credit>100</credit> <TopicId>525030</TopicId> <TopicName>如何保存并浏览现在的CSDN论坛的文件!</TopicName> <PostUserId>107857</PostUserId> <PostUserName>chechy</PostUserName> <RoomName>Delphi</RoomName> <ReplyNum>10</ReplyNum> <PostDateTime>2002-2-8 9:49:20</PostDateTime> <Point>50</Point> <ReadNum>0</ReadNum> <RoomId>3</RoomId> <EndState>0</EndState> - <Content> CSDN改版了,由于采用了XML技术,所以通常情况下,保存一个问题,通常无法浏览。 <br /> 原因在于: <br /> 现在显示的不是原先的HTML了。而是XML文件,通过XSL解析,才能得到相关的HTML显示。由于CSDN采用的是Client端解析,即在每个人自己的机器解析XML,所以,通过IE保存的都是XML文件。XML文件浏览比较困难,而且由于XML文件有了这么一句 <br /> <?xml:stylesheet type='text/xsl' href='/expert/Xsl/2.xsl'?> <br /> 通常直接打开都会报错。 <br /> 解决方法: <br /> 1、下载需要的XML文件。比如 <br /> http://www.csdn.net/expert/topic/492/492827.xml <br /> 2、下载相应的XSL文件。地址应该是 <br /> http://www.csdn.net/expert/Xsl/2.xsl <br /> 3、修改下载的XML文件中有关XSL的路径。如果XML文件和XSL文件都在同一目录下,那么应该这么改 <br /> <?xml:stylesheet type='text/xsl' href=2.xsl'?> <br /> 4、保存修改,现在就可以离线浏览XML文件了(当然难看了一些)。 <br /> <br /> 对于高级用户,如果熟悉XSL的写法,完全可以自己写一套XSL,然后用自己高兴的方式浏览这些数据。 <br /> 最后祝大家新春快乐! <br /> </Content> <TypeState>1</TypeState> </Issue>- <Replys>- <Reply> <PostUserNickName>东北人</PostUserNickName> <rank>五级(中级)</rank> <ranknum>user5</ranknum> <credit>100</credit> <ReplyID>3523789</ReplyID> <TopicID>525030</TopicID> <PostUserId>30337</PostUserId> <PostUserName>li_zhifu</PostUserName> <Point>0</Point> <Content>老大就是老大,谢了!</Content> <PostDateTime>2002-2-8 9:52:01</PostDateTime> </Reply>- <Reply> <PostUserNickName>陪你去看--☆流星雨★</PostUserNickName> <rank>五级(中级)</rank> <ranknum>user5</ranknum> <credit>95</credit> <ReplyID>3523981</ReplyID> <TopicID>525030</TopicID> <PostUserId>170337</PostUserId> <PostUserName>40Star</PostUserName> <Point>0</Point> <Content>知道了</Content> <PostDateTime>2002-2-8 10:03:23</PostDateTime> </Reply>- <Reply> <PostUserNickName>枫之舞</PostUserNickName> <rank>四级(中级)</rank> <ranknum>user4</ranknum> <credit>100</credit> <ReplyID>3524078</ReplyID> <TopicID>525030</TopicID> <PostUserId>110528</PostUserId> <PostUserName>dancemaple</PostUserName> <Point>0</Point> <Content>学习&收藏</Content> <PostDateTime>2002-2-8 10:08:45</PostDateTime> </Reply>- <Reply> <PostUserNickName>枫之舞</PostUserNickName> <rank>四级(中级)</rank> <ranknum>user4</ranknum> <credit>100</credit> <ReplyID>3524097</ReplyID> <TopicID>525030</TopicID> <PostUserId>110528</PostUserId> <PostUserName>dancemaple</PostUserName> <Point>0</Point> <Content>40Star(陪你去看--☆流星雨★)怎么就被扣信誉度了?</Content> <PostDateTime>2002-2-8 10:09:43</PostDateTime> </Reply>- <Reply> <PostUserNickName>☆浪人☆</PostUserNickName> <rank>一星(中级)</rank> <ranknum>star1</ranknum> <credit>100</credit> <ReplyID>3524158</ReplyID> <TopicID>525030</TopicID> <PostUserId>60047</PostUserId> <PostUserName>VSaber</PostUserName> <Point>0</Point> - <Content> 哎,xml大势所趋呀! <br /> 大富翁改了,csdn也改了! <br /> 不过用了xml也方便,在改版直接改一下xslt文件就搞定了!呵呵 </Content> <PostDateTime>2002-2-8 10:13:00</PostDateTime> </Reply>- <Reply> <PostUserNickName>对CSDN极度失望中...</PostUserNickName> <rank>五级(中级)</rank> <ranknum>user5</ranknum> <credit>97</credit> <ReplyID>3524203</ReplyID> <TopicID>525030</TopicID> <PostUserId>62189</PostUserId> <PostUserName>Linux2001</PostUserName> <Point>0</Point> <Content>厉害。</Content> <PostDateTime>2002-2-8 10:15:23</PostDateTime> </Reply>- <Reply> <PostUserNickName>旺财,快来吃饭!</PostUserNickName> <rank>二级(初级)</rank> <ranknum>user2</ranknum> <credit>100</credit> <ReplyID>3524286</ReplyID> <TopicID>525030</TopicID> <PostUserId>158630</PostUserId> <PostUserName>taber</PostUserName> <Point>0</Point> <Content>呵呵,已经改过来了</Content> <PostDateTime>2002-2-8 10:21:06</PostDateTime> </Reply>- <Reply> <PostUserNickName>天涯劍</PostUserNickName> <rank>一级(初级)</rank> <ranknum>user1</ranknum> <credit>100</credit> <ReplyID>3524828</ReplyID> <TopicID>525030</TopicID> <PostUserId>34671</PostUserId> <PostUserName>erp2</PostUserName> <Point>0</Point> <Content>什么意思啊!?</Content> <PostDateTime>2002-2-8 10:52:43</PostDateTime> </Reply>- <Reply> <PostUserNickName>chechy</PostUserNickName> <rank>三星(高级)</rank> <ranknum>star3</ranknum> <credit>100</credit> <ReplyID>3525484</ReplyID> <TopicID>525030</TopicID> <PostUserId>107857</PostUserId> <PostUserName>chechy</PostUserName> <Point>0</Point> <Content>推一下</Content> <PostDateTime>2002-2-8 11:27:04</PostDateTime> </Reply>- <Reply> <PostUserNickName>Delphi新手</PostUserNickName> <rank>一级(初级)</rank> <ranknum>user1</ranknum> <credit>100</credit> <ReplyID>3525694</ReplyID> <TopicID>525030</TopicID> <PostUserId>60738</PostUserId> <PostUserName>vickly</PostUserName> <Point>0</Point> <Content>TO: chechy(chechy) 还是你比较帅嘛,不一样就是不一样!</Content> <PostDateTime>2002-2-8 11:40:58</PostDateTime> </Reply> </Replys> </Topic> 难道xsl和xml要一样下载一份?????太麻烦乐吧 不能用空格是因为CSDN的XSL没有设计好!我觉得CSDN的技术人员应该好好的请教一下karma。 保存办法请参见并可以下载相关文件http://www.csdn.net/expert/topic/525/525030.xml >不能用空格是因为CSDN的XSL没有设计好!不能用空格是因为程序过滤了,我们会在最近2天改过来,包括TAB 空格过滤有以下几个原因:1、首先XML文件中的<content>由text node和<br> node两种Node组成。由于没有保留WhiteSpace,所以text node两头的空格将自动被XSL滤掉。2、HTML文件中,空格并不代表什么,只有改为 才能显示空格。所以即使XSL解析保留了空格,也需要把空格改为 才可以。上述两个原因导致了空格被滤掉。要解决它,必须从这两点入手。 我用的保存方法:复制-粘贴到word! 每个xml目录下都要保存一个xsl文件,实在太麻烦了。 如何使用 “EHlib”把其中的数据导出来 我的左眼遇到鬼了。 最高分赠送:如何在DELPHI中阅读PDF文件,帮我UP,一定给分,解决问题者送200分 请问如何制作闪屏? delphi5用ado连接oracle,在2000专业版下出现问题!急!(在线等待) 急!在delphi中新建一个文本文件的代码怎么写? recordset 求助!quickrep报表在设计时如何实现多页?? 关于ComBoBox的问题 ? 寻找能显示CAD图纸的delphi控件 IE风格的工具栏源码(可自定义工具栏) 关于动态添加字段的问题
大富翁改了,csdn也改了!
不过用了xml也方便,在改版直接改一下xslt文件就搞定了!呵呵
<?xml version="1.0" encoding="GB2312" ?>
<?xml:stylesheet type='text/xsl' href=2.xsl'?>
- <Topic>
- <Issue>
<PostUserNickName>chechy</PostUserNickName>
<rank>三星(高级)</rank>
<ranknum>star3</ranknum>
<credit>100</credit>
<TopicId>525030</TopicId>
<TopicName>如何保存并浏览现在的CSDN论坛的文件!</TopicName>
<PostUserId>107857</PostUserId>
<PostUserName>chechy</PostUserName>
<RoomName>Delphi</RoomName>
<ReplyNum>10</ReplyNum>
<PostDateTime>2002-2-8 9:49:20</PostDateTime>
<Point>50</Point>
<ReadNum>0</ReadNum>
<RoomId>3</RoomId>
<EndState>0</EndState>
- <Content>
CSDN改版了,由于采用了XML技术,所以通常情况下,保存一个问题,通常无法浏览。
<br />
原因在于:
<br />
现在显示的不是原先的HTML了。而是XML文件,通过XSL解析,才能得到相关的HTML显示。由于CSDN采用的是Client端解析,即在每个人自己的机器解析XML,所以,通过IE保存的都是XML文件。XML文件浏览比较困难,而且由于XML文件有了这么一句
<br />
<?xml:stylesheet type='text/xsl' href='/expert/Xsl/2.xsl'?>
<br />
通常直接打开都会报错。
<br />
解决方法:
<br />
1、下载需要的XML文件。比如
<br />
http://www.csdn.net/expert/topic/492/492827.xml
<br />
2、下载相应的XSL文件。地址应该是
<br />
http://www.csdn.net/expert/Xsl/2.xsl
<br />
3、修改下载的XML文件中有关XSL的路径。如果XML文件和XSL文件都在同一目录下,那么应该这么改
<br />
<?xml:stylesheet type='text/xsl' href=2.xsl'?>
<br />
4、保存修改,现在就可以离线浏览XML文件了(当然难看了一些)。
<br />
<br />
对于高级用户,如果熟悉XSL的写法,完全可以自己写一套XSL,然后用自己高兴的方式浏览这些数据。
<br />
最后祝大家新春快乐!
<br />
</Content>
<TypeState>1</TypeState>
</Issue>
- <Replys>
- <Reply>
<PostUserNickName>东北人</PostUserNickName>
<rank>五级(中级)</rank>
<ranknum>user5</ranknum>
<credit>100</credit>
<ReplyID>3523789</ReplyID>
<TopicID>525030</TopicID>
<PostUserId>30337</PostUserId>
<PostUserName>li_zhifu</PostUserName>
<Point>0</Point>
<Content>老大就是老大,谢了!</Content>
<PostDateTime>2002-2-8 9:52:01</PostDateTime>
</Reply>
- <Reply>
<PostUserNickName>陪你去看--☆流星雨★</PostUserNickName>
<rank>五级(中级)</rank>
<ranknum>user5</ranknum>
<credit>95</credit>
<ReplyID>3523981</ReplyID>
<TopicID>525030</TopicID>
<PostUserId>170337</PostUserId>
<PostUserName>40Star</PostUserName>
<Point>0</Point>
<Content>知道了</Content>
<PostDateTime>2002-2-8 10:03:23</PostDateTime>
</Reply>
- <Reply>
<PostUserNickName>枫之舞</PostUserNickName>
<rank>四级(中级)</rank>
<ranknum>user4</ranknum>
<credit>100</credit>
<ReplyID>3524078</ReplyID>
<TopicID>525030</TopicID>
<PostUserId>110528</PostUserId>
<PostUserName>dancemaple</PostUserName>
<Point>0</Point>
<Content>学习&收藏</Content>
<PostDateTime>2002-2-8 10:08:45</PostDateTime>
</Reply>
- <Reply>
<PostUserNickName>枫之舞</PostUserNickName>
<rank>四级(中级)</rank>
<ranknum>user4</ranknum>
<credit>100</credit>
<ReplyID>3524097</ReplyID>
<TopicID>525030</TopicID>
<PostUserId>110528</PostUserId>
<PostUserName>dancemaple</PostUserName>
<Point>0</Point>
<Content>40Star(陪你去看--☆流星雨★)怎么就被扣信誉度了?</Content>
<PostDateTime>2002-2-8 10:09:43</PostDateTime>
</Reply>
- <Reply>
<PostUserNickName>☆浪人☆</PostUserNickName>
<rank>一星(中级)</rank>
<ranknum>star1</ranknum>
<credit>100</credit>
<ReplyID>3524158</ReplyID>
<TopicID>525030</TopicID>
<PostUserId>60047</PostUserId>
<PostUserName>VSaber</PostUserName>
<Point>0</Point>
- <Content>
哎,xml大势所趋呀!
<br />
大富翁改了,csdn也改了!
<br />
不过用了xml也方便,在改版直接改一下xslt文件就搞定了!呵呵
</Content>
<PostDateTime>2002-2-8 10:13:00</PostDateTime>
</Reply>
- <Reply>
<PostUserNickName>对CSDN极度失望中...</PostUserNickName>
<rank>五级(中级)</rank>
<ranknum>user5</ranknum>
<credit>97</credit>
<ReplyID>3524203</ReplyID>
<TopicID>525030</TopicID>
<PostUserId>62189</PostUserId>
<PostUserName>Linux2001</PostUserName>
<Point>0</Point>
<Content>厉害。</Content>
<PostDateTime>2002-2-8 10:15:23</PostDateTime>
</Reply>
- <Reply>
<PostUserNickName>旺财,快来吃饭!</PostUserNickName>
<rank>二级(初级)</rank>
<ranknum>user2</ranknum>
<credit>100</credit>
<ReplyID>3524286</ReplyID>
<TopicID>525030</TopicID>
<PostUserId>158630</PostUserId>
<PostUserName>taber</PostUserName>
<Point>0</Point>
<Content>呵呵,已经改过来了</Content>
<PostDateTime>2002-2-8 10:21:06</PostDateTime>
</Reply>
- <Reply>
<PostUserNickName>天涯劍</PostUserNickName>
<rank>一级(初级)</rank>
<ranknum>user1</ranknum>
<credit>100</credit>
<ReplyID>3524828</ReplyID>
<TopicID>525030</TopicID>
<PostUserId>34671</PostUserId>
<PostUserName>erp2</PostUserName>
<Point>0</Point>
<Content>什么意思啊!?</Content>
<PostDateTime>2002-2-8 10:52:43</PostDateTime>
</Reply>
- <Reply>
<PostUserNickName>chechy</PostUserNickName>
<rank>三星(高级)</rank>
<ranknum>star3</ranknum>
<credit>100</credit>
<ReplyID>3525484</ReplyID>
<TopicID>525030</TopicID>
<PostUserId>107857</PostUserId>
<PostUserName>chechy</PostUserName>
<Point>0</Point>
<Content>推一下</Content>
<PostDateTime>2002-2-8 11:27:04</PostDateTime>
</Reply>
- <Reply>
<PostUserNickName>Delphi新手</PostUserNickName>
<rank>一级(初级)</rank>
<ranknum>user1</ranknum>
<credit>100</credit>
<ReplyID>3525694</ReplyID>
<TopicID>525030</TopicID>
<PostUserId>60738</PostUserId>
<PostUserName>vickly</PostUserName>
<Point>0</Point>
<Content>TO: chechy(chechy) 还是你比较帅嘛,不一样就是不一样!</Content>
<PostDateTime>2002-2-8 11:40:58</PostDateTime>
</Reply>
</Replys>
</Topic>
并可以下载相关文件
http://www.csdn.net/expert/topic/525/525030.xml
1、首先XML文件中的<content>由text node和<br> node两种Node组成。由于没有保留WhiteSpace,所以text node两头的空格将自动被XSL滤掉。
2、HTML文件中,空格并不代表什么,只有改为 才能显示空格。所以即使XSL解析保留了空格,也需要把空格改为 才可以。
上述两个原因导致了空格被滤掉。要解决它,必须从这两点入手。