aboutsummaryrefslogtreecommitdiff
path: root/t/test-site/src/common/fillFeed.xsl
blob: 79c7b57eeda780d83a04c28c3c92614bd13949e1 (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform"
              xmlns:wc="http://webcoso.thenautilus.net/"
              exclude-result-prefixes="wc"
              version="1.0">
 
 <x:import href="du2html.xsl"/>
 
 <x:param name="language" select="'en'"/>
 <x:param name="path"/>
 <x:param name="filename"/>
 
 <x:output method="xml" encoding="utf-8" doctype-public=""/>
 
 <x:template match="/document" priority="10">
  <x:apply-imports/>
 </x:template>
 
 <x:template match="*">
  <x:copy>
   <x:apply-templates select="@*"/>
   <x:apply-templates select="*|text()"/>
  </x:copy>
 </x:template>
 
 <x:template match="@*">
  <x:copy/>
 </x:template>
 
 <x:template match="PH">
  <url><x:value-of select="."/></url>
  <title><x:value-of select="wc:title-for($language,$filename,.)"/></title>
  <!--
  <body>
   <x:apply-templates select="wc:document($language,$filename,.)/document"/>
  </body>
  -->
 </x:template>
 
</x:stylesheet>