XSL显示的问题。是否可以进行页面传值呢?请赐教!
正在做一个asp.net和XMl结合的文章系统。初学。。别笑。。
我想显示我一个xml文件里所有元素为<title>的内容。
我想现实的就是一个文章列表那样啦。。
看到的是文章的标题。。点激就进入哪个文章的正文内容。。
因为我是用xml做数据库。。。
我显示文章列表的时候是想通过XSL来做的。。。
那个XSL文件应该怎样写??
我的xml文件为:
<?xml version="1.0" encoding="gb2312"?>
<data>
<type lei="C#">
<topic id="1">
<title>Sql Server中的日期与时间函数</title>
<author>wo</author>
<content>qwertyui撒大按时大苏打实打实打算</content>
<time>
</time>
<count>
</count>
</topic>
<topic id="2">
<title>123456</title>
<author>wo</author>
<content>q3434343wertyui</content>
<time>
</time>
<count>
</count>
</topic>
<topic id="3">
<title>123vbbbbbbbbbb</title>
<author>wo</author>
<content>qwertyunnnnnnmmmmmmi</content>
<time>
</time>
<count>
</count>
</topic>
</type>
<type lei="c3">
<topic id="4">
<title>12后果发挥广泛3</title>
<author>wo</author>
<content>qwertyui</content>
<time>
</time>
<count>
</count>
</topic>
<topic id="5">
<title>1234规范化规范化规范化感56</title>
<author>wo</author>
<content>q3434343wertyui</content>
<time>
</time>
<count>
</count>
</topic>
<topic id="6">
<title>123vb规范化规范化飞过海法bbbbbbbbb</title>
<author>wo</author>
<content>qwertyunnnnnnmmmmmmi</content>
<time>
</time>
<count>
</count>
</topic>
</type>
</data>
我是想用Querystring来传值的。。。例如那个<type lei="C#">之下<topic id="1">这个元素的<title> 我想要的连接地址是 show.aspx?lei=C#&id=1 (应该没有写错吧?可以这样写的吧?)
我想显示全部的文章标题。。。应该怎样做呢??
想了很久都没有思路。列标题出来应该没有问题了。。但是连接那里怎么办?
请赐教。。