Skip to content

Commit

Permalink
grouped apparatus entries
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Mar 17, 2016
1 parent e19a9c7 commit beab856
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 2 additions & 0 deletions catalogues/dictionary_de.xml
Original file line number Diff line number Diff line change
Expand Up @@ -426,4 +426,6 @@
<entry xml:id="docSource">Datenherkunft</entry>
<entry xml:id="infoFromGND">Angaben aus der GND</entry>
<entry xml:id="sampleNotation">Notenbeispiel</entry>
<entry xml:id="textConstitution">Textkonstitution</entry>
<entry xml:id="commentary">Einzelstellenerläuterung</entry>
</dictionary>
2 changes: 2 additions & 0 deletions catalogues/dictionary_en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -397,4 +397,6 @@
<entry xml:id="docSource">Origin of data</entry>
<entry xml:id="infoFromGND">Details from the GND</entry>
<entry xml:id="sampleNotation">Sample Notation</entry>
<entry xml:id="textConstitution">Text Constitution</entry>
<entry xml:id="commentary">Commentary</entry>
</dictionary>
23 changes: 22 additions & 1 deletion xsl/apparatus.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,28 @@
<xsl:template name="createApparatus">
<xsl:element name="div">
<xsl:attribute name="class">apparatus</xsl:attribute>
<xsl:apply-templates select=".//tei:app | .//tei:subst | .//tei:note | .//tei:add[not(parent::tei:subst)] | .//tei:gap[not(@reason='outOfScope')] | .//tei:sic[not(parent::tei:choice)] | .//tei:choice | .//tei:del[not(parent::tei:subst)]" mode="apparatus"/>
<xsl:element name="h2">
<xsl:value-of select="wega:getLanguageString('textConstitution', $lang)"/>
</xsl:element>
<xsl:element name="ul">
<xsl:attribute name="class">textConstitution</xsl:attribute>
<xsl:for-each select=".//tei:subst | .//tei:add[not(parent::tei:subst)] | .//tei:gap[not(@reason='outOfScope')] | .//tei:sic[not(parent::tei:choice)] | .//tei:del[not(parent::tei:subst)]" >
<xsl:element name="li">
<xsl:apply-templates select="." mode="apparatus"/>
</xsl:element>
</xsl:for-each>
</xsl:element>
<xsl:element name="h2">
<xsl:value-of select="wega:getLanguageString('commentary', $lang)"/>
</xsl:element>
<xsl:element name="ul">
<xsl:attribute name="class">commentary</xsl:attribute>
<xsl:for-each select=".//tei:app | .//tei:note | .//tei:choice">
<xsl:element name="li">
<xsl:apply-templates select="." mode="apparatus"/>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:element>
</xsl:template>

Expand Down

0 comments on commit beab856

Please sign in to comment.