Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
HelenaSabel committed Aug 29, 2021
1 parent ceb826e commit c98e589
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 21 deletions.
14 changes: 5 additions & 9 deletions html/html.xsl
Expand Up @@ -153,21 +153,17 @@ of this software, even if advised of the possibility of such damage.
<doc xmlns="http://www.oxygenxml.com/ns/doc/xsl">
<desc>[html] Work out language code </desc>
</doc>
<!-- For XHTML5 output, both @xml:lang and @lang attributes are created.
For other output formats, such as epub, only @lang is created-->
<xsl:template name="makeLang">
<xsl:if test="@xml:lang">
<xsl:choose>
<xsl:when test="$outputTarget = ('html', 'html5')">
<xsl:attribute name="xml:lang">
<xsl:value-of select="@xml:lang"/>
</xsl:attribute>
<xsl:attribute name="lang">
<xsl:value-of select="@xml:lang"/>
</xsl:attribute>
<xsl:attribute name="xml:lang" select="@xml:lang"/>
<xsl:attribute name="lang" select="@xml:lang"/>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="lang">
<xsl:value-of select="@xml:lang"/>
</xsl:attribute>
<xsl:attribute name="lang" select="@xml:lang"/>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
Expand Down
2 changes: 0 additions & 2 deletions html/html_core.xsl
Expand Up @@ -12,8 +12,6 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:teidocx="http://www.tei-c.org/ns/teidocx/1.0"
exclude-result-prefixes="#all" version="2.0">
<xsl:output method="xhtml" html-version="5.0" encoding="UTF-8" indent="yes" normalization-form="NFC"
exclude-result-prefixes="#all" omit-xml-declaration="yes"/>
<doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" scope="stylesheet" type="stylesheet">
<desc>
<p> TEI stylesheet dealing with elements from the core module, making
Expand Down
5 changes: 1 addition & 4 deletions html/html_corpus.xsl
Expand Up @@ -11,8 +11,6 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="a fo rng tei teix"
version="2.0">
<xsl:output method="xhtml" html-version="5.0" encoding="UTF-8" indent="yes" normalization-form="NFC"
exclude-result-prefixes="#all" omit-xml-declaration="yes"/>
<doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" scope="stylesheet" type="stylesheet">
<desc>
<p> TEI stylesheet dealing with elements from the corpus module,
Expand Down Expand Up @@ -156,8 +154,7 @@ of this software, even if advised of the possibility of such damage.
<xsl:message>TEI HTML: run end hook template teiEndHook</xsl:message>
</xsl:if>
<xsl:call-template name="teiEndHook"/>
<xsl:apply-templates select="tei:TEI" mode="split"/>

<xsl:apply-templates select="tei:TEI" mode="split"/>
</xsl:template>

<xsl:template name="corpusBody">
Expand Down
2 changes: 0 additions & 2 deletions html/html_oddprocessing.xsl
Expand Up @@ -9,8 +9,6 @@
xmlns:teix="http://www.tei-c.org/ns/Examples"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml" >
<xsl:output method="xhtml" html-version="5.0" encoding="UTF-8" indent="yes" normalization-form="NFC"
exclude-result-prefixes="#all" omit-xml-declaration="yes"/>
<xsl:param name="cssFile"/>
<xsl:param name="cssSecondaryFile"/>
<xsl:param name="summaryDoc">false</xsl:param>
Expand Down
4 changes: 2 additions & 2 deletions html/html_textstructure.xsl
Expand Up @@ -8,8 +8,6 @@
xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="a fo dbk xlink rng tei html
teix its teidocx" version="2.0">
<xsl:output method="xhtml" html-version="5.0" encoding="UTF-8" indent="yes" normalization-form="NFC"
exclude-result-prefixes="#all" omit-xml-declaration="yes"/>
<doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" scope="stylesheet" type="stylesheet">
<desc>
<p> TEI stylesheet dealing with elements from the textstructure module, making HTML output. </p>
Expand Down Expand Up @@ -802,6 +800,8 @@
</xsl:choose>
</xsl:variable>
<xsl:choose>
<!-- When output format is XHTML, both @xml:lang and @lang attributes are created.
For other outputs, just @lang-->
<xsl:when test="$outputTarget = ('html', 'html5')">
<xsl:attribute name="xml:lang">
<xsl:value-of select="$supplied"/>
Expand Down
3 changes: 1 addition & 2 deletions slides/slides.xsl
Expand Up @@ -10,8 +10,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="tei xlink xhtml m"
version="2.0">
<xsl:output method="xhtml" html-version="5.0" encoding="UTF-8" indent="yes" normalization-form="NFC"
omit-xml-declaration="yes"/>


<xsl:strip-space elements="teix:* rng:* xsl:* xhtml:* atom:* m:*"/>
<doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" scope="stylesheet" type="stylesheet">
Expand Down

0 comments on commit c98e589

Please sign in to comment.