Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / solenv / bin / uiimagelist.xsl
blob3d14f8d31dc4d0c55e52aa9aa2728ec7ef7886e9
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
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/.
9 -->
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/>
16 </xsl:template>
18 <xsl:template match="@*|text()|processing-instruction()|comment()"/>
20 <xsl:template match="property[@name='icon_name'] | property[@name='pixbuf']">
21 <xsl:variable name="inpath" select="normalize-space(.)"/>
22 <xsl:variable name="outpath">
23 <xsl:choose>
24 <xsl:when test="starts-with($inpath,'res/')">
25 <xsl:value-of select="concat('%GLOBALRES%/',substring-after($inpath,'res/'))"/>
26 </xsl:when>
27 <xsl:otherwise>
28 <xsl:value-of select="concat('%MODULE%/',$inpath)"/>
29 </xsl:otherwise>
30 </xsl:choose>
31 </xsl:variable>
32 <xsl:value-of select="$outpath"/>
33 <xsl:text>&#xA;</xsl:text>
34 </xsl:template>
36 </xsl:stylesheet>