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