summaryrefslogtreecommitdiff
path: root/helpers/refactor.xsl
blob: 5f3c4fc943cbd6a31cfe80e25d459ec47e3ebf7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8"?>
<!--
 * 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: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:template match="/">
    <xsl:apply-templates/>
</xsl:template>

<!-- remove colspan="" rowspan="" in tablecell -->
<xsl:template match="//tablecell[@colspan='' and @rowspan='']">
<tablecell>
<xsl:if test="@id"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>
<xsl:if test="@width"><xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute></xsl:if>
<xsl:if test="@unit"><xsl:attribute name="unit"><xsl:value-of select="@unit"/></xsl:attribute></xsl:if>
<xsl:if test="@class"><xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if>
<xsl:if test="@localize"><xsl:attribute name="localize"><xsl:value-of select="@localize"/></xsl:attribute></xsl:if>
<xsl:apply-templates/>
</tablecell>
</xsl:template>

<xsl:template match="node()|@*">
    <xsl:copy>
       <xsl:apply-templates select="node()|@*"/>
    </xsl:copy>
</xsl:template>

<!-- PARAGRAPH -->
<xsl:template match="paragraph">
    <xsl:choose>
         <xsl:when test="@role='heading'">
            <xsl:call-template name="insertheading">
                <xsl:with-param name="level" select="@level"/>
            </xsl:call-template>
        </xsl:when>
        <xsl:when test="@role='note' or @role='tip' or @role='warning'">
            <xsl:call-template name="insertnote">
                <xsl:with-param name="type" select="@role" />
            </xsl:call-template>
        </xsl:when>
        <xsl:otherwise>
            <xsl:copy>
            <xsl:apply-templates select="node()|@*"/>
            </xsl:copy>
        </xsl:otherwise>
    </xsl:choose>
</xsl:template>
<!-- Insert a heading -->
<xsl:template name="insertheading">
        <xsl:param name="level" />
        <xsl:element name="{concat('h',$level)}">
                <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
                <xsl:apply-templates />
        </xsl:element>
</xsl:template>
<!-- Insert Note, Warning, or Tip -->
<xsl:template name="insertnote">
    <xsl:param name="type" /> <!-- note, tip, or warning -->
    <xsl:element name="{$type}">
        <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
            <xsl:apply-templates />
    </xsl:element>
</xsl:template>
</xsl:stylesheet>
on value='libreoffice-3-5-7'>libreoffice-3-5-7 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sax/Library_expwrap.mk
AgeCommit message (Expand)Author
2019-10-04add gbuild function for a common PCH and use it in sc/ and sax/Luboš Luňák
2019-10-04support reusing PCH if linktarget has additional reasonable definesLuboš Luňák
2019-03-07log nice exception messages whereever possibleNoel Grandin
2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky
2016-06-17GSoC: Mapping legacy sax parser and XFastParserMohammed Abdul Azeem
2016-02-06sax: Use comphelper's AttributeListMatúš Kukan
2014-11-14switch saxparser from expat to libxml2Luboš Luňák
2014-09-22sax: Tabify makefiles to be more consistentMatúš Kukan
2013-12-11fdo#60698: Merge fastsax and sax_shared into expwrapMarcos Paulo de Souza
2013-04-09rename expat external to 'expat'David Tardon
2012-11-15sax: no obvious reason why expwrap should use expat_utf16Michael Stahl
2012-09-28gbuild: invert handling of standard system libraries:Michael Stahl
2012-09-28gbuild: replace direct gb_STDLIBS use with ...Michael Stahl
2012-09-28gbuild: split uwinapi out of gb_STDLIBSMichael Stahl
2012-08-24sax: avoid pointless linking expwrap against saxMatúš Kukan
2012-07-02targetted improvement of UNO API includes / usageMichael Meeks
2012-06-16gbuildification of saxNorbert Thiebaud
2012-06-16revert gmk4Norbert Thiebaud
2012-04-08gbuild: "use" vs. "add":Michael Stahl
2012-03-12sax: move xml2utf.cxx to libsax to prevent duplicate linkage warningsMichael Stahl
2012-03-10gbuild: get rid of realpath in gb_Foo_set_includeMatúš Kukan