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: []On Behalf Of Gale Lee (EWU)
Sent: 06 September 2001 19:19
To: ''
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.