Removing +x bit on two dices
[apertium.git] / apertium-en-ca / buscaPar.xsl
blob02e8b4ebc1c92e318f4fd70bf12bb02597e1867d
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>
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[
26 </data:paradigms>
27 <xsl:variable name="paradigms" select="document('')/*/data:paradigms/*"/>
28 </xsl:stylesheet>
29 ]]> </xsl:text>
31 </xsl:template>
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"/>
42 ]]> </xsl:text>
43 </xsl:template>
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"/>
50 ]]> </xsl:text>
51 </xsl:template>
55 </xsl:stylesheet>