File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 23
23
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24
24
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
25
25
THE POSSIBILITY OF SUCH DAMAGE.
26
+
27
+ ====
28
+
29
+ Modified to remove number parsing so that version numbers like 1.0 are not
30
+ converted to the number 1, but stay as a string of "1.0".
26
31
-->
27
32
28
33
<xsl : output indent =" no" omit-xml-declaration =" yes" method =" text" encoding =" UTF-8" media-type =" text/x-json" />
120
125
</xsl : choose >
121
126
</xsl : template >
122
127
123
- <!-- number (no support for javascript mantissa) -->
124
- <xsl : template match =" text()[not(string(number())='NaN' or
125
- (starts-with(.,'0' ) and . != '0'))]" >
126
- " <xsl : value-of select =" ." />"
127
- </xsl : template >
128
-
129
128
<!-- boolean, case-insensitive -->
130
129
<xsl : template match =" text()[translate(.,'TRUE','true')='true']" >true</xsl : template >
131
130
<xsl : template match =" text()[translate(.,'FALSE','false')='false']" >false</xsl : template >
You can’t perform that action at this time.
0 commit comments