VirtualBox

source: vbox/trunk/src/VBox/Main/webservice/platform-xidl.xsl@ 91312

Last change on this file since 91312 was 82974, checked in by vboxsync, 5 years ago

Copyright year updates - manual ones.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 2.3 KB
Line 
1<?xml version="1.0"?>
2
3<!--
4
5 platform-xidl.xsl:
6 XSLT stylesheet that generates a platform-specific
7 VirtualBox.xidl from ../idl/VirtualBox.xidl, which
8 is identical to the original except that all <if...>
9 sections are resolved (for easier processing).
10
11 Copyright (C) 2006-2020 Oracle Corporation
12
13 This file is part of VirtualBox Open Source Edition (OSE), as
14 available from http://www.virtualbox.org. This file is free software;
15 you can redistribute it and/or modify it under the terms of the GNU
16 General Public License (GPL) as published by the Free Software
17 Foundation, in version 2 as it comes in the "COPYING" file of the
18 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
19 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
20-->
21
22<xsl:stylesheet
23 version="1.0"
24 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
25
26<xsl:output
27 method="xml"
28 version="1.0"
29 encoding="utf-8"
30 indent="yes"/>
31
32<xsl:strip-space
33 elements="*" />
34
35<!--
36 template for "idl" match; this emits the header of the target file
37 and recurses into the libraries with interfaces (which are matched below)
38 -->
39<xsl:template match="/idl">
40 <xsl:comment>
41 DO NOT EDIT! This is a generated file.
42 Generated from: src/VBox/Main/idl/VirtualBox.xidl (VirtualBox's interface definitions in XML)
43 Generator: src/VBox/Main/webservice/platform-xidl.xsl
44</xsl:comment>
45
46 <idl>
47 <xsl:apply-templates />
48 </idl>
49
50</xsl:template>
51
52<!--
53 template for "if" match: ignore all ifs except those for wsdl
54 -->
55<xsl:template match="if">
56 <xsl:if test="@target='wsdl'">
57 <xsl:apply-templates/>
58 </xsl:if>
59</xsl:template>
60
61<!--
62 ignore everything we don't need
63 -->
64<xsl:template match="cpp|class|enumerator">
65</xsl:template>
66
67<!--
68 and keep the rest intact (including all attributes)
69
70 NOTE: this drops class and everything in it, which I left unchanged
71 since the other xslt scripts blow up badly.
72 -->
73<xsl:template match="library|module|enum|const|interface|attribute|collection|method|param|result">
74 <xsl:copy><xsl:copy-of select="@*"/><xsl:apply-templates/></xsl:copy>
75</xsl:template>
76
77<!--
78 keep those completely unchanged, including child nodes (including all
79 attributes)
80 -->
81<xsl:template match="descGroup|desc|note">
82 <xsl:copy-of select="."/>
83</xsl:template>
84
85
86</xsl:stylesheet>
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