1<?xml version="1.0"?> 2<ped:stylesheet xmlns:ped="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3<ped:output method="xml"/> 4<ped:key name="tk" match="xyz" use="zyx"/> 5<ped:variable name="joe">2</ped:variable> 6<ped:param name="sam" select="' x 4'"/> 7 8 <!-- FileName: NSPC05 --> 9 <!-- Document: http://www.w3.org/TR/xpath --> 10 <!-- DocVersion: 19991116 --> 11 <!-- Section: 2.1 XSLT Namespace. --> 12 <!-- Creator: Paul Dick --> 13 <!-- Purpose: Stylesheets are free to use any prefix, provided there is a namespace 14 declaration that binds the prefix to the URI of XSLT namespace. --> 15 16<ped:template match="doc"> 17 <out> 18 <ped:value-of select="'Testing '"/> 19 <ped:for-each select="*"> 20 <ped:value-of select="."/><ped:text> </ped:text> 21 </ped:for-each> 22 23 <ped:text>
</ped:text> 24 <ped:value-of select="$joe"/> 25 <ped:value-of select="$sam"/> 26 27 <ped:text>
</ped:text> 28 <ped:call-template name="ThatTemp"> 29 <ped:with-param name="sam">quos</ped:with-param> 30 </ped:call-template> 31 32 <ped:text>
</ped:text> 33 <ped:call-template name="ThatTemp"/> 34 </out> 35</ped:template> 36 37<ped:template name="ThatTemp"> 38 <ped:param name="sam">bo</ped:param> 39 <ped:copy-of select="$sam"/> 40</ped:template> 41 42 <!-- 43 * Licensed to the Apache Software Foundation (ASF) under one 44 * or more contributor license agreements. See the NOTICE file 45 * distributed with this work for additional information 46 * regarding copyright ownership. The ASF licenses this file 47 * to you under the Apache License, Version 2.0 (the "License"); 48 * you may not use this file except in compliance with the License. 49 * You may obtain a copy of the License at 50 * 51 * http://www.apache.org/licenses/LICENSE-2.0 52 * 53 * Unless required by applicable law or agreed to in writing, software 54 * distributed under the License is distributed on an "AS IS" BASIS, 55 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 56 * See the License for the specific language governing permissions and 57 * limitations under the License. 58 --> 59 60</ped:stylesheet> 61