Show
Ignore:
Timestamp:
07/06/12 17:04:13 (12 years ago)
Author:
František Kučera <franta-hg@…>
Branch:
default
Tags:
v0.4
Message:

#20 Skriptování: firma – pády (parametrizace makra)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vstup/makra/firma.xsl

    r113 r114  
    1313 
    1414        <!-- Vypíše název naší firmy: --> 
    15         <xsl:template match="m:firma"> 
    16                 <xsl:text>Chovatelská stanice a.s.</xsl:text> 
    17         </xsl:template> 
     15        <xsl:template match="m:firma">Chovatelská stanice a.s.</xsl:template> 
     16        <xsl:template match="m:firma[@pád=1]">Chovatelská stanice a.s.</xsl:template>           <!-- nominativ --> 
     17        <xsl:template match="m:firma[@pád=2]">Chovatelské stanice a.s.</xsl:template>           <!-- genitiv --> 
     18        <xsl:template match="m:firma[@pád=3]">Chovatelské stanici a.s.</xsl:template>           <!-- dativ --> 
     19        <xsl:template match="m:firma[@pád=4]">Chovatelskou stanici a.s.</xsl:template>  <!-- akuzativ --> 
     20        <xsl:template match="m:firma[@pád=5]">Chovatelská stanice a.s.</xsl:template>           <!-- vokativ --> 
     21        <xsl:template match="m:firma[@pád=6]">Chovatelské stanice a.s.</xsl:template>           <!-- lokál --> 
     22        <xsl:template match="m:firma[@pád=7]">Chovatelskou stanicí a.s.</xsl:template>  <!-- instrumentál --> 
    1823 
    1924</xsl:stylesheet> 
     25