[System.XML] Various XSL bugfixes (#18118, #18114, #18113)

- Fix handling of global variables in XSLs (#18118)
- Fix XSL node-set bug (#18114)
- Fix handling of space in XSL value-of elements (#18113)