diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2017-08-29 18:29:42 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@edx.srv.br> | 2017-08-30 00:06:52 +0200 |
commit | 79b1d6e796d6d689ef200d4531b0b2734b344392 (patch) | |
tree | fafcfec9481a0066a88b0916853e36fafd228c2f /help3xsl | |
parent | b5d455e09862a98eba8209445f859de29c1e449e (diff) |
Some tweaks in online XSLT transform
* move lang attribute from <body> to <html>
* remove role attribute in <label> (not W3C compliant)
* Fix license of help contents in page footer
Change-Id: Ia8e116588ff3a3ce41d146eea06385a420a5b0f7
Reviewed-on: https://gerrit.libreoffice.org/41716
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Diffstat (limited to 'help3xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 016521e034..857109c39b 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -110,7 +110,7 @@ <xsl:variable name="titleL10N"> <xsl:call-template name="brand"><xsl:with-param name="string"><xsl:value-of select="$title"/></xsl:with-param></xsl:call-template> </xsl:variable> -<html> +<html lang="{$lang}"> <head> <xsl:choose> <xsl:when test="$online"> @@ -129,7 +129,7 @@ <script type="text/javascript" src="{$productversion}/help.js"></script> <meta name="viewport" content="width=device-width,initial-scale=1"/> </head> - <body lang="{$lang}" itemscope="true" itemtype="http://schema.org/TechArticle"> + <body itemscope="true" itemtype="http://schema.org/TechArticle"> <xsl:if test="$online"> <meta itemprop="version" content="{$productversion}"/> <meta itemprop="inLanguage" content="{$lang}"/> @@ -227,13 +227,13 @@ <div class="accordion"> <div class="acc-panel"> <input id="accordion-1" name="accordion-menu" type="checkbox"/> - <label for="accordion-1" role="button">Contents</label> + <label for="accordion-1">Contents</label> <div id="Contents" class="contents-treeview"></div> </div> <xsl:if test="$online"> <div class="acc-panel"> <input id="accordion-2" name="accordion-menu" type="checkbox"/> - <label for="accordion-2" role="button">Search</label> + <label for="accordion-2">Search</label> <div id="content-2"> <script type="text/javascript"> <![CDATA[ @@ -254,7 +254,7 @@ </xsl:if> <div class="acc-panel"> <input id="accordion-3" name="accordion-menu" type="checkbox"/> - <label for="accordion-3" role="button">Index</label> + <label for="accordion-3">Index</label> <div id="Index"> <div id="SearchBox"> <p>  🔎  <input id="search-bar" type="text"/></p> @@ -277,7 +277,7 @@ <xsl:apply-templates select="/helpdocument/body"/> </div> <footer> - <p><a href="http://www.libreoffice.org/imprint" target="_blank">Impressum (Legal Info)</a> | <a href="http://www.libreoffice.org/privacy" target="_blank">Privacy Policy</a> | <a href="http://www.documentfoundation.org/statutes.pdf" target="_blank">Statutes (non-binding English translation)</a> - <a href="http://www.documentfoundation.org/satzung.pdf" target="_blank">Satzung (binding German version)</a> | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/" target="_blank">Creative Commons Attribution-Share Alike 3.0 License</a>. This does not include the source code of LibreOffice, which is licensed under the <a href="http://www.libreoffice.org/download/license/" target="_blank">Mozilla Public License v2.0</a>. “LibreOffice” and “The Document Foundation” are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="http://wiki.documentfoundation.org/TradeMark_Policy" target="_blank">trademark policy</a>. LibreOffice was based on OpenOffice.org.</p> + <p><a href="http://www.libreoffice.org/imprint" target="_blank">Impressum (Legal Info)</a> | <a href="http://www.libreoffice.org/privacy" target="_blank">Privacy Policy</a> | <a href="http://www.documentfoundation.org/statutes.pdf" target="_blank">Statutes (non-binding English translation)</a> - <a href="http://www.documentfoundation.org/satzung.pdf" target="_blank">Satzung (binding German version)</a> | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the <a href="http://www.libreoffice.org/download/license/" target="_blank">Mozilla Public License v2.0</a>. “LibreOffice” and “The Document Foundation” are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="http://wiki.documentfoundation.org/TradeMark_Policy" target="_blank">trademark policy</a>. LibreOffice was based on OpenOffice.org.</p> <div id="DEBUG" class="debug"> <h3 class="bug">Help content debug info:</h3> <p>This page is: <a href="https://opengrok.libreoffice.org/xref/help/source{$filename}" target="_blank"><xsl:value-of select="$filename"/></a></p> |