Commit
[apertium.git] / apertium-oc-es / buscaPar.xsl
blob30b63cd30187eac72ca156669c7a95238256fbfe
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"/>
11 <data:paradigms>
12 ]]> </xsl:text>
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>
20 <xsl:text disable-output-escaping="yes"><![CDATA[
21 </data:paradigms>
22 <xsl:variable name="paradigms" select="document('')/*/data:paradigms/*"/>
23 </xsl:stylesheet>
24 ]]> </xsl:text>
26 </xsl:template>
30 <xsl:template match="par">
31 <xsl:text disable-output-escaping="yes"><![CDATA[ <paradigm name="]]></xsl:text>
32 <xsl:value-of select="@n"/>
33 <xsl:text disable-output-escaping="yes"><![CDATA[" prm="]]></xsl:text>
34 <xsl:value-of select="@prm"/>
35 <xsl:text disable-output-escaping="yes"><![CDATA["/>
36 ]]> </xsl:text>
37 </xsl:template>
41 </xsl:stylesheet>