source: main/trunk/greenstone3/web/interfaces/default_new/transform/pages/rss.xsl@ 29852

Last change on this file since 29852 was 29852, checked in by Georgiy Litvinov, 9 years ago

Ckeditor integration commit

File size: 1.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xsl">
3 <!-- exclude-result-prefixes="#default">-->
4
5 <!-- Adding the xml processing instruction, see http://www.xml.com/lpt/a/1027 -->
6 <xsl:output method="xml" version="1.0" encoding="utf-8"/>
7
8 <!-- set page title -->
9 <xsl:template name="pageTitle">RSS feed</xsl:template>
10
11 <!-- select only the rss child of /page/pageResponse and then copy all its attributes and
12 descendant elements and their attributes too into the output
13 http://stackoverflow.com/questions/1141216/xsl-copy-the-entire-xml-except-a-parent-node-but-keep-its-child-node
14 http://stackoverflow.com/questions/5378610/copy-xml-document-with-all-elements-except-a-black-list-of-elements
15 http://stackoverflow.com/questions/5876382/using-xslt-to-copy-all-nodes-in-xml
16
17 To do a straightforward copy of input into output:
18 <xsl:template match="/">
19 <xsl:copy-of select="." />
20 </xsl:template>
21 -->
22
23 <xsl:template match="/page">
24 <xsl:apply-templates select="pageResponse/rss"/>
25 </xsl:template>
26
27 <!--Identity template, copies all content of matching template(s) into the output -->
28 <xsl:template match="@* | node()">
29 <xsl:copy>
30 <xsl:apply-templates select="@* | node()"/>
31 </xsl:copy>
32 </xsl:template>
33
34</xsl:stylesheet>
35
Note: See TracBrowser for help on using the repository browser.