谁能告诉我,XSLT 在这里做什么?它是较长的 XSLT 文档的一部分。
<xsl:template match="node[child::attribute[@NAME='entity']]">
<xsl:choose>
<xsl:when test="child::attribute[@NAME='entity']/@VALUE='accessval'">
<xsl:element name="access">
<xsl:apply-templates />
</xsl:element>
</xsl:when>
<xsl:when test="child::attribute[@NAME='entity']/@VALUE='aclval'">
<xsl:element name="acl">
<xsl:apply-templates />
</xsl:element>
</xsl:when>
</xsl:choose>
</template>
谢谢!