blob: ff7de917c4ad21120e0cdc4b58bf9e6005b43e72 (
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
|
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1">
<xsl:output indent="yes" />
<xsl:template match="/">
<topics>
<xsl:apply-templates select="/*" />
</topics>
</xsl:template>
<xsl:template match="topic">
<topic id="{@id}">
<xsl:if test="not(@isCategoryOnly='True')">
<xsl:attribute name="file">
<xsl:value-of select="@id" />
</xsl:attribute>
</xsl:if>
<xsl:apply-templates />
</topic>
</xsl:template>
<xsl:template match="sharedTOC|sharedManagedReferenceTOC">
<stoc project="{@projectName}" />
</xsl:template>
<xsl:template match="sharedTopic">
<stopic project="{@projectName}" id="{@id}" file="{@id}">
<xsl:apply-templates />
</stopic>
</xsl:template>
</xsl:stylesheet>
|