File: buscaPar.xsl

package info (click to toggle)
apertium-br-fr 0.5.0~r61325-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 14,364 kB
  • sloc: xml: 275; sh: 148; makefile: 103
file content (41 lines) | stat: -rw-r--r-- 1,281 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8" indent="no"/>

<xsl:template match="/">
  <xsl:text disable-output-escaping="yes"><![CDATA[
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                              xmlns:data="http://www.apertium.org">
	<xsl:import href="principal.xsl"/>
	<data:paradigms>
]]> </xsl:text>

  <xsl:apply-templates select="//par[@prm]">
	<!-- Show the sorted pairs of expansion -->
	<xsl:sort select='./@n' data-type='text' order='descending' />
  	  <xsl:sort select='./@prm' data-type='text' order='descending' />
  </xsl:apply-templates>

  <xsl:text disable-output-escaping="yes"><![CDATA[
	</data:paradigms>
  <xsl:variable name="paradigms" select="document('')/*/data:paradigms/*"/>
</xsl:stylesheet>
  ]]> </xsl:text>

</xsl:template>



<xsl:template match="par">
  <xsl:text disable-output-escaping="yes"><![CDATA[		<paradigm name="]]></xsl:text>
  <xsl:value-of select="@n"/> 
  <xsl:text disable-output-escaping="yes"><![CDATA[" prm="]]></xsl:text>
  <xsl:value-of select="@prm"/> 
  <xsl:text disable-output-escaping="yes"><![CDATA["/>
]]> </xsl:text>
</xsl:template>



</xsl:stylesheet>