1<?xml version="1.0"?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 xmlns:lxslt="http://xml.apache.org/xslt" 4 xmlns:extension1288="MyCounter" 5 extension-element-prefixes="extension1288" 6 version="1.0"> 7 8 <lxslt:component prefix="extension1288" 9 elements="" functions="read"> 10 <lxslt:script lang="javaclass" src="Bugzilla1288"/> 11 </lxslt:component> 12 13 <!-- XSL variable declaration --> 14 <xsl:variable name="var"> 15 <history/> 16 </xsl:variable> 17 18 <!-- Extension function call --> 19 <xsl:template match="/"> 20 <out> 21 <p>Extension output below:</p> 22 <xsl:variable name="result" select="extension1288:run($var)"/> 23 <xsl:copy-of select="$var"/> 24 <p>Extension output above:</p> 25 </out> 26 </xsl:template> 27 28 29 <!-- 30 * Licensed to the Apache Software Foundation (ASF) under one 31 * or more contributor license agreements. See the NOTICE file 32 * distributed with this work for additional information 33 * regarding copyright ownership. The ASF licenses this file 34 * to you under the Apache License, Version 2.0 (the "License"); 35 * you may not use this file except in compliance with the License. 36 * You may obtain a copy of the License at 37 * 38 * http://www.apache.org/licenses/LICENSE-2.0 39 * 40 * Unless required by applicable law or agreed to in writing, software 41 * distributed under the License is distributed on an "AS IS" BASIS, 42 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 43 * See the License for the specific language governing permissions and 44 * limitations under the License. 45 --> 46 47</xsl:stylesheet> 48