Changeset 9:71275159d985

Show
Ignore:
Timestamp:
04/03/11 18:44:35 (13 years ago)
Author:
František Kučera <franta-hg@…>
Branch:
default
Message:

Sitemap.xml agregace, vyřešeno #2

Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • build.xml

    r8 r9  
    2222         
    2323        <target name="agregace" description="Vytvoří agregované výstupy: RSS, Atom, Sitemap.xml"> 
     24                <!-- TODO: sloučit, zjednodušit, parametrizovat --> 
     25         
    2426                <!-- Atom --> 
    2527                <xslt in="${vstup}/web.conf" out="${výstup}/atom.xml" style="${šablona}/atom.xsl"> 
    2628                        <classpath location="/usr/share/java/saxonb-9.0.jar"/> 
    27                         <classpath location="${funkce}"/>                        
     29                        <classpath location="${funkce}"/> 
    2830                        <factory name="net.sf.saxon.TransformerFactoryImpl"> 
    2931                                <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>                            
     
    3436                <xslt in="${výstup}/atom.xml" out="${výstup}/rss.xml" style="${šablona}/rss.xsl">                        
    3537                        <classpath location="/usr/share/java/saxonb-9.0.jar"/> 
    36                         <classpath location="${funkce}"/>                        
     38                        <classpath location="${funkce}"/> 
    3739                        <factory name="net.sf.saxon.TransformerFactoryImpl"> 
    3840                                <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>                            
     
    4143                 
    4244                <!-- 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> 
    4352                 
    4453        </target> 
  • šablona/rss.xsl

    r8 r9  
    22<xsl:stylesheet version="2.0" 
    33        xmlns:a="http://www.w3.org/2005/Atom" 
     4        xmlns:atom="http://www.w3.org/2005/Atom" 
    45        xmlns:g="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/prostor" 
    56        xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce" 
    67        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    78        xmlns:fn="http://www.w3.org/2005/xpath-functions" 
    8         xmlns:atom="http://www.w3.org/2005/Atom" 
    99        exclude-result-prefixes="fn g j a"> 
    1010        <xsl:output     method="xml" indent="yes" encoding="UTF-8"/>