Changeset 9:71275159d985
- Timestamp:
- 04/03/11 18:44:35 (14 years ago)
- Branch:
- default
- Files:
-
- 1 added
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
build.xml
r8 r9 22 22 23 23 <target name="agregace" description="Vytvoří agregované výstupy: RSS, Atom, Sitemap.xml"> 24 <!-- TODO: sloučit, zjednodušit, parametrizovat --> 25 24 26 <!-- Atom --> 25 27 <xslt in="${vstup}/web.conf" out="${výstup}/atom.xml" style="${šablona}/atom.xsl"> 26 28 <classpath location="/usr/share/java/saxonb-9.0.jar"/> 27 <classpath location="${funkce}"/> 29 <classpath location="${funkce}"/> 28 30 <factory name="net.sf.saxon.TransformerFactoryImpl"> 29 31 <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/> … … 34 36 <xslt in="${výstup}/atom.xml" out="${výstup}/rss.xml" style="${šablona}/rss.xsl"> 35 37 <classpath location="/usr/share/java/saxonb-9.0.jar"/> 36 <classpath location="${funkce}"/> 38 <classpath location="${funkce}"/> 37 39 <factory name="net.sf.saxon.TransformerFactoryImpl"> 38 40 <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/> … … 41 43 42 44 <!-- TODO: Sitemap.xml --> 45 <xslt in="${výstup}/atom.xml" out="${výstup}/sitemap.xml" style="${šablona}/sitemap.xsl"> 46 <classpath location="/usr/share/java/saxonb-9.0.jar"/> 47 <classpath location="${funkce}"/> 48 <factory name="net.sf.saxon.TransformerFactoryImpl"> 49 <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/> 50 </factory> 51 </xslt> 43 52 44 53 </target> -
šablona/rss.xsl
r8 r9 2 2 <xsl:stylesheet version="2.0" 3 3 xmlns:a="http://www.w3.org/2005/Atom" 4 xmlns:atom="http://www.w3.org/2005/Atom" 4 5 xmlns:g="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/prostor" 5 6 xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce" 6 7 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 7 8 xmlns:fn="http://www.w3.org/2005/xpath-functions" 8 xmlns:atom="http://www.w3.org/2005/Atom"9 9 exclude-result-prefixes="fn g j a"> 10 10 <xsl:output method="xml" indent="yes" encoding="UTF-8"/>