xsl的一个小问题
ahao 2002-06-24 03:44:02 有一个xml文件,大致结构是这样的:
<?xml....>
<articles>
<onearticle>
<level>1</level>
<subject>hello</subject>
</onearticle>
<onearticle>
<level>2</level>
<subject>Re:hello</subject>
</onearticle>
<onearticle>
<level>2</level>
<subject>Re:hello</subject>
</onearticle>
<onearticle>
<level>3</level>
<subject>Re:Re:hello</subject>
</onearticle>
<onearticle>
<level>2</level>
<subject>Re:hello</subject>
</onearticle>
</articles>
我想写一个xsl文件,把它显示成:
- hello
Re:hello
+ Re:hello
Re:hello
这样的形式,请问,这个XSL文件怎么写呢?
(-,+是树的折叠图片,点它可以折叠/展开)