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?
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--