You can get the root node of the document containing the context node using the XPath expression "/". You can get a string that uniquely identifies this node using generate-id(/), and you can get its system ID (if known) using the extension function saxon:systemId(/).
 
Mike Kay
-----Original Message-----
From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net]On Behalf Of Gale Lee (EWU)
Sent: 06 September 2001 19:19
To: 'saxon-help@lists.sourceforge.net'
Subject: [saxon] finding uri of the document

I'm using Saxon6_4_3 on Solaris to process XSLT.  Once I'm inside a template rule matching a specific node, how can I find from what document is this node coming from?  Is there such function or expression I can use?
 
What I'm trying to read to source files and only output a single file but in the process I must not output duplicate entry.  Thank you for your help.
 
gale