aboutsummaryrefslogtreecommitdiff
path: root/source/01_raw/blog_feed.xsl
blob: 4543fc9621b2735e9e514f84602c7235e5970f38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:InputXSLT="function.inputxslt.application"
	exclude-result-prefixes="InputXSLT"
>

<xsl:include href="[utility/datasource.xsl]"/>
<xsl:include href="[utility/remove_namespace.xsl]"/>

<xsl:variable name="meta">
	<datasource type="main"    mode="full" source="00_content/blog_feed.xml" target="feed"/>
	<datasource type="support" mode="full" source="00_content/meta.xml" target="meta"/>
	<target     mode="plain" value="blog_feed.xml"/>
</xsl:variable>

<xsl:template match="feed">
	<xsl:apply-templates mode="remove_namespace" select="entry[position() &lt;= $root/meta/limits/articles]"/>
</xsl:template>

</xsl:stylesheet>