the two variables go out of scope at the end of the </xsl:if>!
The whole document is accessible to you; use the XPaths as your
friends to reach into it. Especially powerful are the predicates
(the parts in [ and ]) that let you filter down result sets.