For example, suppose you want to find all
profession elements whose value is
"physicist." The XPath expression
//profession[. = "physicist"] does this. Here the
period stands for the string value of the current node, the same as
would be returned by xsl:value-of. You can use
single quotes around the string instead of double quotes, which is
often useful when the XPath expression appears inside a double-quoted
attribute value, for example, <xsl:apply-templates
select="//profession[.= 'physicist']" />.
If you want to ask for all person elements that
have a profession child element with the value
"physicist," you'd
use the XPath expression
//person[profession="physicist"]. If you want to
find the person element with id
p4567, put an @ in front of the name of the
attribute as in //person[@id="p4567"].