poetry_print.xsl
branchstyles
changeset 3 6e7e05c2ded6
parent 0 08de8d15f932
child 4 301b54644bfa
equal deleted inserted replaced
2:f8261635ebe0 3:6e7e05c2ded6
   143   </block>
   143   </block>
   144 </xsl:template>
   144 </xsl:template>
   145 
   145 
   146 <xsl:template match="poem">
   146 <xsl:template match="poem">
   147   <block xsl:use-attribute-sets="standard-block">
   147   <block xsl:use-attribute-sets="standard-block">
       
   148     <xsl:attribute name="id">
       
   149       <xsl:value-of select="../@id"/>
       
   150     </xsl:attribute>
   148     <xsl:apply-templates/>
   151     <xsl:apply-templates/>
   149   </block>
   152   </block>
   150 </xsl:template>
   153 </xsl:template>
   151 
   154 
   152 <xsl:template match="strophe">
   155 <xsl:template match="strophe">
   172 </xsl:template>
   175 </xsl:template>
   173 <xsl:template match="cue/para">
   176 <xsl:template match="cue/para">
   174   <xsl:apply-templates/>
   177   <xsl:apply-templates/>
   175 </xsl:template>
   178 </xsl:template>
   176 
   179 
       
   180 <xsl:template match="poetry" mode="xref">
       
   181   <xsl:variable name="href">
       
   182     <xsl:call-template name="get-id"/>
       
   183   </xsl:variable>
       
   184   <basic-link internal-destination="{$href}">
       
   185     <xsl:value-of select="docinfo/title"/>
       
   186     (<page-number-citation ref-id="{$href}"/>)
       
   187   </basic-link>
       
   188 </xsl:template>
       
   189 
       
   190 <xsl:template match="xref">
       
   191   <xsl:variable name="linkend" select="@linkend"/>
       
   192   <xsl:apply-templates mode="xref" select="//*[@id=$linkend]"/>
       
   193 </xsl:template>
       
   194 
   177 </xsl:stylesheet>
   195 </xsl:stylesheet>
   178 
   196 
   179 <!-- Keep this comment at the end of the file
       
   180 Local variables:
       
   181 mode: xml
       
   182 sgml-omittag:nil
       
   183 sgml-shorttag:nil
       
   184 sgml-namecase-general:nil
       
   185 sgml-general-insert-case:lower
       
   186 sgml-minimize-attributes:nil
       
   187 sgml-always-quote-attributes:t
       
   188 sgml-indent-step:2
       
   189 sgml-indent-data:nil
       
   190 sgml-parent-document:nil
       
   191 sgml-exposed-tags:nil
       
   192 sgml-local-catalogs:nil
       
   193 sgml-local-ecat-files:nil
       
   194 outline-regexp:"<xsl:"
       
   195 End:
       
   196 -->