xsl解析xml时的执行步骤?
<?xml version="1.0" encoding="UTF-8"?>
<root>
<ABC>/a/aa/aaa/aaaa</ABC>
<ABC>/b/bb</ABC>
</root>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="//ABC">
<xsl:call-template name="split">
<xsl:with-param name="str" select="."/>
<xsl:with-param name="op">/</xsl:with-param>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
<xsl:template name="split">
<xsl:param name="str"/>
<xsl:param name="op"/>
<xsl:choose>
<xsl:when test="contains($str,$op)">
<xsl:variable name="str1" select="substring-after($str,$op)"/>
<xsl:if test="not(starts-with($str,$op))">
<xsl:variable name="str2" select="substring-before($str,$op)"/>
<xsl:value-of select="$str2"/><br/>
</xsl:if>
<xsl:call-template name="split">
<xsl:with-param name="str" select="$str1"/>
<xsl:with-param name="op" select="$op"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$str"/><br/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
这个可以以/为界限,使得数据换行,谁能告诉我执行步骤啊?谢谢