{ Frameless }

Scope.select()

  <xsl:template match="article">
    <xsl:apply-templates select="trace(., 'stuff')" mode="toc"/>
  </xsl:template>

Then use you can use this line in Firebug or in a built-in developer console:

stuff.select('.')

This will return you the <article> Node.

stuff.select('*')

This will select the child elements of the <article>.

Currently the Scope doesn't have access to the namespace prefixes of the stylesheet it was used in, so as a workaround you can use the namespace prefix wildcard to select elements in a namespace:

stuff.select('svg:rect')

For the time being you can use this:

stuff.select('*:rect')