aboutsummaryrefslogtreecommitdiff
path: root/t/test-site/src/common/fillFeed.xsl
blob: 5ba0d76aadd09e68acabb7d304112d31805c97e4 (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
<?xml version="1.0" encoding="utf-8"?>
<x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform"
              xmlns:wc="http://webcoso.thenautilus.net/"
              xmlns:f="http://webcoso.thenautilus.net/feeds"
              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="f:*">
  <x:copy>
   <x:apply-templates select="@*"/>
   <x:apply-templates select="*|text()"/>
  </x:copy>
 </x:template>
 
 <x:template match="@f:*">
  <x:copy/>
 </x:template>
 
 <x:template match="f:PH">
  <f:url><x:value-of select="."/></f:url>
  <f:title><x:value-of select="wc:title-for($language,$filename,.)"/></f:title>
  <f:body>
   <x:apply-templates select="wc:document($language,$filename,.)/document"/>
  </f:body>
 </x:template>
 
</x:stylesheet>