1
任何人都可以告訴我,XSLT在這裏做什麼?它是更長的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>
謝謝!