--- title: not slug: Web/XPath/Functions/not tags: - XSLT - XSLT_Reference translation_of: Web/XPath/Functions/not ---
{{ XsltRef() }}
not 関数は式を真偽値として評価し、その逆の値を返します。
not(expression )
expressionfalse と評価できる式に対しては true を返し、true と評価できる式に対しては false を返します。
<xsl:for-each match="//a[not(@name and @name = 'badname')]">
<!-- iterates over any <a> element in the document, that
either has no 'name' attribute at all, or it has one,
but its value is not "badname". -->
</xsl:template>
対応済み。