1<?xml version="1.0"?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 4 <!-- FileName: string134 --> 5 <!-- Document: http://www.w3.org/TR/xpath --> 6 <!-- DocVersion: 19991116 --> 7 <!-- Section: 4.2 String Functions --> 8 <!-- Creator: David Marston --> 9 <!-- Purpose: Test of default (no functions) conversion of decimal numbers with decimal point at all positions. --> 10 11<xsl:template match="/"> 12 <out> 13 <set> 14 <xsl:text>Positive numbers: </xsl:text> 15 <xsl:value-of select="9.87654321012345"/><xsl:text>,</xsl:text> 16 <xsl:value-of select="98.7654321012345"/><xsl:text>,</xsl:text> 17 <xsl:value-of select="987.654321012345"/><xsl:text>,</xsl:text> 18 <xsl:value-of select="9876.54321012345"/></set><set><xsl:text> </xsl:text> 19 <xsl:value-of select="98765.4321012345"/><xsl:text>,</xsl:text> 20 <xsl:value-of select="987654.321012345"/><xsl:text>,</xsl:text> 21 <xsl:value-of select="9876543.21012345"/><xsl:text>,</xsl:text> 22 <xsl:value-of select="98765432.1012345"/></set><set><xsl:text> </xsl:text> 23 <xsl:value-of select="987654321.012345"/><xsl:text>,</xsl:text> 24 <xsl:value-of select="9876543210.12345"/><xsl:text>,</xsl:text> 25 <xsl:value-of select="98765432101.2345"/><xsl:text>,</xsl:text> 26 <xsl:value-of select="987654321012.345"/></set><set><xsl:text> </xsl:text> 27 <xsl:value-of select="9876543210123.45"/><xsl:text>,</xsl:text> 28 <xsl:value-of select="98765432101234.5"/></set><set><xsl:text> </xsl:text> 29 <xsl:text>Negative numbers: </xsl:text> 30 <xsl:value-of select="-9.87654321012345"/><xsl:text>,</xsl:text> 31 <xsl:value-of select="-98.7654321012345"/><xsl:text>,</xsl:text> 32 <xsl:value-of select="-987.654321012345"/><xsl:text>,</xsl:text> 33 <xsl:value-of select="-9876.54321012345"/></set><set><xsl:text> </xsl:text> 34 <xsl:value-of select="-98765.4321012345"/><xsl:text>,</xsl:text> 35 <xsl:value-of select="-987654.321012345"/><xsl:text>,</xsl:text> 36 <xsl:value-of select="-9876543.21012345"/><xsl:text>,</xsl:text> 37 <xsl:value-of select="-98765432.1012345"/></set><set><xsl:text> </xsl:text> 38 <xsl:value-of select="-987654321.012345"/><xsl:text>,</xsl:text> 39 <xsl:value-of select="-9876543210.12345"/><xsl:text>,</xsl:text> 40 <xsl:value-of select="-98765432101.2345"/><xsl:text>,</xsl:text> 41 <xsl:value-of select="-987654321012.345"/></set><set><xsl:text> </xsl:text> 42 <xsl:value-of select="-9876543210123.45"/><xsl:text>,</xsl:text> 43 <xsl:value-of select="-98765432101234.5"/><xsl:text> </xsl:text> 44 </set></out> 45</xsl:template> 46 47 48 <!-- 49 * Licensed to the Apache Software Foundation (ASF) under one 50 * or more contributor license agreements. See the NOTICE file 51 * distributed with this work for additional information 52 * regarding copyright ownership. The ASF licenses this file 53 * to you under the Apache License, Version 2.0 (the "License"); 54 * you may not use this file except in compliance with the License. 55 * You may obtain a copy of the License at 56 * 57 * http://www.apache.org/licenses/LICENSE-2.0 58 * 59 * Unless required by applicable law or agreed to in writing, software 60 * distributed under the License is distributed on an "AS IS" BASIS, 61 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 62 * See the License for the specific language governing permissions and 63 * limitations under the License. 64 --> 65 66</xsl:stylesheet> 67