Fix documentation replication issues
[asterisk/asterisk.git] / doc / snapshots.xslt
1 <xsl:stylesheet version="1.0" 
2  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3     <xsl:output omit-xml-declaration="yes" indent="yes"/>
4
5     <xsl:param name="pNewType" select="'myNewType'"/>
6
7     <xsl:template match="node()|@*">
8         <xsl:copy>
9             <xsl:apply-templates select="node()|@*"/>
10         </xsl:copy>
11     </xsl:template>
12
13     <xsl:template match="channel_snapshot">
14         <xsl:element name="parameter">
15             <xsl:attribute name="name">
16                 <xsl:value-of select="concat(@prefix,'Channel')"/>
17             </xsl:attribute>
18         </xsl:element>
19         <xsl:element name="parameter">
20             <xsl:attribute name="name">
21                 <xsl:value-of select="concat(@prefix,'ChannelState')"/>
22             </xsl:attribute>
23             <para>A numeric code for the channel's current state, related to <xsl:value-of select="concat(@prefix,'ChannelStateDesc')"/></para>
24         </xsl:element>
25         <xsl:element name="parameter">
26             <xsl:attribute name="name">
27                 <xsl:value-of select="concat(@prefix,'ChannelStateDesc')"/>
28             </xsl:attribute>
29             <enumlist>
30                 <enum name="Down"/>
31                 <enum name="Rsrvd"/>
32                 <enum name="OffHook"/>
33                 <enum name="Dialing"/>
34                 <enum name="Ring"/>
35                 <enum name="Ringing"/>
36                 <enum name="Up"/>
37                 <enum name="Busy"/>
38                 <enum name="Dialing Offhook"/>
39                 <enum name="Pre-ring"/>
40                 <enum name="Unknown"/>
41             </enumlist>
42         </xsl:element>
43         <xsl:element name="parameter">
44             <xsl:attribute name="name">
45                 <xsl:value-of select="concat(@prefix,'CallerIDNum')"/>
46             </xsl:attribute>
47         </xsl:element>
48         <xsl:element name="parameter">
49             <xsl:attribute name="name">
50                 <xsl:value-of select="concat(@prefix,'CallerIDName')"/>
51             </xsl:attribute>
52         </xsl:element>
53         <xsl:element name="parameter">
54             <xsl:attribute name="name">
55                 <xsl:value-of select="concat(@prefix,'ConnectedLineNum')"/>
56             </xsl:attribute>
57         </xsl:element>
58         <xsl:element name="parameter">
59             <xsl:attribute name="name">
60                 <xsl:value-of select="concat(@prefix,'ConnectedLineName')"/>
61             </xsl:attribute>
62         </xsl:element>
63         <xsl:element name="parameter">
64             <xsl:attribute name="name">
65                 <xsl:value-of select="concat(@prefix,'AccountCode')"/>
66             </xsl:attribute>
67         </xsl:element>
68         <xsl:element name="parameter">
69             <xsl:attribute name="name">
70                 <xsl:value-of select="concat(@prefix,'Context')"/>
71             </xsl:attribute>
72         </xsl:element>
73         <xsl:element name="parameter">
74             <xsl:attribute name="name">
75                 <xsl:value-of select="concat(@prefix,'Exten')"/>
76             </xsl:attribute>
77         </xsl:element>
78         <xsl:element name="parameter">
79             <xsl:attribute name="name">
80                 <xsl:value-of select="concat(@prefix,'Priority')"/>
81             </xsl:attribute>
82         </xsl:element>
83         <xsl:element name="parameter">
84             <xsl:attribute name="name">
85                 <xsl:value-of select="concat(@prefix,'Uniqueid')"/>
86             </xsl:attribute>
87         </xsl:element>
88     </xsl:template>
89
90     <xsl:template match="bridge_snapshot">
91         <xsl:element name="parameter">
92             <xsl:attribute name="name">
93                 <xsl:value-of select="concat(@prefix,'BridgeUniqueid')"/>
94             </xsl:attribute>
95         </xsl:element>
96         <xsl:element name="parameter">
97             <xsl:attribute name="name">
98                 <xsl:value-of select="concat(@prefix,'BridgeType')"/>
99             </xsl:attribute>
100             <para>The type of bridge</para>
101         </xsl:element>
102         <xsl:element name="parameter">
103             <xsl:attribute name="name">
104                 <xsl:value-of select="concat(@prefix,'BridgeTechnology')"/>
105             </xsl:attribute>
106             <para>Technology in use by the bridge</para>
107         </xsl:element>
108         <xsl:element name="parameter">
109             <xsl:attribute name="name">
110                 <xsl:value-of select="concat(@prefix,'BridgeNumChannels')"/>
111             </xsl:attribute>
112             <para>Number of channels in the bridge</para>
113         </xsl:element>
114     </xsl:template>
115 </xsl:stylesheet>