That's a lot of information there. Thanx.
But I'm still desperate

I still want to find a way to search through an unknown lookup table (with or without a namespace or nullnamespace). Example 15 doesn't give me a whole answer yet.
The lookup source and the lookup value are defined in the input XML document and I have to check if the given value is defined in the lookuptable. So I don't know the namespace yet when creating the XSLT. I can find the namespace in the XML document with
<xsl:variable name="namespace" select="namespace-uri(document($src)/*)"/>
and can create a new element and a new namespace with
<xsl:namespace name="x" select="$namespace">
But do I have to process the lookup-table first and give every element a new namespace that I define in my XSLT template or is there an other way? And how do i define the key syntax?

