Project

Profile

Help

How to connect?
Download (1.92 KB) Statistics
| Branch: | Revision:

he / tools / featureKeys / FeatureKeysToDoc.xsl @ 2699858e

1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
    xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs xd"
4
    xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" version="2.0">
5
    <xd:doc scope="stylesheet">
6
        <xd:desc>
7
            <xd:p><xd:b>Created on:</xd:b> Sep 25, 2010</xd:p>
8
            <xd:p><xd:b>Author:</xd:b> Michael Kay, Saxonica</xd:p>
9
            <xd:p>Generates FeatureKeysDoc.xml from FeatureKeys.xml</xd:p>
10
        </xd:desc>
11
    </xd:doc>
12

    
13

    
14
    <xsl:output method="xml"/>
15
    
16
    <xsl:template match="features">
17

    
18
        <xsl:comment> GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE&#xa;&#xa;</xsl:comment>
19
        <table>
20
            <tr style="border-bottom: solid">
21
                <td>Name<br/>Command line option</td>
22
                <td>Description</td>
23
            </tr>
24
            <xsl:apply-templates select="feature">
25
                <xsl:sort select="name"/>
26
            </xsl:apply-templates>
27
        </table>
28
    </xsl:template>
29
    
30
    <xsl:template match="feature">
31
        <tr style="border-bottom: solid">
32
            <td><p><xsl:value-of select="if (string-length(name) le 20) then name else replace(name, '_', '_&#xad;')"/></p>
33
                <xsl:if test="commandline">
34
                    <p><xsl:value-of select="commandline"/></p>
35
                </xsl:if>
36
                
37
            </td>
38
            <td>
39
                <p><strong><xsl:value-of select="uri"/></strong></p>
40
                <xsl:apply-templates select="desc/node()"/>
41
            </td>
42

    
43
        </tr>
44
    </xsl:template>
45
    
46
    <xsl:template match="*">
47
        <xsl:copy><xsl:copy-of select="@*"/><xsl:apply-templates/></xsl:copy>
48
    </xsl:template>
49
    
50
    <xsl:template match="desc//link">
51
        <a href="{.}" class="javalink">
52
            <xsl:value-of select="tokenize(., '\.')[last()]"/>
53
        </a>
54
    </xsl:template>
55
    
56

    
57
    
58
    
59
</xsl:stylesheet>
(4-4/8)