[xsl] document(@href)/id('content')

Subject: [xsl] document(@href)/id('content')
From: Jack Bates <ms419@xxxxxxxxxxxxxx>
Date: Mon, 09 Nov 2009 17:11:18 -0800
I want to apply templates to the element with id "content" in a document
other than the main source document

So I tried variations on,

<xsl:apply-templates select="document(@href)/id('content')"/>

Nothing has worked so far - how can I apply templates to the element
with id "content" in a document other than the main source document?

I read at, http://www.w3.org/TR/xpath#function-id

- that id() selects elements in the same document as the context node,
and in XSLT, the context node comes from the current node

But I also read that for each step in an XPath, each selected node is
used as a context node for the following step

So shouldn't the context node of the id() step in
"document(@href)/id('content')" be the result of the document() step?

Current Thread