Fixes for the CDATA generation and W8.1 support in XSLT

The Windows 8.1 changed the behavior of the getIndexFromName. The function updates the index to 0 even if the function call fails.

The XSLT transformation is not working properly with the CDATA because the constant was not correct.