1<?xml version="1.0"?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 4<!-- FileName: variable47 --> 5<!-- Document: http://www.w3.org/TR/xslt --> 6<!-- DocVersion: 19991116 --> 7<!-- Section: 11.2 Values of Variables and Parameters --> 8<!-- Purpose: Evaluation of params with repeated use of imported stylesheet. --> 9<!-- Creator: Matthew Hanson ([email protected] --> 10<!-- Elaboration: One of the params passed in to baseTemplate is the result of 11 a call to baseSubTemplate. Both are in the imported stylesheet, which could 12 be considered a subroutine library. The ...Param0 params aren't actually 13 used, but are there to potentially cause trouble. baseTemplate puts out two 14 child elements, one from itself and one it got from baseSubTemplate. --> 15 16<xsl:import href="var47imp.xsl"/> 17 18<xsl:template match="/"> 19 <out> 20 <xsl:call-template name="baseTemplate"> 21 <xsl:with-param name="baseParam0" select="'baseParam1Data'"/> 22 <xsl:with-param name="baseParam1"> 23 <xsl:call-template name="baseSubTemplate"> 24 <xsl:with-param name="baseSubParam0" select="'baseSubParam0Data'"/> 25 </xsl:call-template> 26 </xsl:with-param> 27 </xsl:call-template> 28 </out> 29</xsl:template> 30 31 <!-- 32 * Licensed to the Apache Software Foundation (ASF) under one 33 * or more contributor license agreements. See the NOTICE file 34 * distributed with this work for additional information 35 * regarding copyright ownership. The ASF licenses this file 36 * to you under the Apache License, Version 2.0 (the "License"); 37 * you may not use this file except in compliance with the License. 38 * You may obtain a copy of the License at 39 * 40 * http://www.apache.org/licenses/LICENSE-2.0 41 * 42 * Unless required by applicable law or agreed to in writing, software 43 * distributed under the License is distributed on an "AS IS" BASIS, 44 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 45 * See the License for the specific language governing permissions and 46 * limitations under the License. 47 --> 48 49</xsl:stylesheet> 50