Fixes: #2198
If there is a single "-" or it is only accompanied by whitespace, then
it wouldn't get escaped as it was detected as as a number. This would
produce invalid JSON.
This makes the numbers part ignore such and thus ensures it gets escaped
as text.
There might be other corner cases related to number parsing, this should be investigated.
https://github.com/doekman/xml2json-xslt/pull/20
Some numeric values would not get formatted to valid JSON. This
incorporates the suggestions from issue #15.
Also fixed whitespace of original patch.
Additional fix for related issue will follow.
- The XSLT will now return empty if called directly.
This is a security measure to prevent unintended data leakage.
- Adding partial array support to print sources in an array.
Code lifted from:
https://code.google.com/p/xml2json-xslt/issues/detail?id=3
svn path=/icecast/trunk/icecast/; revision=19109