我有一个使用 xslt 文件打开的 xml 文件:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="eventsoverview.xsl"?>
<events>
<item>
<date>7/5/2013</date>
<time>18:00</time>
<title>Some title</title>
<location>Earth</location>
<id>505</id>
<category>Comedy</category>
<description>Some description</description>
</item>
<item>
<date>7/5/2013</date>
<time>18:00</time>
<title>Some title</title>
<location>Earth</location>
<id>506</id>
<category>Comedy</category>
<description>Some description</description>
</item>
<item>
<date>7/5/2013</date>
<time>18:00</time>
<title>Some title</title>
<location>Earth</location>
<id>507</id>
<category>Comedy</category>
<description>Some description</description>
</item>
</events>
事件概述.xsl:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body style="background-color:#EFEFEF;">
<xsl:for-each select="events/item">
<ul>
<li>
<h2 style="color:#9C5D00;">
<xsl:value-of select="title"/>
</h2>
<p>
<xsl:value-of select="description"/>
</p>
</li>
</ul>
<hr/>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
现在,这个 xslt 正在显示有关该事件的简要数据。我想要做的是,当我单击事件时,它应该使用相同的 xml 文件显示事件的详细信息。我该怎么做呢?这可以使用多个 xslt 文件来完成吗?