blob: 815092365426cd9cff842fd4751ef984d81ef970 (
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
|
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1">
<xsl:param name="project" select="string('test')" />
<xsl:output method="text" encoding="iso-8859-1" />
<xsl:key name="index" match="/reflection/apis/api" use="@id" />
<xsl:variable name="topic">
<xsl:choose>
<xsl:when test="/reflection/apis/api[apidata/@group='root']">
<xsl:value-of select="/reflection/apis/api[apidata/@group='root'][1]/file/@name"/>
</xsl:when>
<xsl:when test="/reflection/apis/api[apidata/@group='namespace']">
<xsl:value-of select="/reflection/apis/api[apidata/@group='namespace'][1]/file/@name"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/reflection/apis/api[apidata/@group='type'][1]/file/@name"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:template match="/">
<xsl:text>[OPTIONS]
</xsl:text>
<xsl:text>Compatibility=1.1 or later
</xsl:text>
<xsl:text>Compiled file=</xsl:text><xsl:value-of select="$project" /><xsl:text>.chm
</xsl:text>
<xsl:text>Contents file=</xsl:text><xsl:value-of select="$project" /><xsl:text>.hhc
</xsl:text>
<xsl:text>Index file=</xsl:text><xsl:value-of select="$project" /><xsl:text>.hhk
</xsl:text>
<xsl:text>Default Topic=html/</xsl:text><xsl:value-of select="$topic" /><xsl:text>.htm
</xsl:text>
<!-- <xsl:text>Display compile progress=No
</xsl:text> -->
<xsl:text>Full-text search=Yes
</xsl:text>
<xsl:text>Language=0x409 English (United States)
</xsl:text>
<xsl:text>Title=</xsl:text><xsl:value-of select="$project" /><xsl:text>
</xsl:text>
<xsl:text>[FILES]
</xsl:text>
<xsl:text>icons\*.gif
</xsl:text>
<xsl:text>art\*.gif
</xsl:text>
<xsl:text>media\*.gif
</xsl:text>
<xsl:text>scripts\*.js
</xsl:text>
<xsl:text>styles\*.css
</xsl:text>
<xsl:text>html\*.htm
</xsl:text>
<xsl:text>[INFOTYPES]
</xsl:text>
</xsl:template>
</xsl:stylesheet>
|