1<?xml version="1.0"?> 2 3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" 4xmlns:exslt="http://exslt.org/common" > 5 6<!-- Test exslt:object-type --> 7 8<xsl:variable name="tree"> 9<a> 10 <b> 11 <c> 12 <d/> 13 <e/> 14 </c> 15 </b> 16</a> 17</xsl:variable> 18 19<xsl:variable name="string" select="'fred'"/> 20<xsl:variable name="number" select="93.7"/> 21<xsl:variable name="boolean" select="true()"/> 22<xsl:variable name="node-set" select="//*"/> 23 24<xsl:template match="/"> 25 <out>: 26 <xsl:value-of select="exslt:object-type($string)"/>; 27 <xsl:value-of select="exslt:object-type($number)"/>; 28 <xsl:value-of select="exslt:object-type($boolean)"/>; 29 <xsl:value-of select="exslt:object-type($node-set)"/>; 30 <xsl:value-of select="exslt:object-type($tree)"/>; 31 </out> 32</xsl:template> 33 34 35 <!-- 36 * Licensed to the Apache Software Foundation (ASF) under one 37 * or more contributor license agreements. See the NOTICE file 38 * distributed with this work for additional information 39 * regarding copyright ownership. The ASF licenses this file 40 * to you under the Apache License, Version 2.0 (the "License"); 41 * you may not use this file except in compliance with the License. 42 * You may obtain a copy of the License at 43 * 44 * http://www.apache.org/licenses/LICENSE-2.0 45 * 46 * Unless required by applicable law or agreed to in writing, software 47 * distributed under the License is distributed on an "AS IS" BASIS, 48 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 49 * See the License for the specific language governing permissions and 50 * limitations under the License. 51 --> 52 53</xsl:stylesheet> 54