Show
Ignore:
Timestamp:
04/30/11 19:34:55 (13 years ago)
Author:
František Kučera <franta-hg@…>
Branch:
default
Message:

Nové jmenné prostory: „s“ a „k“ místo „g“.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • šablona/atom.xsl

    r15 r18  
    22<xsl:stylesheet version="2.0" 
    33        xmlns="http://www.w3.org/2005/Atom" 
    4         xmlns:g="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/prostor" 
     4        xmlns:s="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana" 
     5        xmlns:k="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/konfigurace" 
    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         exclude-result-prefixes="fn g j"> 
     9        exclude-result-prefixes="fn s k j"> 
    910        <xsl:output     method="xml" indent="yes" encoding="UTF-8"/> 
    1011         
     
    1516         
    1617                <feed> 
    17                         <title><xsl:value-of select="g:web/g:název"/></title> 
    18                         <subtitle><xsl:value-of select="g:web/g:podtitul"/></subtitle> 
    19                         <link rel="self" href="{concat(g:web/g:url, 'atom.xml')}"/> 
    20                         <link href="{g:web/g:url}"/>                     
     18                        <title><xsl:value-of select="k:web/k:název"/></title> 
     19                        <subtitle><xsl:value-of select="k:web/k:podtitul"/></subtitle> 
     20                        <link rel="self" href="{concat(k:web/k:url, 'atom.xml')}"/> 
     21                        <link href="{k:web/k:url}"/>                     
    2122                        <updated><xsl:value-of select="current-dateTime()"/></updated>                   
    2223                        <author> 
    23                                 <name><xsl:value-of select="g:web/g:autor/g:jméno"/></name> 
    24                                 <email><xsl:value-of select="g:web/g:autor/g:email"/></email> 
     24                                <name><xsl:value-of select="k:web/k:autor/k:jméno"/></name> 
     25                                <email><xsl:value-of select="k:web/k:autor/k:email"/></email> 
    2526                        </author> 
    26                         <id><xsl:value-of select="concat('urn:uuid:', g:web/g:uuid)"/></id> 
     27                        <id><xsl:value-of select="concat('urn:uuid:', k:web/k:uuid)"/></id> 
    2728                         
    2829                        <xsl:variable name="konfigurace" select="/"/> 
    29                         <xsl:for-each select="collection(concat('../vstup/?select=*', $vstupníPřípona))[empty(g:stránka/g:skrytá) or not(g:stránka/g:skrytá)]"> 
     30                        <xsl:for-each select="collection(concat('../vstup/?select=*', $vstupníPřípona))[empty(s:stránka/s:skrytá) or not(s:stránka/s:skrytá)]"> 
    3031                                <entry> 
    31                                         <title><xsl:value-of select="g:stránka/g:nadpis"/></title> 
     32                                        <title><xsl:value-of select="s:stránka/s:nadpis"/></title> 
    3233                                        <xsl:variable name="soubor" select="replace(tokenize(document-uri(.), '/')[last()], $vstupníPřípona, '')"/> 
    33                                         <link href="{concat($konfigurace/g:web/g:url, encode-for-uri($soubor), $výstupníPřípona)}" /> 
    34                                         <id><xsl:value-of select="concat('urn:', $konfigurace/g:web/g:kod ,':strana:', encode-for-uri($soubor))"/></id> 
    35                                         <!--2010-10-09T20:51:04Z--> 
     34                                        <link href="{concat($konfigurace/k:web/k:url, encode-for-uri($soubor), $výstupníPřípona)}" /> 
     35                                        <id><xsl:value-of select="concat('urn:', $konfigurace/k:web/k:kod ,':strana:', encode-for-uri($soubor))"/></id>                                  
    3636                                        <updated><xsl:value-of select="j:posledníZměna(document-uri(.))"/></updated> 
    37                                         <summary><xsl:value-of select="g:stránka/g:perex"/></summary> 
     37                                        <summary><xsl:value-of select="s:stránka/s:perex"/></summary> 
    3838                                </entry> 
    3939                        </xsl:for-each>