[xsl] template match based on external document

Subject: [xsl] template match based on external document
From: "Lincoln" <lincoln.mitchell@xxxxxxxxxx>
Date: Wed, 23 Aug 2006 17:00:50 +0800
I want to create a template who's match attribute is partly derived from an
external xml document (in particular an attribute of a node in the external
xml document).
Once matched I need to then access other attributes from the external doc
Is this possible?

I know this code is wrong but it illustrates my thinking at the moment:
<xsl:template match="g[@id=document('doc.xml')//object@id]">
  <xsl:value-of select="document('doc.xml')//object@type"/>

Is something like this template possible? Am I way of target? Any ideas?

Kind Regard,


Current Thread