1 | <!--
|
---|
2 | refsect2_replace.xsl:
|
---|
3 | Replaces refsect2 elements with corresponding refsect1.
|
---|
4 | -->
|
---|
5 | <!--
|
---|
6 | Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
7 |
|
---|
8 | This file is part of VirtualBox base platform packages, as
|
---|
9 | available from https://www.virtualbox.org.
|
---|
10 |
|
---|
11 | This program is free software; you can redistribute it and/or
|
---|
12 | modify it under the terms of the GNU General Public License
|
---|
13 | as published by the Free Software Foundation, in version 3 of the
|
---|
14 | License.
|
---|
15 |
|
---|
16 | This program is distributed in the hope that it will be useful, but
|
---|
17 | WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
19 | General Public License for more details.
|
---|
20 |
|
---|
21 | You should have received a copy of the GNU General Public License
|
---|
22 | along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
23 |
|
---|
24 | SPDX-License-Identifier: GPL-3.0-only
|
---|
25 | -->
|
---|
26 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
---|
27 | <xsl:output encoding="UTF-8" method="xml" omit-xml-declaration="no" indent="yes" />
|
---|
28 | <xsl:output doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
|
---|
29 | doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"/>
|
---|
30 |
|
---|
31 | <xsl:template match="refsect2">
|
---|
32 | <xsl:element name="refsect1">
|
---|
33 | <xsl:for-each select="@*">
|
---|
34 | <xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>
|
---|
35 | </xsl:for-each>
|
---|
36 | <xsl:copy-of select="node()"/>
|
---|
37 | </xsl:element>
|
---|
38 | </xsl:template>
|
---|
39 | <xsl:template match="node()|@*">
|
---|
40 | <xsl:copy>
|
---|
41 | <xsl:apply-templates select="node()|@*"/>
|
---|
42 | </xsl:copy>
|
---|
43 | </xsl:template>
|
---|
44 | </xsl:stylesheet>
|
---|