xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1347840 - in /xalan/test/trunk/tests: conf-gold/ conf-gold/sort/ conf/sort/
Date Fri, 08 Jun 2012 00:12:10 GMT
Author: ggregory
Date: Fri Jun  8 00:12:10 2012
New Revision: 1347840

URL: http://svn.apache.org/viewvc?rev=1347840&view=rev
Log:
Test XALANJ-2546 xsl:sort lang attribute ignores parameter value, only hard-coding works.
Tests pass for TRAX but not for XSLTC. See *.param files for instructions on running the tests.

Added:
    xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-english.out
    xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-polish.out
    xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-russian.out
    xalan/test/trunk/tests/conf/sort/sort-alphabet-english.param
    xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xml   (with props)
    xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xsl   (with props)
    xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.param
    xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xml   (with props)
    xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xsl   (with props)
    xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.param
    xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xml   (with props)
    xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xsl   (with props)
Modified:
    xalan/test/trunk/tests/conf-gold/   (props changed)

Propchange: xalan/test/trunk/tests/conf-gold/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Jun  8 00:12:10 2012
@@ -0,0 +1 @@
+impincl-test

Added: xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-english.out
URL: http://svn.apache.org/viewvc/xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-english.out?rev=1347840&view=auto
==============================================================================
--- xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-english.out (added)
+++ xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-english.out Fri Jun  8 00:12:10 2012
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<root>
+<p>lang: en</p>
+<ul>
+<li>A</li>
+<li>C</li>
+<li>D</li>
+<li>E</li>
+<li>F</li>
+<li>G</li>
+<li>H</li>
+<li>I</li>
+<li>J</li>
+<li>K</li>
+<li>L</li>
+<li>M</li>
+<li>N</li>
+<li>O</li>
+<li>P</li>
+<li>Q</li>
+<li>R</li>
+<li>S</li>
+<li>T</li>
+<li>U</li>
+<li>V</li>
+<li>W</li>
+<li>X</li>
+<li>Y</li>
+<li>Z</li>
+</ul>
+</root>
\ No newline at end of file

Added: xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-polish.out
URL: http://svn.apache.org/viewvc/xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-polish.out?rev=1347840&view=auto
==============================================================================
--- xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-polish.out (added)
+++ xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-polish.out Fri Jun  8 00:12:10 2012
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<root>
+<p>lang: pl</p>
+<ul>
+<li>A</li>
+<li>Ą</li>
+<li>B</li>
+<li>C</li>
+<li>Ć</li>
+<li>D</li>
+<li>E</li>
+<li>Ę</li>
+<li>F</li>
+<li>G</li>
+<li>H</li>
+<li>I</li>
+<li>J</li>
+<li>K</li>
+<li>L</li>
+<li>Ł</li>
+<li>M</li>
+<li>N</li>
+<li>Ń</li>
+<li>O</li>
+<li>Ó</li>
+<li>P</li>
+<li>R</li>
+<li>S</li>
+<li>Ś</li>
+<li>T</li>
+<li>U</li>
+<li>W</li>
+<li>Y</li>
+<li>Z</li>
+<li>Ź</li>
+<li>Å»</li>
+</ul>
+</root>
\ No newline at end of file

Added: xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-russian.out
URL: http://svn.apache.org/viewvc/xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-russian.out?rev=1347840&view=auto
==============================================================================
--- xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-russian.out (added)
+++ xalan/test/trunk/tests/conf-gold/sort/sort-alphabet-russian.out Fri Jun  8 00:12:10 2012
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<root>
+<p>lang: ru</p>
+<ul>
+<li>А</li>
+<li>Б</li>
+<li>В</li>
+<li>Г</li>
+<li>Д</li>
+<li>Е</li>
+<li>Ё</li>
+<li>Ж</li>
+<li>З</li>
+<li>И</li>
+<li>Й</li>
+<li>К</li>
+<li>Л</li>
+<li>М</li>
+<li>Н</li>
+<li>О</li>
+<li>П</li>
+<li>Р</li>
+<li>С</li>
+<li>Т</li>
+<li>У</li>
+<li>Ф</li>
+<li>Ð¥</li>
+<li>Ц</li>
+<li>Ч</li>
+<li>Ш</li>
+<li>Щ</li>
+<li>Ъ</li>
+<li>Ы</li>
+<li>Ь</li>
+<li>Э</li>
+<li>Ю</li>
+<li>Я</li>
+</ul>
+</root>
\ No newline at end of file

Added: xalan/test/trunk/tests/conf/sort/sort-alphabet-english.param
URL: http://svn.apache.org/viewvc/xalan/test/trunk/tests/conf/sort/sort-alphabet-english.param?rev=1347840&view=auto
==============================================================================
--- xalan/test/trunk/tests/conf/sort/sort-alphabet-english.param (added)
+++ xalan/test/trunk/tests/conf/sort/sort-alphabet-english.param Fri Jun  8 00:12:10 2012
@@ -0,0 +1,24 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+# 
+#      http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# XALANJ-2546 xsl:sort lang attribute ignores parameter value, only hard-coding works.
+# Run org.apache.qetest.xsl.StylesheetTestletDriver -goldDir tests/conf-gold -param.lang
en 
+# Run org.apache.qetest.xsl.StylesheetTestletDriver -goldDir tests/conf-gold -param.lang
en -flavor xsltc
+# Make sure you have the "output" directory on the classpath.
+# $Id: $
+
+lang=en
\ No newline at end of file

Added: xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xml
URL: http://svn.apache.org/viewvc/xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xml?rev=1347840&view=auto
==============================================================================
--- xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xml (added)
+++ xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xml Fri Jun  8 00:12:10 2012
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+  <!--
+   * Licensed to the Apache Software Foundation (ASF) under one
+   * or more contributor license agreements. See the NOTICE file
+   * distributed with this work for additional information
+   * regarding copyright ownership. The ASF licenses this file
+   * to you under the Apache License, Version 2.0 (the  "License");
+   * you may not use this file except in compliance with the License.
+   * You may obtain a copy of the License at
+   *
+   *     http://www.apache.org/licenses/LICENSE-2.0
+   *
+   * Unless required by applicable law or agreed to in writing, software
+   * distributed under the License is distributed on an "AS IS" BASIS,
+   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   * See the License for the specific language governing permissions and
+   * limitations under the License.
+  -->
+<alphabet language="en">
+  <character>A</character>
+  <character>E</character>
+  <character>C</character>
+  <character>D</character>
+  <character>F</character>
+  <character>G</character>
+  <character>H</character>
+  <character>I</character>
+  <character>J</character>
+  <character>K</character>
+  <character>L</character>
+  <character>M</character>
+  <character>N</character>
+  <character>Y</character>
+  <character>O</character>
+  <character>P</character>
+  <character>Q</character>
+  <character>U</character>
+  <character>R</character>
+  <character>S</character>
+  <character>V</character>
+  <character>W</character>
+  <character>T</character>
+  <character>X</character>
+  <character>Z</character>
+</alphabet>

Propchange: xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xsl
URL: http://svn.apache.org/viewvc/xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xsl?rev=1347840&view=auto
==============================================================================
--- xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xsl (added)
+++ xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xsl Fri Jun  8 00:12:10 2012
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+  <!--
+   * Licensed to the Apache Software Foundation (ASF) under one
+   * or more contributor license agreements. See the NOTICE file
+   * distributed with this work for additional information
+   * regarding copyright ownership. The ASF licenses this file
+   * to you under the Apache License, Version 2.0 (the  "License");
+   * you may not use this file except in compliance with the License.
+   * You may obtain a copy of the License at
+   *
+   *     http://www.apache.org/licenses/LICENSE-2.0
+   *
+   * Unless required by applicable law or agreed to in writing, software
+   * distributed under the License is distributed on an "AS IS" BASIS,
+   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   * See the License for the specific language governing permissions and
+   * limitations under the License.
+  -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:output method="xml" version="1.0" omit-xml-declaration="no" encoding="UTF-8" indent="yes"
xml:space="preserve" />
+  <!-- <xsl:output method="html" doctype-system="http://www.w3.org/TR/html4/strict.dtd"
doctype-public="-//W3C//DTD HTML 
+    4.01//EN" version="4.0" encoding="UTF-8" indent="yes" xml:lang="$lang" omit-xml-declaration="no"/>
-->
+  <xsl:param name="lang" />
+  <xsl:template match="alphabet">
+    <root>
+      <p>lang: <xsl:value-of select="$lang" /></p>
+      <ul>
+        <xsl:apply-templates select="character">
+          <xsl:sort select="." lang="{$lang}" order="ascending" />
+        </xsl:apply-templates>
+      </ul>
+    </root>
+  </xsl:template>
+  <xsl:template match="character">
+    <li>
+      <xsl:value-of select="text()" />
+    </li>
+  </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file

Propchange: xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xalan/test/trunk/tests/conf/sort/sort-alphabet-english.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.param
URL: http://svn.apache.org/viewvc/xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.param?rev=1347840&view=auto
==============================================================================
--- xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.param (added)
+++ xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.param Fri Jun  8 00:12:10 2012
@@ -0,0 +1,24 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+# 
+#      http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# XALANJ-2546 xsl:sort lang attribute ignores parameter value, only hard-coding works.
+# Run org.apache.qetest.xsl.StylesheetTestletDriver -goldDir tests/conf-gold -param.lang
pl 
+# Run org.apache.qetest.xsl.StylesheetTestletDriver -goldDir tests/conf-gold -param.lang
pl -flavor xsltc
+# Make sure you have the "output" directory on the classpath.
+# $Id: $
+
+lang=pl
\ No newline at end of file

Added: xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xml
URL: http://svn.apache.org/viewvc/xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xml?rev=1347840&view=auto
==============================================================================
--- xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xml (added)
+++ xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xml Fri Jun  8 00:12:10 2012
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+  <!--
+   * Licensed to the Apache Software Foundation (ASF) under one
+   * or more contributor license agreements. See the NOTICE file
+   * distributed with this work for additional information
+   * regarding copyright ownership. The ASF licenses this file
+   * to you under the Apache License, Version 2.0 (the  "License");
+   * you may not use this file except in compliance with the License.
+   * You may obtain a copy of the License at
+   *
+   *     http://www.apache.org/licenses/LICENSE-2.0
+   *
+   * Unless required by applicable law or agreed to in writing, software
+   * distributed under the License is distributed on an "AS IS" BASIS,
+   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   * See the License for the specific language governing permissions and
+   * limitations under the License.
+  -->
+<alphabet language="pl">
+  <character>A</character>
+  <character>Å»</character>
+  <character>B</character>
+  <character>C</character>
+  <character>Ć</character>
+  <character>D</character>
+  <character>Ł</character>
+  <character>E</character>
+  <character>Ę</character>
+  <character>F</character>
+  <character>G</character>
+  <character>H</character>
+  <character>I</character>
+  <character>J</character>
+  <character>K</character>
+  <character>L</character>
+  <character>Z</character>
+  <character>Ź</character>
+  <character>M</character>
+  <character>N</character>
+  <character>Ń</character>
+  <character>O</character>
+  <character>Ó</character>
+  <character>P</character>
+  <character>R</character>
+  <character>S</character>
+  <character>Ś</character>
+  <character>T</character>
+  <character>U</character>
+  <character>W</character>
+  <character>Ą</character>
+  <character>Y</character>
+</alphabet>
\ No newline at end of file

Propchange: xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xsl
URL: http://svn.apache.org/viewvc/xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xsl?rev=1347840&view=auto
==============================================================================
--- xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xsl (added)
+++ xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xsl Fri Jun  8 00:12:10 2012
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+  <!--
+   * Licensed to the Apache Software Foundation (ASF) under one
+   * or more contributor license agreements. See the NOTICE file
+   * distributed with this work for additional information
+   * regarding copyright ownership. The ASF licenses this file
+   * to you under the Apache License, Version 2.0 (the  "License");
+   * you may not use this file except in compliance with the License.
+   * You may obtain a copy of the License at
+   *
+   *     http://www.apache.org/licenses/LICENSE-2.0
+   *
+   * Unless required by applicable law or agreed to in writing, software
+   * distributed under the License is distributed on an "AS IS" BASIS,
+   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   * See the License for the specific language governing permissions and
+   * limitations under the License.
+  -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:output method="xml" version="1.0" omit-xml-declaration="no" encoding="UTF-8" indent="yes"
xml:space="preserve" />
+  <!-- <xsl:output method="html" doctype-system="http://www.w3.org/TR/html4/strict.dtd"
doctype-public="-//W3C//DTD HTML 
+    4.01//EN" version="4.0" encoding="UTF-8" indent="yes" xml:lang="$lang" omit-xml-declaration="no"/>
-->
+  <xsl:param name="lang" />
+  <xsl:template match="alphabet">
+    <root>
+      <p>lang: <xsl:value-of select="$lang" /></p>
+      <ul>
+        <xsl:apply-templates select="character">
+          <xsl:sort select="." lang="{$lang}" order="ascending" />
+        </xsl:apply-templates>
+      </ul>
+    </root>
+  </xsl:template>
+  <xsl:template match="character">
+    <li>
+      <xsl:value-of select="text()" />
+    </li>
+  </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file

Propchange: xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xalan/test/trunk/tests/conf/sort/sort-alphabet-polish.xsl
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.param
URL: http://svn.apache.org/viewvc/xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.param?rev=1347840&view=auto
==============================================================================
--- xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.param (added)
+++ xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.param Fri Jun  8 00:12:10 2012
@@ -0,0 +1,24 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+# 
+#      http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# XALANJ-2546 xsl:sort lang attribute ignores parameter value, only hard-coding works.
+# Run org.apache.qetest.xsl.StylesheetTestletDriver -goldDir tests/conf-gold -param.lang
ru 
+# Run org.apache.qetest.xsl.StylesheetTestletDriver -goldDir tests/conf-gold -param.lang
ru -flavor xsltc
+# Make sure you have the "output" directory on the classpath.
+# $Id: $
+
+lang=ru
\ No newline at end of file

Added: xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xml
URL: http://svn.apache.org/viewvc/xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xml?rev=1347840&view=auto
==============================================================================
--- xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xml (added)
+++ xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xml Fri Jun  8 00:12:10 2012
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+  <!--
+   * Licensed to the Apache Software Foundation (ASF) under one
+   * or more contributor license agreements. See the NOTICE file
+   * distributed with this work for additional information
+   * regarding copyright ownership. The ASF licenses this file
+   * to you under the Apache License, Version 2.0 (the  "License");
+   * you may not use this file except in compliance with the License.
+   * You may obtain a copy of the License at
+   *
+   *     http://www.apache.org/licenses/LICENSE-2.0
+   *
+   * Unless required by applicable law or agreed to in writing, software
+   * distributed under the License is distributed on an "AS IS" BASIS,
+   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   * See the License for the specific language governing permissions and
+   * limitations under the License.
+  -->
+<alphabet language="ru">
+  <character>А</character>
+  <character>Б</character>
+  <character>В</character>
+  <character>Г</character>
+  <character>Д</character>
+  <character>Е</character>
+  <character>Ё</character>
+  <character>Ж</character>
+  <character>З</character>
+  <character>Й</character>
+  <character>П</character>
+  <character>Я</character>
+  <character>К</character>
+  <character>Л</character>
+  <character>С</character>
+  <character>М</character>
+  <character>Н</character>
+  <character>О</character>
+  <character>Р</character>
+  <character>И</character>
+  <character>Т</character>
+  <character>Ф</character>
+  <character>Ð¥</character>
+  <character>Ц</character>
+  <character>У</character>
+  <character>Ш</character>
+  <character>Щ</character>
+  <character>Ъ</character>
+  <character>Ы</character>
+  <character>Ч</character>
+  <character>Ь</character>
+  <character>Э</character>
+  <character>Ю</character>
+</alphabet>

Propchange: xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xsl
URL: http://svn.apache.org/viewvc/xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xsl?rev=1347840&view=auto
==============================================================================
--- xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xsl (added)
+++ xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xsl Fri Jun  8 00:12:10 2012
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+  <!--
+   * Licensed to the Apache Software Foundation (ASF) under one
+   * or more contributor license agreements. See the NOTICE file
+   * distributed with this work for additional information
+   * regarding copyright ownership. The ASF licenses this file
+   * to you under the Apache License, Version 2.0 (the  "License");
+   * you may not use this file except in compliance with the License.
+   * You may obtain a copy of the License at
+   *
+   *     http://www.apache.org/licenses/LICENSE-2.0
+   *
+   * Unless required by applicable law or agreed to in writing, software
+   * distributed under the License is distributed on an "AS IS" BASIS,
+   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   * See the License for the specific language governing permissions and
+   * limitations under the License.
+  -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:output method="xml" version="1.0" omit-xml-declaration="no" encoding="UTF-8" indent="yes"
xml:space="preserve" />
+  <!-- <xsl:output method="html" doctype-system="http://www.w3.org/TR/html4/strict.dtd"
doctype-public="-//W3C//DTD HTML 
+    4.01//EN" version="4.0" encoding="UTF-8" indent="yes" xml:lang="$lang" omit-xml-declaration="no"/>
-->
+  <xsl:param name="lang" />
+  <xsl:template match="alphabet">
+    <root>
+      <p>lang: <xsl:value-of select="$lang" /></p>
+      <ul>
+        <xsl:apply-templates select="character">
+          <xsl:sort select="." lang="{$lang}" order="ascending" />
+        </xsl:apply-templates>
+      </ul>
+    </root>
+  </xsl:template>
+  <xsl:template match="character">
+    <li>
+      <xsl:value-of select="text()" />
+    </li>
+  </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file

Propchange: xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xalan/test/trunk/tests/conf/sort/sort-alphabet-russian.xsl
------------------------------------------------------------------------------
    svn:keywords = Id



---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message