VirtualBox

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

Last change on this file since 76527 was 69111, checked in by vboxsync, 8 years ago

(C) year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 2.7 KB
Line 
1<?xml version="1.0"?>
2
3<!--
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).
8
9 Copyright (C) 2006-2017 Oracle Corporation
10
11 This file is part of VirtualBox Open Source Edition (OSE), as
12 available from http://www.virtualbox.org. This file is free software;
13 you can redistribute it and/or modify it under the terms of the GNU
14 General Public License (GPL) as published by the Free Software
15 Foundation, in version 2 as it comes in the "COPYING" file of the
16 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18
19 The contents of this file may alternatively be used under the terms
20 of the Common Development and Distribution License Version 1.0
21 (CDDL) only, as it comes in the "COPYING.CDDL" file of the
22 VirtualBox OSE distribution, in which case the provisions of the
23 CDDL are applicable instead of those of the GPL.
24
25 You may elect to license modified versions of this file under the
26 terms and conditions of either the GPL or the CDDL or both.
27-->
28
29<xsl:stylesheet version="1.0"
30 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
31 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
32>
33<xsl:output method="text"/>
34
35<xsl:strip-space elements="*"/>
36
37<!--
38// helpers
39////////////////////////////////////////////////////////////////////////////////
40-->
41
42<!--
43// templates
44////////////////////////////////////////////////////////////////////////////////
45-->
46
47<!--
48 * shut down all implicit templates
49-->
50<xsl:template match="*"/>
51
52<xsl:template match="idl">
53 <xsl:for-each select="library/application/result">
54 <xsl:text>{ "</xsl:text>
55 <xsl:choose>
56 <xsl:when test="contains(normalize-space(desc/text()), '. ')">
57 <xsl:value-of select="normalize-space(substring-before(desc/text(), '. '))"/>
58 </xsl:when>
59 <xsl:when test="contains(normalize-space(desc/text()), '.')">
60 <xsl:value-of select="normalize-space(substring-before(desc/text(), '.'))"/>
61 </xsl:when>
62 <xsl:otherwise>
63 <xsl:value-of select="normalize-space(desc/text())"/>
64 </xsl:otherwise>
65 </xsl:choose>
66 <xsl:text>", "</xsl:text>
67 <xsl:value-of select="@name"/>
68 <xsl:text>", </xsl:text>
69 <xsl:value-of select="@value"/>
70 <xsl:text> },&#x0A;</xsl:text>
71 </xsl:for-each>
72</xsl:template>
73
74<!--
75 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
76 * END
77 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
78-->
79
80</xsl:stylesheet>
81
Note: See TracBrowser for help on using the repository browser.

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