超有难度的XML和XSL的转换(高难度)
各位大侠 帮帮忙解决一下这个历史性问题这是我的XML文件:
<root>
<item desc="Classification">VIP</item>
<item desc="Salut ation">Mrs</item>
<item desc="Name">Richard</item>
<item desc="Address">Tian Fu Street</item>
</root>
然后想通过xsl转换成有格式的HTML如下:
Classification: VIP Salut ation: Mrs
Name: Richard Address: Tian Fu Street
我想通过一个XSL转换成上面的格式, 但是我现在只能做到 一行就显示一组数据
Classification: VIP
Salut ation: Mrs
Name: Richard
Address: Tian Fu Street
附上我的XSL(不能完成到一行两组数据的格式), 请大家给予帮助啊 感激不尽啊!!
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="no" method="html"/>
<xsl:template match="/">
<table width="50%">
<xsl:apply-templates/>
</table>
</xsl:template>
<xsl:template match="*[text() and not (comment() or processing-instruction())]">
<tr >
<td aligh = "Right">
<SPAN >
<xsl:attribute name="class">
<xsl:text>Label</xsl:text>
</xsl:attribute>
<xsl:value-of select="./@desc"/>
<xsl:if test="@*">
<xsl:text> </xsl:text>
</xsl:if>
</SPAN>
</td>
<td aligh = "Left">
<span class="ReadOnly">
<xsl:value-of select="."/>
</span>
</td>
</tr>
</xsl:template>
</xsl:stylesheet> --------------------编程问答-------------------- 兄弟们 帮忙解决哈嘛
这个有点难度噢 --------------------编程问答-------------------- 超男??还是高楠 --------------------编程问答-------------------- 咋没人帮忙整整噢
先谢过了 自己再顶顶
补充:.NET技术 , ASP.NET