blob: 25fe1a63482e18c14238e1a9f32a750f9192239f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<?xml version="1.0"?>
<!-- (c) Copyright IBM Corp. 2005, 2006 All Rights Reserved. -->
<!-- This file is part of the DITA Open Toolkit project hosted on -->
<!-- Sourceforge.net. See the accompanying license.txt file for -->
<!-- applicable licenses. -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="cr"><xsl:text>
</xsl:text></xsl:variable>
<xsl:variable name="lt"><</xsl:variable>
<xsl:variable name="gt">></xsl:variable>
<xsl:template match="/">
<xsl:processing-instruction name="NLS">type="org.eclipse.help.contexts"</xsl:processing-instruction><xsl:value-of select="$cr"/>
<contexts><xsl:value-of select="$cr"/>
<xsl:apply-templates select="//context" />
</contexts><xsl:value-of select="$cr"/>
</xsl:template>
<xsl:template match="//comment()">
<xsl:copy />
</xsl:template>
<xsl:template match="context">
<context id="{@id}">
<xsl:value-of select="$cr"/>
<xsl:apply-templates />
</context><xsl:value-of select="$cr"/>
</xsl:template>
<xsl:template match="description">
<description>
<xsl:apply-templates />
</description><xsl:value-of select="$cr"/>
</xsl:template>
<xsl:template match="b">
<xsl:text><b></xsl:text>
<xsl:apply-templates />
<xsl:text></b></xsl:text>
</xsl:template>
<xsl:template match="topic">
<xsl:copy-of select="." />
</xsl:template>
</xsl:stylesheet>
|