crashtesting: assert on reimport of docx export of ooo102874-2.doc
[LibreOffice.git] / solenv / bin / uiimagelist.xsl
blob659d3b943ae10928bc25fc4d1d9083795f4ca4c8
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='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>