OpenGreekAndLatin / cts_leipzig_ui

Perseus Nemo UI Plugin
GNU General Public License v3.0
0 stars 1 forks source link

Update XSL for Hebrew and Coptic lit #11

Open sonofmun opened 7 years ago

sonofmun commented 7 years ago

For Hebrew:

<xsl:template match="t:div[@type = 'edition']">
       <div id="edition">
           <xsl:attribute name="class">
               <xsl:text>edition lang_</xsl:text>
               <xsl:value-of select="@xml:lang"/>
           </xsl:attribute>
           <xsl:attribute name="data-lang"><xsl:value-of select="./@xml:lang"/></xsl:attribute>
           <xsl:apply-templates/>
       </div>
   </xsl:template>

   <xsl:template match="t:w">
       <xsl:element name="span">
           <xsl:attribute name="class">w</xsl:attribute>
           <xsl:apply-templates/>
       </xsl:element>
   </xsl:template>