VirtualBox

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

最後變更 在這個檔案從96314是 96314,由 vboxsync 提交於 3 年 前

src/VBox/Installer/win: comment fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.5 KB
 
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.alldomusa.eu.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<xsl:template name="split-file-remove-number">
30 <xsl:param name="name"/>
31 <xsl:choose>
32 <xsl:when test="contains($name, '|')">
33 <xsl:text> </xsl:text>
34 <xsl:value-of select="substring-before(substring-before($name, '|'), '*')"/>
35 <xsl:text> \
36</xsl:text>
37 <xsl:call-template name="split-file-remove-number">
38 <xsl:with-param name="name" select="substring-after($name, '|')"/>
39 </xsl:call-template>
40 </xsl:when>
41
42 <xsl:otherwise>
43 <xsl:text> </xsl:text>
44 <xsl:value-of select="substring-before($name, '*')"/>
45 <xsl:text> \</xsl:text>
46 <xsl:call-template name="xsltprocNewlineOutputHack"/>
47 </xsl:otherwise>
48 </xsl:choose>
49</xsl:template>
50
51<xsl:template name="output-source-line-number">
52 <xsl:param name="name"/>
53 <xsl:if test="1 or substring($name, 2, 1) = ':'">
54 <xsl:call-template name="split-file-remove-number">
55 <xsl:with-param name="name" select="translate($name, '\', '/')"/>
56 </xsl:call-template>
57 </xsl:if>
58</xsl:template>
59
60<xsl:template match="wix:row">
61 <xsl:call-template name="output-source-line-number">
62 <xsl:with-param name="name" select="@sourceLineNumber"/>
63 </xsl:call-template>
64</xsl:template>
65
66<xsl:template match="wix:table">
67 <xsl:apply-templates/>
68</xsl:template>
69
70<xsl:template match="wix:wixObject">
71 <xsl:apply-templates/>
72</xsl:template>
73
74<xsl:template match="wix:section">
75 <xsl:apply-templates/>
76</xsl:template>
77
78<!-- Eat everything that's unmatched. -->
79<xsl:template match="*">
80</xsl:template>
81
82</xsl:stylesheet>
83
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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