1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 <xsl:stylesheet version=
"1.0" xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform">
4 <xsl:output method=
"xml" encoding=
"UTF-8" indent=
"no"/>
6 <xsl:template match=
"/">
7 <xsl:text disable-output-escaping=
"yes"><![CDATA[
8 <xsl:stylesheet version=
"1.0" xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
9 xmlns:
data=
"http://www.apertium.org">
10 <xsl:import href=
"principal.xsl"/>
14 <xsl:apply-templates select=
"//par[@prm]">
15 <!-- Show the sorted pairs of expansion -->
16 <xsl:sort select='./@n' data-type='text' order='descending'
/>
17 <xsl:sort select='./@prm' data-type='text' order='descending'
/>
18 </xsl:apply-templates>
19 <xsl:apply-templates select=
"//par[@sa]">
20 <!-- Show the sorted pairs of expansion -->
21 <xsl:sort select='./@n' data-type='text' order='descending'
/>
22 <xsl:sort select='./@sa' data-type='text' order='descending'
/>
23 </xsl:apply-templates>
25 <xsl:text disable-output-escaping=
"yes"><![CDATA[
27 <xsl:variable name=
"paradigms" select=
"document('')/*/data:paradigms/*"/>
35 <!-- type is "text" to insert a simple text and is "tag" to insert a xml tag -->
36 <xsl:template match=
"par[@prm]">
37 <xsl:text disable-output-escaping=
"yes"><![CDATA[
<paradigm name=
"]]></xsl:text>
38 <xsl:value-of select="@n
"/>
39 <xsl:text disable-output-escaping="yes
"><![CDATA[" prm=
"]]></xsl:text>
40 <xsl:value-of select="@prm
"/>
41 <xsl:text disable-output-escaping="yes
"><![CDATA[" type=
"text"/>
44 <xsl:template match=
"par[@sa]">
45 <xsl:text disable-output-escaping=
"yes"><![CDATA[
<paradigm name=
"]]></xsl:text>
46 <xsl:value-of select="@n
"/>
47 <xsl:text disable-output-escaping="yes
"><![CDATA[" prm=
"]]></xsl:text>
48 <xsl:value-of select="@sa
"/>
49 <xsl:text disable-output-escaping="yes
"><![CDATA[" type=
"tag"/>