VirtualBox

source: vbox/trunk/doc/manual/refsect2_replace.xsl@ 98603

Last change on this file since 98603 was 98603, checked in by vboxsync, 2 years ago

Docs: bugref:10302. Adding preprocessing step to replace rect2 with rect1.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 932 bytes
Line 
1<!-- Replaces refsect2 elements with corresponding refsect1 but also replaces ndash etc entities. Thus, currently not used -->
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3 <xsl:output encoding="UTF-8" method="xml" omit-xml-declaration="no" indent="yes" />
4 <xsl:output doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
5 doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"/>
6
7 <xsl:template match="refsect2">
8 <xsl:element name="refsect1">
9 <xsl:for-each select="@*">
10 <xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>
11 </xsl:for-each>
12 <xsl:copy-of select="node()"/>
13 </xsl:element>
14 </xsl:template>
15 <xsl:template match="node()|@*">
16 <xsl:copy>
17 <xsl:apply-templates select="node()|@*"/>
18 </xsl:copy>
19 </xsl:template>
20</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