我要做一个全XML的网站,就是后缀名是XML的那种,谁能帮帮我吗?

要做一个后缀名是XML的网站是用XML+CSS呢?还是用XML+XSL呢?
对了怎么在XML文件中加入图片,网页,还有FLASH,怎么样画表格呢?
然后怎么样用CSS显示,和用XSL格式化呢?
非常感谢!
---------------------------------------------------------------

XML+CSS+XSL!!!!
---------------------------------------------------------------

现成的代码给你看

  1<topic>
  2<issue>
  3<postusernickname>反恐精英</postusernickname>
  4<rank>一级(初级)</rank>
  5<ranknum>user1</ranknum>
  6<credit>100</credit>
  7<topicid>920252</topicid>
  8<topicname>我要做一个全XML的网站,就是后缀名是XML的那种,谁能帮帮我吗?</topicname>
  9<postuserid>287287</postuserid>
 10<postusername>galaxyvenus</postusername>
 11<roomname>XML/SOAP</roomname>
 12<replynum>12</replynum>
 13<postdatetime>2002-8-3 8:46:03</postdatetime>
 14<point>20</point>
 15<readnum>0</readnum>
 16<roomid>18</roomid>
 17<endstate>0</endstate>
 18<content>要做一个后缀名是XML的网站是用XML+CSS呢?还是用XML+XSL呢?   
 19对了怎么在XML文件中加入图片,网页,还有FLASH,怎么样画表格呢?   
 20然后怎么样用CSS显示,和用XSL格式化呢?   
 21非常感谢!</content>
 22</issue>
 23<replys>
 24<reply>
 25<postusernickname>孟子E章</postusernickname>
 26<rank>三星(高级)</rank>
 27<ranknum>star3</ranknum>
 28<credit>203</credit>
 29<replyid>5947459</replyid>
 30<topicid>920252</topicid>
 31<postuserid>40078</postuserid>
 32<postusername>net_lover</postusername>
 33<point>0</point>
 34<content>XML+CSS+XSL!!!!</content>
 35<postdatetime>2002-8-3 10:20:16</postdatetime>
 36</reply>
 37<reply>
 38<postusernickname>hihi</postusernickname>
 39<rank>三级(初级)</rank>
 40<ranknum>user3</ranknum>
 41<credit>100</credit>
 42<replyid>5948957</replyid>
 43<topicid>920252</topicid>
 44<postuserid>207260</postuserid>
 45<postusername>gyn</postusername>
 46<point>0</point>
 47<content>使用css并不影响使用xsl   
 48  
 49虽然xml也能保存图片,但最后只保存链接。</content>
 50<postdatetime>2002-8-3 12:02:12</postdatetime>
 51</reply>
 52<reply>
 53<postusernickname>反恐精英</postusernickname>
 54<rank>一级(初级)</rank>
 55<ranknum>user1</ranknum>
 56<credit>100</credit>
 57<replyid>5950535</replyid>
 58<topicid>920252</topicid>
 59<postuserid>287287</postuserid>
 60<postusername>galaxyvenus</postusername>
 61<point>0</point>
 62<content>有没有这样的网站例子让我看看呢?</content>
 63<postdatetime>2002-8-3 13:57:46</postdatetime>
 64</reply>
 65<reply>
 66<postusernickname>悠悠 稻草人</postusernickname>
 67<rank>一星(中级)</rank>
 68<ranknum>star1</ranknum>
 69<credit>93</credit>
 70<replyid>5954584</replyid>
 71<topicid>920252</topicid>
 72<postuserid>52322</postuserid>
 73<postusername>runmin</postusername>
 74<point>0</point>
 75<content>有必要么?   
 76  
 77有可能么?</content>
 78<postdatetime>2002-08-03 18:56:00</postdatetime>
 79</reply><reply>
 80<postusernickname>神仙</postusernickname>
 81<rank>二级(初级)</rank>
 82<ranknum>user2</ranknum>
 83<credit>100</credit>
 84<replyid>5959967</replyid>
 85<topicid>920252</topicid>
 86<postuserid>172600</postuserid>
 87<postusername>cshchina</postusername>
 88<point>0</point>
 89<content>csdn的这些页面就是xml文件</content>
 90<postdatetime>2002-08-04 10:40:00</postdatetime>
 91</reply><reply>
 92<postusernickname>小李不冲动</postusernickname>
 93<rank>一级(初级)</rank>
 94<ranknum>user1</ranknum>
 95<credit>100</credit>
 96<replyid>5960376</replyid>
 97<topicid>920252</topicid>
 98<postuserid>178754</postuserid>
 99<postusername>ipconfiger</postusername>
100<point>0</point>
101<content>csdn的xml页面是由asp程序生成的,过程是由asp接受你的请求,然后在数据库中调出所需要的内容,生成xml文件,再转连接指向到缓存中生成的xml文件   
102  
103全部用xml文件组成的网站是不可能的,这样倒还不如用html,因为这样没有体现xml的长处</content>
104<postdatetime>2002-08-04 11:13:00</postdatetime>
105</reply><reply>
106<postusernickname>www)(调查显示:我不是人)(com</postusernickname>
107<rank>五级(中级)</rank>
108<ranknum>user5</ranknum>
109<credit>90</credit>
110<replyid>5961760</replyid>
111<topicid>920252</topicid>
112<postuserid>133824</postuserid>
113<postusername>Lostinet</postusername>
114<point>0</point>
115<content>http://lostinet.d2g.com/111.xml?html</content>
116<postdatetime>2002-08-04 13:13:00</postdatetime>
117</reply><reply>
118<postusernickname>网之胜</postusernickname>
119<rank>一级(初级)</rank>
120<ranknum>user1</ranknum>
121<credit>100</credit>
122<replyid>5962180</replyid>
123<topicid>920252</topicid>
124<postuserid>295276</postuserid>
125<postusername>fsdos</postusername>
126<point>0</point>
127<content>为什么一定要坚持表面使用所谓的XML文件后缀呢???   
128  
129XML最大的优势在于自定义标识和数据交换,而不是取代HTML、ASP或PHP。   
130  
131Extensible Markup Language (XML) is the universal format for data on the Web. XML allows developers to easily describe and deliver rich, structured data from any application in a standard, consistent way. XML does not replace HTML; rather, it is a complementary format.   
132  
133</content>
134<postdatetime>2002-08-04 13:50:00</postdatetime>
135</reply><reply>
136<postusernickname>小李不冲动</postusernickname>
137<rank>一级(初级)</rank>
138<ranknum>user1</ranknum>
139<credit>100</credit>
140<replyid>5963086</replyid>
141<topicid>920252</topicid>
142<postuserid>178754</postuserid>
143<postusername>ipconfiger</postusername>
144<point>0</point>
145<content>搂主,打住了,发分了</content>
146<postdatetime>2002-08-04 15:04:00</postdatetime>
147</reply><reply>
148<postusernickname>海曦</postusernickname>
149<rank>四级(中级)</rank>
150<ranknum>user4</ranknum>
151<credit>100</credit>
152<replyid>5969466</replyid>
153<topicid>920252</topicid>
154<postuserid>173625</postuserid>
155<postusername>hax</postusername>
156<point>0</point>
157<content>后缀名只是一个标记而已,什么问题都不说明的。   
158  
159你要真的想了解完全使用xml的web发布,可以看Apache的Cocoon项目。   
160xml.apache.org</content>
161<postdatetime>2002-08-05 01:49:00</postdatetime>
162</reply><reply>
163<postusernickname>火烈鸟</postusernickname>
164<rank>一级(初级)</rank>
165<ranknum>user1</ranknum>
166<credit>100</credit>
167<replyid>5973501</replyid>
168<topicid>920252</topicid>
169<postuserid>94825</postuserid>
170<postusername>cyflamingo</postusername>
171<point>0</point>
172<content>我建议你直接看看csdn的方法   
173xml存贮数据,xsl存贮格式   
174xsl地址:http://www.csdn.net/expert/Xsl/2.xsl   
175就是这个样子可以进行asp的连接,然后,在xml中加入xsl的连接   
176这样的话其实是把,web页面的内容写入了xsl,就可以以xml文件作为网站文件了</content>
177<postdatetime>2002-08-05 11:31:00</postdatetime>
178</reply><reply>
179<postusernickname>火烈鸟</postusernickname>
180<rank>一级(初级)</rank>
181<ranknum>user1</ranknum>
182<credit>100</credit>
183<replyid>5973629</replyid>
184<topicid>920252</topicid>
185<postuserid>94825</postuserid>
186<postusername>cyflamingo</postusername>
187<point>0</point>
188<content>顺便配合看看这个页面的xml你就应该有点了解了   
189其实xml还是纯粹的数据格式,只是使用不同的xsl绑定可以实现不同的显示格式罢了,如果想做网页,主要的代码还是在xsl中定义的   
190xml的格式一旦定义好了,通过数据库的xml支持导出来就可以了</content>
191<postdatetime>2002-08-05 11:36:00</postdatetime>
192</reply></replys>
193</topic>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus