1<?xml version="1.0"?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 4 <!-- FileName: variable21 --> 5 <!-- Document: http://www.w3.org/TR/xslt --> 6 <!-- DocVersion: 19991116 --> 7 <!-- Section: 11.2 Values of Variables and Parameters --> 8 <!-- Purpose: Test setting several parameters locally --> 9 <!-- Author: David Marston --> 10 11<xsl:template match="doc"> 12 <xsl:param name="n1" select="1"/> 13 <xsl:param name="n2" select="2"/> 14 <xsl:param name="n3" select="3"/> 15 <xsl:param name="n4" select="4"/> 16 <xsl:param name="n5" select="5"/> 17 <xsl:param name="n6" select="6"/> 18 <xsl:param name="n7" select="7"/> 19 <xsl:param name="n8" select="8"/> 20 <xsl:param name="n9" select="9"/> 21 <out> 22 <xsl:value-of select="item[$n8]"/> 23 <xsl:value-of select="item[$n3]"/> 24 <xsl:value-of select="item[$n7]"/> 25 <xsl:value-of select="item[$n4]"/> 26 <xsl:value-of select="item[$n1]"/> 27 <xsl:value-of select="item[$n6]"/> 28 <xsl:value-of select="item[$n5]"/> 29 <xsl:value-of select="item[$n9]"/> 30 <xsl:value-of select="item[$n2]"/> 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