<xslTutorial creator="nicmila@idoox.com">
<index keywords='@ not()'/>
<description>You can also select elements, which contain or do not contain the given attribute. <stylesheet id='id2'/> includes and <stylesheet id='id3'/> excludes an element based on the attribute </description>
<xmlSource id="id1">
<car id='a234' checked='yes' />
<car id='a111' checked='yes' />
<car id='a005' />
</xmlSource>
<attValues>
<value match="">
</value>
</attValues>
<xslStylesheet id="id2">
<xsl:template match="car[@checked]">
<P><xsl:text>Car: </xsl:text>
<xsl:value-of select="@id"/></P>
</xsl:template>
</xslStylesheet>
<xslStylesheet id="id3">
<xsl:template match="car[not(@checked)]">
<P><xsl:text>Car: </xsl:text>
<xsl:value-of select="@id"/></P>
</xsl:template>
</xslStylesheet>
</xslTutorial>