diff options
author | Pierre F <fpy@bger.ch> | 2024-09-02 12:33:30 +0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2024-10-04 18:20:25 +0200 |
commit | a3d5c1442a38c08407b4a0e4e54d4ca79d14e380 (patch) | |
tree | 0c498f277643581cc33ba4f70fb36af992e7a146 /helpers | |
parent | e377c9e115198486cb2b1c6f0348453653a906a5 (diff) |
tdf#143846 split BASE + BAHTTEXT
new helper : xsltproc --stringparam func BAHTTEXT helpers/calc_text_func.xsl source/text/scalc/01/04060110.xhp > source/text/scalc/01/bahttext.xhp
Change-Id: I40c33d486c45ef0a3316dba1c0aea4af68ff9f37
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/172748
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/calc_text_func.xsl | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/helpers/calc_text_func.xsl b/helpers/calc_text_func.xsl new file mode 100644 index 0000000000..e2d379d9e7 --- /dev/null +++ b/helpers/calc_text_func.xsl @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/> + +<xsl:param name="func" select="BASE"/> + +<xsl:template match="/"> + <xsl:for-each select="//section/h2[contains(text(), $func)]"> + + <xsl:call-template name="section"/> + </xsl:for-each> +</xsl:template> + +<xsl:template name="section"> + <helpdocument version="1.0"> + <xsl:comment> + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + </xsl:comment> + <meta> + <topic id="calcfunc_{../@id}" indexer="include" status="PUBLISH"> + <title id="tit"><xsl:value-of select="text()"/> Function</title> + <filename>/text/scalc/01/func_<xsl:value-of select="../@id"/>.xhp</filename> + </topic> + </meta> + <body> + + <xsl:copy-of select="preceding-sibling::*"/> +<section id="func_{../@id}"> + <h1 id="{@id}"> + <variable id="{../@id}_h1"> + <link href="text/scalc/01/func_{../@id}.xhp"><xsl:value-of select="text()"/></link> + </variable> + </h1> + <xsl:copy-of select="following-sibling::*[1]"/> + +</section> + <xsl:copy-of select="following-sibling::*[1]/following-sibling::*"/> + + </body> +</helpdocument> +</xsl:template> + +</xsl:stylesheet> |