1<?xml version="1.0" encoding="UTF-8"?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 4 <!-- FileName: paramtest --> 5 <!-- Document: http://www.w3.org/TR/xslt --> 6 <!-- DocVersion: 19991116 --> 7 <!-- Section: 11.4 Top-level Variables and Parameters --> 8 <!-- Purpose: Test of parameters to the stylesheet. --> 9 <!-- Comments: This test is within the embedded section because it requires 10 a special command line which is already developed for embed. --> 11 12<xsl:param name="pv1" /> 13<xsl:param name="pv2" /> 14<xsl:param name="pv3" /> 15<xsl:param name="pv4">Oops, failed</xsl:param> 16<xsl:param name="pv5">Oops, failed</xsl:param> 17<xsl:param name="pv6">Oops, failed</xsl:param> 18 19<xsl:template match="/"> 20 <out> 21 <pv1Tag><xsl:value-of select="$pv1"/></pv1Tag>, 22 <pv2Tag><xsl:value-of select="$pv2"/></pv2Tag>, 23 <pv3Tag><xsl:value-of select="$pv3"/></pv3Tag>, 24 <pv4Tag><xsl:value-of select="$pv4"/></pv4Tag>, 25 <pv5Tag><xsl:value-of select="$pv5"/></pv5Tag>, 26 <pv6Tag><xsl:value-of select="$pv6"/></pv6Tag>. 27 </out> 28</xsl:template> 29 30 <!-- 31 * Licensed to the Apache Software Foundation (ASF) under one 32 * or more contributor license agreements. See the NOTICE file 33 * distributed with this work for additional information 34 * regarding copyright ownership. The ASF licenses this file 35 * to you under the Apache License, Version 2.0 (the "License"); 36 * you may not use this file except in compliance with the License. 37 * You may obtain a copy of the License at 38 * 39 * http://www.apache.org/licenses/LICENSE-2.0 40 * 41 * Unless required by applicable law or agreed to in writing, software 42 * distributed under the License is distributed on an "AS IS" BASIS, 43 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 44 * See the License for the specific language governing permissions and 45 * limitations under the License. 46 --> 47 48</xsl:stylesheet> 49