VirtualBox

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

Last change on this file since 78402 was 62539, checked in by vboxsync, 8 years ago

(C) 2016

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1<?xml version="1.0"?>
2
3<!--
4 Generate a list of dependencies from a wixobj file.
5
6 Copyright (C) 2015-2016 Oracle Corporation
7
8 This file is part of VirtualBox Open Source Edition (OSE), as
9 available from http://www.virtualbox.org. This file is free software;
10 you can redistribute it and/or modify it under the terms of the GNU
11 General Public License (GPL) as published by the Free Software
12 Foundation, in version 2 as it comes in the "COPYING" file of the
13 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15-->
16
17<xsl:stylesheet
18 version="1.0"
19 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
20 xmlns:wix="http://schemas.microsoft.com/wix/2006/objects"
21 >
22<xsl:output method="text" encoding="utf-8"/>
23
24<xsl:strip-space elements="*"/>
25
26<xsl:include href="../../Main/idl/typemap-shared.inc.xsl"/>
27
28<xsl:template name="split-file-remove-number">
29 <xsl:param name="name"/>
30 <xsl:choose>
31 <xsl:when test="contains($name, '|')">
32 <xsl:text> </xsl:text>
33 <xsl:value-of select="substring-before(substring-before($name, '|'), '*')"/>
34 <xsl:text> \
35</xsl:text>
36 <xsl:call-template name="split-file-remove-number">
37 <xsl:with-param name="name" select="substring-after($name, '|')"/>
38 </xsl:call-template>
39 </xsl:when>
40
41 <xsl:otherwise>
42 <xsl:text> </xsl:text>
43 <xsl:value-of select="substring-before($name, '*')"/>
44 <xsl:text> \</xsl:text>
45 <xsl:call-template name="xsltprocNewlineOutputHack"/>
46 </xsl:otherwise>
47 </xsl:choose>
48</xsl:template>
49
50<xsl:template name="output-source-line-number">
51 <xsl:param name="name"/>
52 <xsl:if test="1 or substring($name, 2, 1) = ':'">
53 <xsl:call-template name="split-file-remove-number">
54 <xsl:with-param name="name" select="translate($name, '\', '/')"/>
55 </xsl:call-template>
56 </xsl:if>
57</xsl:template>
58
59<xsl:template match="wix:row">
60 <xsl:call-template name="output-source-line-number">
61 <xsl:with-param name="name" select="@sourceLineNumber"/>
62 </xsl:call-template>
63</xsl:template>
64
65<xsl:template match="wix:table">
66 <xsl:apply-templates/>
67</xsl:template>
68
69<xsl:template match="wix:wixObject">
70 <xsl:apply-templates/>
71</xsl:template>
72
73<xsl:template match="wix:section">
74 <xsl:apply-templates/>
75</xsl:template>
76
77<!-- Eat everything that's unmatched. -->
78<xsl:template match="*">
79</xsl:template>
80
81</xsl:stylesheet>
82
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