XSL node-set function now behaves more like MS version

Change-Id: Ie53cfb59ec4e41574be0558db2f6303e77728dd3
fixed bug with handling of global variables in XSLs

Change-Id: I8da42cd8641bfa0eb7029af286938edbaa0599bc