1<?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 --> 19<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 20 <xsl:output method="xml" version="1.0" omit-xml-declaration="no" encoding="UTF-8" indent="yes" xml:space="preserve" /> 21 <!-- <xsl:output method="html" doctype-system="http://www.w3.org/TR/html4/strict.dtd" doctype-public="-//W3C//DTD HTML 22 4.01//EN" version="4.0" encoding="UTF-8" indent="yes" xml:lang="$lang" omit-xml-declaration="no"/> --> 23 <xsl:param name="lang" /> 24 <xsl:template match="alphabet"> 25 <root> 26 <p>lang: <xsl:value-of select="$lang" /></p> 27 <ul> 28 <xsl:apply-templates select="character"> 29 <xsl:sort select="." lang="{$lang}" order="ascending" /> 30 </xsl:apply-templates> 31 </ul> 32 </root> 33 </xsl:template> 34 <xsl:template match="character"> 35 <li> 36 <xsl:value-of select="text()" /> 37 </li> 38 </xsl:template> 39</xsl:stylesheet>