On 26/09/2011 21:30, Christophe Marchand wrote:
Well, nothing expected with deocument(.)
I may pass a DOM document as a parameter to this XSL, but when I have no document, then I had a lot of exceptions. So, initializing my repository with document(.) was a way to have something non-null. I expected document(.) was the XSL itself, and as it was non-null, I could use $repository/data/param[@id='foo']/@value even if repository do not contains data node....

You're thinking of document('') which refers to the stylesheet (more accurately, the XML entity containing the element in which the call on document('') appears). But I'm not really sure what you problem is, or what you mean by 'repository', so I can't really advise a better approach.

Michael Kay