1
가 나는 이름입니다 경우에만 이름이 "ABC"입니다 제거해야노드 집합 길이가 1 개 이상
<Books>
<Book Name="ABC">
<Line No="43"/>
</Book>
<Book Name="XYZ">
<Line No="44"/>
</Book>
</Books>
같은 XML이 경우 "XYZ"가 또한 존재하는 노드 세트에서 노드를 제거 (또는 어디
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" />
<xsl:if test="count(Books/Book) > '1'">
<xsl:strip-space elements="*" />
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
<xsl:template match="Book[@Name='ABC']" />
</xsl:if>
</xsl:stylesheet>
이 작동하지 않는 것 : 이름은 "ABC"는 노드 집합의 유일한 요소)
전 제조 된 XSLT 같은하지입니다. 내가 여기서 잘못하고있는 것은 무엇인가?
이안 씨 정말 고마워요 ....이 작품은 완벽합니다. –