A
Andy Fish
Say I am in an XSLT template with the context node set to a node from an
alternative document (i.e. read by the document() function). Is there any
way to select nodes from the original document again?
e.g.
<xsl:template match="foo">
<xsl:apply-templates select="document(doc.xml)" mode="otherdoc" />
</xsl:template>
<xsl:template match="bar" mode="otherdoc">
now my context node is a node in doc.xml. how can I select a node from the
main document?
</xsl:template>
Andy
alternative document (i.e. read by the document() function). Is there any
way to select nodes from the original document again?
e.g.
<xsl:template match="foo">
<xsl:apply-templates select="document(doc.xml)" mode="otherdoc" />
</xsl:template>
<xsl:template match="bar" mode="otherdoc">
now my context node is a node in doc.xml. how can I select a node from the
main document?
</xsl:template>
Andy