VirtualBox

source: vbox/trunk/src/VBox/Installer/win/dep2.xsl@ 98103

Last change on this file since 98103 was 98103, checked in by vboxsync, 22 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1<?xml version="1.0"?>
2
3<!--
4 Generate a list of dependencies from a wixobj file.
5-->
6<!--
7 Copyright (C) 2015-2023 Oracle and/or its affiliates.
8
9 This file is part of VirtualBox base platform packages, as
10 available from https://www.virtualbox.org.
11
12 This program is free software; you can redistribute it and/or
13 modify it under the terms of the GNU General Public License
14 as published by the Free Software Foundation, in version 3 of the
15 License.
16
17 This program is distributed in the hope that it will be useful, but
18 WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, see <https://www.gnu.org/licenses>.
24
25 SPDX-License-Identifier: GPL-3.0-only
26-->
27
28<xsl:stylesheet
29 version="1.0"
30 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
31 xmlns:wix="http://schemas.microsoft.com/wix/2006/objects"
32 >
33<xsl:output method="text" encoding="utf-8"/>
34
35<xsl:strip-space elements="*"/>
36
37<xsl:include href="../../Main/idl/typemap-shared.inc.xsl"/>
38
39<xsl:template name="split-file-remove-number">
40 <xsl:param name="name"/>
41 <xsl:choose>
42 <xsl:when test="contains($name, '|')">
43 <xsl:text> </xsl:text>
44 <xsl:value-of select="substring-before(substring-before($name, '|'), '*')"/>
45 <xsl:text> \
46</xsl:text>
47 <xsl:call-template name="split-file-remove-number">
48 <xsl:with-param name="name" select="substring-after($name, '|')"/>
49 </xsl:call-template>
50 </xsl:when>
51
52 <xsl:otherwise>
53 <xsl:text> </xsl:text>
54 <xsl:value-of select="substring-before($name, '*')"/>
55 <xsl:text> \</xsl:text>
56 <xsl:call-template name="xsltprocNewlineOutputHack"/>
57 </xsl:otherwise>
58 </xsl:choose>
59</xsl:template>
60
61<xsl:template name="output-source-line-number">
62 <xsl:param name="name"/>
63 <xsl:if test="1 or substring($name, 2, 1) = ':'">
64 <xsl:call-template name="split-file-remove-number">
65 <xsl:with-param name="name" select="translate($name, '\', '/')"/>
66 </xsl:call-template>
67 </xsl:if>
68</xsl:template>
69
70<xsl:template match="wix:row">
71 <xsl:call-template name="output-source-line-number">
72 <xsl:with-param name="name" select="@sourceLineNumber"/>
73 </xsl:call-template>
74</xsl:template>
75
76<xsl:template match="wix:table">
77 <xsl:apply-templates/>
78</xsl:template>
79
80<xsl:template match="wix:wixObject">
81 <xsl:apply-templates/>
82</xsl:template>
83
84<xsl:template match="wix:section">
85 <xsl:apply-templates/>
86</xsl:template>
87
88<!-- Eat everything that's unmatched. -->
89<xsl:template match="*">
90</xsl:template>
91
92</xsl:stylesheet>
93
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette