1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 <xsl:stylesheet version=
"1.0" xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform">
12 <xsl:output method=
"text"/>
14 <xsl:template match=
"/|node()">
15 <xsl:apply-templates/>
18 <xsl:template match=
"@*|text()|processing-instruction()|comment()"/>
20 <xsl:template match=
"property[@name='icon_name'] | property[@name='icon-name'] | property[@name='pixbuf']">
21 <xsl:variable name=
"inpath" select=
"normalize-space(.)"/>
22 <xsl:variable name=
"outpath">
24 <xsl:when test=
"starts-with($inpath,'res/')">
25 <xsl:value-of select=
"concat('%GLOBALRES%/',substring-after($inpath,'res/'))"/>
28 <xsl:value-of select=
"concat('%MODULE%/',$inpath)"/>
32 <xsl:value-of select=
"$outpath"/>
33 <xsl:text>
</xsl:text>