Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Returns True if the argument is false, and a false otherwise.

Syntax

		
boolean not(
boolean)

Parameters

boolean

A Boolean value.

Return Value

Returns True if the argument is false, and a false otherwise.

Example

In this example, the notexample.xsl stylesheet is applied to the books.xml document. For each book node, the value of the price element is evaluated and if it is not greater than 10, the value of the title element and the value of the price element are output to the browser.

Books.xml

Copy Code
<?xml-stylesheet type="text/xsl" href="notexample.xsl"?>
<catalog>
  <book id="bk101">
	<author>Gambardella, Matthew</author>
	<title>XML Developer's Guide</title>
	<genre>Computer</genre>
	<price>44.95</price>
	<publish_date>2000-10-01</publish_date>
	<description>An in-depth look at creating applications
with
	XML.</description>
  </book>
  <book id="bk102">
	<author>Ralls, Kim</author>
	<title>Midnight Rain</title>
	<genre>Fantasy</genre>
	<price>5.95</price>
	<publish_date>2000-12-16</publish_date>
	<description>A former architect battles corporate
zombies, 
	an evil sorceress, and her own childhood to become queen of 
	the world.</description>
  </book>
</catalog>

notexample.xsl

Copy Code
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
  <xsl:for-each select="//book[not(price &gt; 10)]">
	<xsl:value-of select="title"/> -
	$<xsl:value-of select="price"/><br/>
  </xsl:for-each>
</xsl:template>
</xsl:stylesheet>

Result

Copy Code
Midnight Rain - $5.95

See Also

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.