summaryrefslogtreecommitdiff
path: root/help3xsl
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2017-09-08 10:22:11 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2017-09-09 02:41:01 +0200
commit6005c5c31ca8e9f9107c5c0e35858d27e4a55490 (patch)
tree1e737c4ec3048e454d72016a957d8e507505c060 /help3xsl
parent12ea42f942dfdcc3aebf108e9190b2c5a8454313 (diff)
Add better support for <bascode> in helponline
Insert a div around a code snippet and categorize for schema.org Change-Id: I7d4c9e15fccbf7e48af3c2faca9ed61ae5279c79 Reviewed-on: https://gerrit.libreoffice.org/42105 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl')
-rw-r--r--help3xsl/online_transform.xsl6
1 files changed, 5 insertions, 1 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index c8be6611a8..eebaced568 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -786,9 +786,13 @@
<p id="{@id}" class="{$role}"><xsl:apply-templates /></p>
</xsl:template>
+<xsl:template match="bascode">
+ <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet"><xsl:apply-templates /></div>
+</xsl:template>
+
<!-- Insert Basic code snippet -->
<xsl:template name="insertbascode">
- <pre itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet"><xsl:apply-templates /></pre>
+ <pre><xsl:apply-templates /></pre>
</xsl:template>
<!-- Insert Logo code snippet -->