Skip to content

Commit

Permalink
added default rule for tei:date to avoid trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Aug 20, 2013
1 parent f398460 commit be34d33
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions webapp/xsl/common_main.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1009,5 +1009,14 @@
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>

<!-- Default template fürs Datum damit kein Leerzeichen danach entsteht -->
<xsl:template match="tei:date" priority="0.5">
<xsl:element name="span">
<xsl:apply-templates select="@xml:id"/>
<xsl:attribute name="class" select="'tei_date'"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>

</xsl:stylesheet>
2 changes: 1 addition & 1 deletion webapp/xsl/doc_text.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<xsl:strip-space elements="*"/>
<xsl:preserve-space
elements="tei:item tei:cell tei:p tei:dateline tei:closer tei:opener tei:hi tei:persName tei:rs tei:workName tei:characterName tei:placeName tei:seg tei:footnote tei:head"/>
elements="tei:item tei:cell tei:p tei:dateline tei:closer tei:opener tei:hi tei:persName tei:rs tei:workName tei:characterName tei:placeName tei:seg tei:footnote tei:head tei:date"/>

<xsl:param name="headerMode" select="false()"/>

Expand Down
2 changes: 1 addition & 1 deletion webapp/xsl/letter_text.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<xsl:output encoding="UTF-8" method="html" omit-xml-declaration="yes" indent="no"/>
<xsl:strip-space elements="*"/>
<xsl:preserve-space
elements="tei:item tei:cell tei:p tei:dateline tei:closer tei:opener tei:hi tei:addrLine tei:persName tei:rs tei:workName tei:characterName tei:placeName tei:seg tei:l tei:head tei:salute"/>
elements="tei:item tei:cell tei:p tei:dateline tei:closer tei:opener tei:hi tei:addrLine tei:persName tei:rs tei:workName tei:characterName tei:placeName tei:seg tei:l tei:head tei:salute tei:date"/>
<xsl:include href="common_link.xsl"/>
<xsl:include href="common_main.xsl"/>

Expand Down
2 changes: 1 addition & 1 deletion webapp/xsl/news.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<xsl:output encoding="UTF-8" method="html" omit-xml-declaration="yes" indent="no"/>
<xsl:strip-space elements="*"/>
<xsl:preserve-space
elements="tei:item tei:cell tei:p tei:dateline tei:closer tei:opener tei:hi tei:persName tei:rs tei:workName tei:characterName tei:placeName tei:seg tei:head"/>
elements="tei:item tei:cell tei:p tei:dateline tei:closer tei:opener tei:hi tei:persName tei:rs tei:workName tei:characterName tei:placeName tei:seg tei:head tei:date"/>
<xsl:include href="common_main.xsl"/>
<xsl:include href="common_link.xsl"/>
<xsl:template match="/">
Expand Down
2 changes: 1 addition & 1 deletion webapp/xsl/person_singleView.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<xsl:output encoding="UTF-8" method="html" omit-xml-declaration="yes"/>

<xsl:preserve-space
elements="tei:item tei:cell tei:hi tei:persName tei:rs tei:workName tei:characterName tei:placeName tei:head"/>
elements="tei:item tei:cell tei:hi tei:persName tei:rs tei:workName tei:characterName tei:placeName tei:head tei:date"/>

<xsl:param name="eventID" as="xs:string"/>

Expand Down
2 changes: 1 addition & 1 deletion webapp/xsl/var.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<xsl:param name="uri"/>
<xsl:strip-space elements="*"/>
<xsl:preserve-space
elements="tei:cell tei:p tei:hi tei:persName tei:rs tei:workName tei:characterName tei:placeName tei:code tei:eg tei:item tei:head"/>
elements="tei:cell tei:p tei:hi tei:persName tei:rs tei:workName tei:characterName tei:placeName tei:code tei:eg tei:item tei:head tei:date"/>
<xsl:include href="common_link.xsl"/>
<xsl:include href="common_main.xsl"/>
<xsl:template match="/">
Expand Down

0 comments on commit be34d33

Please sign in to comment.