appdocsxml.xslt 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. <xsl:param name="pNewType" select="'myNewType'"/>
  5. <xsl:template match="node()|@*">
  6. <xsl:copy>
  7. <xsl:for-each select="node()|@*">
  8. <xsl:sort select="@tech"/>
  9. <xsl:apply-templates select="."/>
  10. </xsl:for-each>
  11. </xsl:copy>
  12. </xsl:template>
  13. <xsl:template match="configOptionToEnum">
  14. <xsl:for-each select="configOption">
  15. <xsl:element name="enum">
  16. <xsl:attribute name="name">
  17. <xsl:value-of select="@name"/>
  18. </xsl:attribute>
  19. <xsl:element name="para">
  20. <xsl:value-of select="synopsis"/>
  21. </xsl:element>
  22. </xsl:element>
  23. </xsl:for-each>
  24. </xsl:template>
  25. <xsl:template match="channel_snapshot">
  26. <xsl:element name="parameter">
  27. <xsl:attribute name="name">
  28. <xsl:value-of select="concat(@prefix,'Channel')"/>
  29. </xsl:attribute>
  30. </xsl:element>
  31. <xsl:element name="parameter">
  32. <xsl:attribute name="name">
  33. <xsl:value-of select="concat(@prefix,'ChannelState')"/>
  34. </xsl:attribute>
  35. <para>A numeric code for the channel's current state, related to <xsl:value-of select="concat(@prefix,'ChannelStateDesc')"/></para>
  36. </xsl:element>
  37. <xsl:element name="parameter">
  38. <xsl:attribute name="name">
  39. <xsl:value-of select="concat(@prefix,'ChannelStateDesc')"/>
  40. </xsl:attribute>
  41. <enumlist>
  42. <enum name="Down"/>
  43. <enum name="Rsrvd"/>
  44. <enum name="OffHook"/>
  45. <enum name="Dialing"/>
  46. <enum name="Ring"/>
  47. <enum name="Ringing"/>
  48. <enum name="Up"/>
  49. <enum name="Busy"/>
  50. <enum name="Dialing Offhook"/>
  51. <enum name="Pre-ring"/>
  52. <enum name="Unknown"/>
  53. </enumlist>
  54. </xsl:element>
  55. <xsl:element name="parameter">
  56. <xsl:attribute name="name">
  57. <xsl:value-of select="concat(@prefix,'CallerIDNum')"/>
  58. </xsl:attribute>
  59. </xsl:element>
  60. <xsl:element name="parameter">
  61. <xsl:attribute name="name">
  62. <xsl:value-of select="concat(@prefix,'CallerIDName')"/>
  63. </xsl:attribute>
  64. </xsl:element>
  65. <xsl:element name="parameter">
  66. <xsl:attribute name="name">
  67. <xsl:value-of select="concat(@prefix,'ConnectedLineNum')"/>
  68. </xsl:attribute>
  69. </xsl:element>
  70. <xsl:element name="parameter">
  71. <xsl:attribute name="name">
  72. <xsl:value-of select="concat(@prefix,'ConnectedLineName')"/>
  73. </xsl:attribute>
  74. </xsl:element>
  75. <xsl:element name="parameter">
  76. <xsl:attribute name="name">
  77. <xsl:value-of select="concat(@prefix,'Language')"/>
  78. </xsl:attribute>
  79. </xsl:element>
  80. <xsl:element name="parameter">
  81. <xsl:attribute name="name">
  82. <xsl:value-of select="concat(@prefix,'AccountCode')"/>
  83. </xsl:attribute>
  84. </xsl:element>
  85. <xsl:element name="parameter">
  86. <xsl:attribute name="name">
  87. <xsl:value-of select="concat(@prefix,'Context')"/>
  88. </xsl:attribute>
  89. </xsl:element>
  90. <xsl:element name="parameter">
  91. <xsl:attribute name="name">
  92. <xsl:value-of select="concat(@prefix,'Exten')"/>
  93. </xsl:attribute>
  94. </xsl:element>
  95. <xsl:element name="parameter">
  96. <xsl:attribute name="name">
  97. <xsl:value-of select="concat(@prefix,'Priority')"/>
  98. </xsl:attribute>
  99. </xsl:element>
  100. <xsl:element name="parameter">
  101. <xsl:attribute name="name">
  102. <xsl:value-of select="concat(@prefix,'Uniqueid')"/>
  103. </xsl:attribute>
  104. </xsl:element>
  105. <xsl:element name="parameter">
  106. <xsl:attribute name="name">
  107. <xsl:value-of select="concat(@prefix,'Linkedid')"/>
  108. </xsl:attribute>
  109. <para>Uniqueid of the oldest channel associated with this channel.</para>
  110. </xsl:element>
  111. </xsl:template>
  112. <xsl:template match="bridge_snapshot">
  113. <xsl:element name="parameter">
  114. <xsl:attribute name="name">
  115. <xsl:value-of select="concat(@prefix,'BridgeUniqueid')"/>
  116. </xsl:attribute>
  117. </xsl:element>
  118. <xsl:element name="parameter">
  119. <xsl:attribute name="name">
  120. <xsl:value-of select="concat(@prefix,'BridgeType')"/>
  121. </xsl:attribute>
  122. <para>The type of bridge</para>
  123. </xsl:element>
  124. <xsl:element name="parameter">
  125. <xsl:attribute name="name">
  126. <xsl:value-of select="concat(@prefix,'BridgeTechnology')"/>
  127. </xsl:attribute>
  128. <para>Technology in use by the bridge</para>
  129. </xsl:element>
  130. <xsl:element name="parameter">
  131. <xsl:attribute name="name">
  132. <xsl:value-of select="concat(@prefix, 'BridgeCreator')"/>
  133. </xsl:attribute>
  134. <para>Entity that created the bridge if applicable</para>
  135. </xsl:element>
  136. <xsl:element name="parameter">
  137. <xsl:attribute name="name">
  138. <xsl:value-of select="concat(@prefix, 'BridgeName')"/>
  139. </xsl:attribute>
  140. <para>Name used to refer to the bridge by its BridgeCreator if applicable</para>
  141. </xsl:element>
  142. <xsl:element name="parameter">
  143. <xsl:attribute name="name">
  144. <xsl:value-of select="concat(@prefix,'BridgeNumChannels')"/>
  145. </xsl:attribute>
  146. <para>Number of channels in the bridge</para>
  147. </xsl:element>
  148. <xsl:element name="parameter">
  149. <xsl:attribute name="name">
  150. <xsl:value-of select="concat(@prefix, 'BridgeVideoSourceMode')" />
  151. </xsl:attribute>
  152. <enumlist>
  153. <enum name="none"/>
  154. <enum name="talker"/>
  155. <enum name="single"/>
  156. </enumlist>
  157. <para>The video source mode for the bridge.</para>
  158. </xsl:element>
  159. <xsl:element name="parameter">
  160. <xsl:attribute name="required">
  161. false
  162. </xsl:attribute>
  163. <xsl:attribute name="name">
  164. <xsl:value-of select="concat(@prefix, 'BridgeVideoSource')" />
  165. </xsl:attribute>
  166. <para>If there is a video source for the bridge, the unique ID of the channel that is the video source.</para>
  167. </xsl:element>
  168. </xsl:template>
  169. </xsl:stylesheet>