VirtualBox

source: vbox/trunk/src/VBox/Installer/win/dep.xsl@ 96314

Last change on this file since 96314 was 96314, checked in by vboxsync, 3 years ago

src/VBox/Installer/win: comment fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 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-2020 Oracle Corporation
8
9 This file is part of VirtualBox Open Source Edition (OSE), as
10 available from http://www.virtualbox.org. This file is free software;
11 you can redistribute it and/or modify it under the terms of the GNU
12 General Public License (GPL) as published by the Free Software
13 Foundation, in version 2 as it comes in the "COPYING" file of the
14 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16-->
17
18<xsl:stylesheet
19 version="1.0"
20 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
21 xmlns:wix="http://schemas.microsoft.com/wix/2006/objects"
22 >
23<xsl:output method="text" encoding="utf-8"/>
24
25<xsl:strip-space elements="*"/>
26
27<xsl:include href="../../Main/idl/typemap-shared.inc.xsl"/>
28
29
30<xsl:template name="output-file">
31 <xsl:param name="name"/>
32 <xsl:if test="1 or substring($name, 2, 1) = ':'">
33 <xsl:text> </xsl:text>
34 <xsl:value-of select="translate($name, '\', '/')"/>
35 <xsl:text> \</xsl:text>
36 <xsl:call-template name="xsltprocNewlineOutputHack"/>
37 </xsl:if>
38</xsl:template>
39
40<xsl:template match="wix:table[@name = 'Binary' or @name = 'Icon']">
41 <xsl:for-each select="wix:row/wix:field[2]">
42 <xsl:call-template name="output-file">
43 <xsl:with-param name="name" select="normalize-space(.)"/>
44 </xsl:call-template>
45 </xsl:for-each>
46</xsl:template>
47
48<xsl:template match="wix:table[@name = 'WixFile']">
49 <xsl:for-each select="wix:row/wix:field[7]">
50 <xsl:call-template name="output-file">
51 <xsl:with-param name="name" select="normalize-space(.)"/>
52 </xsl:call-template>
53 </xsl:for-each>
54</xsl:template>
55
56<xsl:template match="wix:wixObject">
57 <xsl:apply-templates/>
58</xsl:template>
59
60<xsl:template match="wix:section">
61 <xsl:apply-templates/>
62</xsl:template>
63
64<!-- Eat everything that's unmatched. -->
65<xsl:template match="*">
66</xsl:template>
67
68</xsl:stylesheet>
69
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