It doesn't work in XML Notepad, because of the replace
MS has only poor support for EXSLT which also is the case for its string extensions of XPath 1.0 (replace).
Standard XPath 1.0 offers translate (somewhat like tr in Perl). For your purpose just do a s/replace/translate/ and even limited renderer like XML Notepad are satisfied. (tested)
In reply to Re^3: Automatically creating data validation module from XSD (translate)
by pKai
in thread Automatically creating data validation module from XSD
by brian_d_foy
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |