VirtualBox

source: vbox/trunk/doc/manual/dita-refentry-flat-topic-ids.xsl@ 103068

Last change on this file since 103068 was 99497, checked in by vboxsync, 18 months ago

manual: Split out the topics of converted manpages into separate files and generate ditamap files for each manpage to avoid needing to hardcode anything in UserManual.xml. This means that the topics inside a manpage can be supressed from the toc, but otoh, they get numbered (with 4.x). The per-topic files are named by refentry/refsect1/refsect2 @id and are currently not cleaned up by 'kmk clean'. bugref:10302

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1<?xml version="1.0"?>
2<!--
3 dita-refentry-flat-topic-ids.xsl:
4 XSLT stylesheet for extracting all the topic IDs from a DITA manual page.
5-->
6<!--
7 Copyright (C) 2023 Oracle and/or its affiliates.
8
9 This file is part of VirtualBox base platform packages, as
10 available from https://www.virtualbox.org.
11
12 This program is free software; you can redistribute it and/or
13 modify it under the terms of the GNU General Public License
14 as published by the Free Software Foundation, in version 3 of the
15 License.
16
17 This program is distributed in the hope that it will be useful, but
18 WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, see <https://www.gnu.org/licenses>.
24
25 SPDX-License-Identifier: GPL-3.0-only
26-->
27
28<xsl:stylesheet
29 version="1.0"
30 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
31 >
32
33 <xsl:output method="text" version="1.0" encoding="utf-8" indent="no"/>
34
35 <xsl:template match="/">
36 <xsl:for-each select="//topic">
37 <xsl:if test="position() != 1"><xsl:text> </xsl:text></xsl:if>
38 <xsl:value-of select="@id"/>
39 </xsl:for-each>
40 </xsl:template>
41
42</xsl:stylesheet>
43
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