VirtualBox

source: vbox/trunk/src/VBox/Runtime/VBox/errmsgvboxcom.xsl

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

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 3.0 KB
RevLine 
[14604]1<?xml version="1.0"?>
2
3<!--
[62898]4 A template to generate a C header that will contain all result code
5 definitions as entires of the const RTCOMERRMSG array (for use in the
6 %Rhrc format specifier) as they are defined in the VirtualBox interface
7 definition file (src/VBox/Main/idl/VirtualBox.xidl).
[96306]8-->
9<!--
[98103]10 Copyright (C) 2006-2023 Oracle and/or its affiliates.
[14604]11
[96407]12 This file is part of VirtualBox base platform packages, as
13 available from https://www.virtualbox.org.
[14604]14
[96407]15 This program is free software; you can redistribute it and/or
16 modify it under the terms of the GNU General Public License
17 as published by the Free Software Foundation, in version 3 of the
18 License.
19
20 This program is distributed in the hope that it will be useful, but
21 WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 General Public License for more details.
24
25 You should have received a copy of the GNU General Public License
26 along with this program; if not, see <https://www.gnu.org/licenses>.
27
[43103]28 The contents of this file may alternatively be used under the terms
29 of the Common Development and Distribution License Version 1.0
[96407]30 (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
31 in the VirtualBox distribution, in which case the provisions of the
[43103]32 CDDL are applicable instead of those of the GPL.
[17809]33
[43103]34 You may elect to license modified versions of this file under the
35 terms and conditions of either the GPL or the CDDL or both.
[96407]36
37 SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
[14604]38-->
39
40<xsl:stylesheet version="1.0"
41 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
42 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
43>
44<xsl:output method="text"/>
45
46<xsl:strip-space elements="*"/>
47
48<!--
49// helpers
50////////////////////////////////////////////////////////////////////////////////
51-->
52
53<!--
54// templates
55////////////////////////////////////////////////////////////////////////////////
56-->
57
58<!--
59 * shut down all implicit templates
60-->
61<xsl:template match="*"/>
62
63<xsl:template match="idl">
[66274]64 <xsl:for-each select="library/application/result">
[14604]65 <xsl:text>{ "</xsl:text>
66 <xsl:choose>
67 <xsl:when test="contains(normalize-space(desc/text()), '. ')">
68 <xsl:value-of select="normalize-space(substring-before(desc/text(), '. '))"/>
69 </xsl:when>
70 <xsl:when test="contains(normalize-space(desc/text()), '.')">
71 <xsl:value-of select="normalize-space(substring-before(desc/text(), '.'))"/>
72 </xsl:when>
73 <xsl:otherwise>
74 <xsl:value-of select="normalize-space(desc/text())"/>
75 </xsl:otherwise>
76 </xsl:choose>
77 <xsl:text>", "</xsl:text>
78 <xsl:value-of select="@name"/>
[83743]79 <xsl:text>", (VBOXSTATUSTYPE)</xsl:text>
[14604]80 <xsl:value-of select="@value"/>
[83743]81 <xsl:text>L },&#x0A;</xsl:text>
[14604]82 </xsl:for-each>
83</xsl:template>
84
85<!--
86 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
87 * END
88 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
89-->
90
91</xsl:stylesheet>
92
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use