Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.02 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0"
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4. xmlns:fo="http://www.w3.org/1999/XSL/Format">
  5. <xsl:import href="../monthly_invoice.common.xsl"/>
  6. <xsl:variable name="invoice_in.page" select="/document/pages[@name = 'ingoing_calls_detalization']"/>
  7.  
  8. <xsl:variable name="invoice_in.table_content_info">
  9. <row fo.height="5mm">
  10. <cell value="Абонент:" fo.font-weight="bold"/>
  11. <cell value-code="P3" fo.font-weight="bold" fo.number-columns-spanned="2"/>
  12. </row>
  13. <row fo.height="5mm">
  14. <cell value-code="P4" fo.font-weight="bold" fo.number-columns-spanned="3"/>
  15. </row>
  16. <row fo.height="5mm">
  17. <cell value-code="P5" fo.font-weight="bold" fo.number-columns-spanned="3"/>
  18. </row>
  19. </xsl:variable>
  20.  
  21. <xsl:variable name="P4Length" select="string-length($invoice_in.page/var[@name = 'P4']/text())"/>
  22.  
  23. <xsl:variable name="invoice_in.table_content_info_double_height">
  24. <row fo.height="5mm">
  25. <cell value="Абонент:" fo.font-weight="bold"/>
  26. <cell value-code="P3" fo.font-weight="bold" fo.number-columns-spanned="2"/>
  27. </row>
  28. <row fo.height="10mm">
  29. <cell value-code="P4" fo.font-weight="bold" fo.number-columns-spanned="3"/>
  30. </row>
  31. <row fo.height="5mm">
  32. <cell value-code="P5" fo.font-weight="bold" fo.number-columns-spanned="3"/>
  33. </row>
  34. </xsl:variable>
  35.  
  36. <xsl:template name="table_detail_info_1">
  37. <xsl:param name="invoice_in_table.page"/>
  38. <xsl:param name="is_3_colums" select='false'/>
  39. <xsl:param name="abonent"/>
  40.  
  41. <xsl:variable name="invoice_in.table_general_content_info">
  42. <row fo.font-size="8">
  43. <xsl:choose>
  44. <xsl:when test="not($is_3_colums = 'true')">
  45. <cell value-code="P11"/>
  46. <cell value-code="P12" fo.text-align="right"/>
  47. </xsl:when>
  48. <xsl:otherwise>
  49. <cell value-code="P12" fo.number-columns-spanned="2"/>
  50. </xsl:otherwise>
  51. </xsl:choose>
  52. <cell value-code="P13" fo.text-align="right"/>
  53. <cell value-code="P14" fo.text-align="right"/>
  54. </row>
  55. </xsl:variable>
  56.  
  57. <fo:table table-layout="fixed" width="100%" margin-top="2px">
  58. <fo:table-column column-width="proportional-column-width(20)"/>
  59. <fo:table-column column-width="proportional-column-width(18)"/>
  60. <fo:table-column column-width="proportional-column-width(13)"/>
  61. <fo:table-column column-width="proportional-column-width(11)"/>
  62. <fo:table-body>
  63. <xsl:choose>
  64. <xsl:when test="$invoice_in_table.page = 'calls'">
  65.  
  66. <xsl:for-each select="$abonent/page[@name = 'calls']">
  67. <xsl:call-template name="common.general_table_filling">
  68. <xsl:with-param name="content" select="$invoice_in.table_general_content_info"/>
  69. <xsl:with-param name="source" select="."/>
  70. </xsl:call-template>
  71. </xsl:for-each>
  72.  
  73. </xsl:when>
  74. <xsl:when test="$invoice_in_table.page = 'roum-calls'">
  75.  
  76. <xsl:for-each select="$abonent/page[@name = 'roum-calls']">
  77. <xsl:call-template name="common.general_table_filling">
  78. <xsl:with-param name="content" select="$invoice_in.table_general_content_info"/>
  79. <xsl:with-param name="source" select="."/>
  80. </xsl:call-template>
  81. </xsl:for-each>
  82.  
  83. </xsl:when>
  84. <xsl:when test="$invoice_in_table.page = 'sms'">
  85.  
  86. <xsl:for-each select="$abonent/page[@name = 'sms']">
  87. <xsl:call-template name="common.general_table_filling">
  88. <xsl:with-param name="content" select="$invoice_in.table_general_content_info"/>
  89. <xsl:with-param name="source" select="."/>
  90. </xsl:call-template>
  91. </xsl:for-each>
  92.  
  93. </xsl:when>
  94. <xsl:when test="$invoice_in_table.page = 'roum-sms'">
  95.  
  96. <xsl:for-each select="$abonent/page[@name = 'roum-sms']">
  97. <xsl:call-template name="common.general_table_filling">
  98. <xsl:with-param name="content" select="$invoice_in.table_general_content_info"/>
  99. <xsl:with-param name="source" select="."/>
  100. </xsl:call-template>
  101. </xsl:for-each>
  102.  
  103. </xsl:when>
  104. <xsl:when test="$invoice_in_table.page = 'mms'">
  105.  
  106. <xsl:for-each select="$abonent/page[@name = 'mms']">
  107. <xsl:call-template name="common.general_table_filling">
  108. <xsl:with-param name="content" select="$invoice_in.table_general_content_info"/>
  109. <xsl:with-param name="source" select="."/>
  110. </xsl:call-template>
  111. </xsl:for-each>
  112.  
  113. </xsl:when>
  114. <xsl:when test="$invoice_in_table.page = 'roum-mms'">
  115.  
  116. <xsl:for-each select="$abonent/page[@name = 'roum-mms']">
  117. <xsl:call-template name="common.general_table_filling">
  118. <xsl:with-param name="content" select="$invoice_in.table_general_content_info"/>
  119. <xsl:with-param name="source" select="."/>
  120. </xsl:call-template>
  121. </xsl:for-each>
  122.  
  123. </xsl:when>
  124. <xsl:when test="$invoice_in_table.page = 'internet'">
  125.  
  126. <xsl:for-each select="$abonent/page[@name = 'internet']">
  127. <xsl:call-template name="common.general_table_filling">
  128. <xsl:with-param name="content" select="$invoice_in.table_general_content_info"/>
  129. <xsl:with-param name="source" select="."/>
  130. </xsl:call-template>
  131. </xsl:for-each>
  132.  
  133. </xsl:when>
  134. <xsl:when test="$invoice_in_table.page = 'wap'">
  135.  
  136. <xsl:for-each select="$abonent/page[@name = 'wap']">
  137. <xsl:call-template name="common.general_table_filling">
  138. <xsl:with-param name="content" select="$invoice_in.table_general_content_info"/>
  139. <xsl:with-param name="source" select="."/>
  140. </xsl:call-template>
  141. </xsl:for-each>
  142.  
  143. </xsl:when>
  144. <xsl:when test="$invoice_in_table.page = 'video-calls'">
  145. <xsl:for-each select="$abonent/page[@name = 'video-calls']">
  146. <xsl:call-template name="common.general_table_filling">
  147. <xsl:with-param name="content" select="$invoice_in.table_general_content_info"/>
  148. <xsl:with-param name="source" select="."/>
  149. </xsl:call-template>
  150. </xsl:for-each>
  151. </xsl:when>
  152. <xsl:when test="$invoice_in_table.page = 'roum-video-calls'">
  153. <xsl:for-each select="$abonent/page[@name = 'roum-video-calls']">
  154. <xsl:call-template name="common.general_table_filling">
  155. <xsl:with-param name="content" select="$invoice_in.table_general_content_info"/>
  156. <xsl:with-param name="source" select="."/>
  157. </xsl:call-template>
  158. </xsl:for-each>
  159. </xsl:when>
  160. <xsl:otherwise>
  161. <fo:table-row font-size="7">
  162. <fo:table-cell number-columns-spanned="2" font-weight="bold" display-align="center" text-align="left">
  163. <fo:block><xsl:value-of select="$invoice_in_table.page"/></fo:block>
  164. </fo:table-cell>
  165. <fo:table-cell text-align="right" font-weight="bold">
  166. <fo:block><xsl:value-of select="$abonent/var[@name='P15']"/></fo:block>
  167. </fo:table-cell>
  168. <fo:table-cell text-align="right" font-weight="bold">
  169. <fo:block><xsl:value-of select="$abonent/var[@name='P16']"/></fo:block>
  170. </fo:table-cell>
  171. </fo:table-row>
  172. </xsl:otherwise>
  173. </xsl:choose>
  174. </fo:table-body>
  175. </fo:table>
  176. </xsl:template>
  177.  
  178. <xsl:template name="table_detail_info">
  179. <xsl:param name="first_row"/>
  180. <xsl:param name="first_column"/>
  181. <xsl:param name="second_column"/>
  182. <xsl:param name="third_column"/>
  183. <xsl:param name="fourth_column"/>
  184.  
  185. <fo:table table-layout="fixed" width="100%" margin-top="2px">
  186. <fo:table-column column-width="proportional-column-width(20)"/>
  187. <fo:table-column column-width="proportional-column-width(18)"/>
  188. <fo:table-column column-width="proportional-column-width(18)"/>
  189. <fo:table-column column-width="proportional-column-width(11)"/>
  190. <fo:table-body>
  191. <fo:table-row>
  192. <fo:table-cell number-columns-spanned="4">
  193. <fo:block font-size="8" height="10mm" font-weight="bold"><xsl:value-of select="$first_row"/></fo:block>
  194. </fo:table-cell>
  195. </fo:table-row>
  196. <fo:table-row font-size="6" >
  197. <fo:table-cell font-weight="bold" text-align="left">
  198. <fo:block><xsl:value-of select="$first_column"/></fo:block>
  199. </fo:table-cell>
  200. <fo:table-cell font-weight="bold" text-align="right">
  201. <fo:block><xsl:value-of select="$second_column"/></fo:block>
  202. </fo:table-cell>
  203. <fo:table-cell font-weight="bold" text-align="right">
  204. <fo:block><xsl:value-of select="$third_column"/></fo:block>
  205. </fo:table-cell>
  206. <fo:table-cell font-weight="bold" text-align="right">
  207. <fo:block><xsl:value-of select="$fourth_column"/></fo:block>
  208. </fo:table-cell>
  209. </fo:table-row>
  210. <fo:table-row>
  211. <fo:table-cell border-top="black solid 0.1px" number-columns-spanned="4"><fo:block/></fo:table-cell>
  212. </fo:table-row>
  213. </fo:table-body>
  214. </fo:table>
  215. </xsl:template>
  216.  
  217.  
  218. <xsl:template name="invoice_1_2_before">
  219. <xsl:if test="$invoice_in.page/var[@name = 'P1']">
  220. <!-- Title -->
  221. <xsl:call-template name="common.life_logo"></xsl:call-template>
  222.  
  223. <fo:block font-size="13" text-align="center" font-weight="bold" margin-bottom="7px" margin-top="7mm">
  224. Детализация входящих вызовов
  225. </fo:block>
  226. <fo:block text-align="center" margin-bottom="7px" font-size="9">
  227. за расчетный период с <xsl:value-of select="$invoice_in.page/var[@name = 'P8']"/>г. по <xsl:value-of select="$invoice_in.page/var[@name = 'P9']"/>
  228. </fo:block>
  229.  
  230. <fo:block font-size="9" text-align="center" margin-bottom="10px" font-weight="bold">
  231. Договор оказания услуг электросвязи стандарта GSM 900/1800 №<xsl:value-of select="$invoice_in.page/var[@name = 'P1']"/>г. от <xsl:value-of select="$invoice_in.page/var[@name = 'P2']"/>г.
  232. </fo:block>
  233.  
  234. <!-- Header. Signature -->
  235. <fo:table table-layout="fixed" width="100%" margin-top="10px">
  236. <fo:table-column column-width="proportional-column-width(10)"/>
  237. <fo:table-column column-width="proportional-column-width(30)"/>
  238. <fo:table-column column-width="proportional-column-width(50)"/>
  239. <fo:table-body>
  240. <!-- <xsl:call-template name="common.general_table_filling">
  241. <xsl:with-param name="content" select="$invoice_in.table_content_info"/>
  242. <xsl:with-param name="source" select="$invoice_in.page"/>
  243. </xsl:call-template> -->
  244. <xsl:choose>
  245. <xsl:when test="$P4Length&gt;'80'">
  246. <xsl:call-template name="common.general_table_filling">
  247. <xsl:with-param name="content" select="$invoice_in.table_content_info_double_height"/>
  248. <xsl:with-param name="source" select="$invoice_in.page"/>
  249. </xsl:call-template>
  250. </xsl:when>
  251. <xsl:otherwise>
  252. <xsl:call-template name="common.general_table_filling">
  253. <xsl:with-param name="content" select="$invoice_in.table_content_info"/>
  254. <xsl:with-param name="source" select="$invoice_in.page"/>
  255. </xsl:call-template>
  256. </xsl:otherwise>
  257. </xsl:choose>
  258. </fo:table-body>
  259. </fo:table>
  260. </xsl:if>
  261. </xsl:template>
  262.  
  263. <!-- Invoice page 1 template -->
  264. <xsl:template name="invoice_1_2">
  265.  
  266. <xsl:choose>
  267. <xsl:when test="$P4Length&gt;'80'">
  268. <fo:block padding-top="5mm"></fo:block>
  269. </xsl:when>
  270. <xsl:otherwise>
  271. <fo:block></fo:block>
  272. </xsl:otherwise>
  273. </xsl:choose>
  274.  
  275. <xsl:for-each select="/document/pages[@name = 'ingoing_calls_detalization']/pages[@name = 'ingoing_calls_detalization_line']">
  276.  
  277. <fo:table table-layout="fixed" width="100%" margin-bottom="8px">
  278. <fo:table-column column-width="proportional-column-width(47)"/>
  279. <fo:table-column column-width="proportional-column-width(53)"/>
  280. <fo:table-body>
  281. <fo:table-row height="2mm" border-bottom="black solid 1px"><fo:table-cell number-columns-spanned="2"><fo:block/></fo:table-cell></fo:table-row>
  282. <fo:table-row>
  283. <fo:table-cell number-columns-spanned="2">
  284. <fo:block font-size="10" text-decoration="underline" font-weight="bold">Абонентский номер: <xsl:value-of select="./var[@name='P10']"/>
  285. </fo:block>
  286. </fo:table-cell>
  287. </fo:table-row>
  288. <!-- <fo:table-row>
  289. <fo:table-cell>
  290. <fo:block font-size="10" font-weight="bold" text-decoration="underline">
  291. <xsl:value-of select="./var[@name='P10']"></xsl:value-of>
  292. </fo:block>
  293. </fo:table-cell>
  294. </fo:table-row> -->
  295. </fo:table-body>
  296. </fo:table>
  297.  
  298.  
  299.  
  300. <xsl:if test="./page[@name = 'calls']">
  301. <!-- Detail table about in CALL -->
  302. <xsl:call-template name="table_detail_info">
  303. <xsl:with-param name="first_row">Сведения о входящих вызовах</xsl:with-param>
  304. <xsl:with-param name="first_column">Номер телефона</xsl:with-param>
  305. <xsl:with-param name="second_column">Дата, время</xsl:with-param>
  306. <xsl:with-param name="third_column">Длительность</xsl:with-param>
  307. <xsl:with-param name="fourth_column">Стоимость</xsl:with-param>
  308. </xsl:call-template>
  309. <xsl:call-template name="table_detail_info_1">
  310. <xsl:with-param name="invoice_in_table.page">calls</xsl:with-param>
  311. <xsl:with-param name="abonent" select="."/>
  312. </xsl:call-template>
  313. <xsl:call-template name="table_detail_info_1">
  314. <xsl:with-param name="invoice_in_table.page">Итого за входящие вызовы</xsl:with-param>
  315. <xsl:with-param name="abonent" select="./page[@name = 'calls_itogo']"/>
  316. </xsl:call-template>
  317. </xsl:if>
  318.  
  319. <xsl:if test="./page[@name = 'roum-calls']">
  320. <!-- Detail table about in ROUM-CALL -->
  321. <xsl:call-template name="table_detail_info">
  322. <xsl:with-param name="first_row">Сведения о входящих вызовах в роуминге*</xsl:with-param>
  323. <xsl:with-param name="first_column">Номер телефона</xsl:with-param>
  324. <xsl:with-param name="second_column">Дата, время</xsl:with-param>
  325. <xsl:with-param name="third_column">Длительность</xsl:with-param>
  326. <xsl:with-param name="fourth_column">Стоимость</xsl:with-param>
  327. </xsl:call-template>
  328. <xsl:call-template name="table_detail_info_1">
  329. <xsl:with-param name="invoice_in_table.page">roum-calls</xsl:with-param>
  330. <xsl:with-param name="abonent" select="."/>
  331. </xsl:call-template>
  332. <xsl:call-template name="table_detail_info_1">
  333. <xsl:with-param name="invoice_in_table.page">Итого за входящие вызовы в роуминге*</xsl:with-param>
  334. <xsl:with-param name="abonent" select="./page[@name = 'roum-calls_itogo']"/>
  335. </xsl:call-template>
  336. </xsl:if>
  337.  
  338. <xsl:if test="./page[@name = 'video-calls']">
  339. <!-- Detail table about in video-calls -->
  340. <xsl:call-template name="table_detail_info">
  341. <xsl:with-param name="first_row">Сведения о входящих видео-вызовах</xsl:with-param>
  342. <xsl:with-param name="first_column">Номер телефона</xsl:with-param>
  343. <xsl:with-param name="second_column">Дата, время</xsl:with-param>
  344. <xsl:with-param name="third_column">Кол-во</xsl:with-param>
  345. <xsl:with-param name="fourth_column">Стоимость</xsl:with-param>
  346. </xsl:call-template>
  347. <xsl:call-template name="table_detail_info_1">
  348. <xsl:with-param name="invoice_in_table.page">video-calls</xsl:with-param>
  349. <xsl:with-param name="abonent" select="."/>
  350. </xsl:call-template>
  351. <xsl:call-template name="table_detail_info_1">
  352. <xsl:with-param name="invoice_in_table.page">Итого за входящие видео-вызовы</xsl:with-param>
  353. <xsl:with-param name="abonent" select="./page[@name = 'video-calls_itogo']"/>
  354. </xsl:call-template>
  355. </xsl:if>
  356.  
  357. <xsl:if test="./page[@name = 'sms']">
  358. <!-- Detail table about in SMS -->
  359. <xsl:call-template name="table_detail_info">
  360. <xsl:with-param name="first_row">Сведения о входящих SMS</xsl:with-param>
  361. <xsl:with-param name="first_column">Номер телефона</xsl:with-param>
  362. <xsl:with-param name="second_column">Дата, время</xsl:with-param>
  363. <xsl:with-param name="third_column">Кол-во</xsl:with-param>
  364. <xsl:with-param name="fourth_column">Стоимость</xsl:with-param>
  365. </xsl:call-template>
  366. <xsl:call-template name="table_detail_info_1">
  367. <xsl:with-param name="invoice_in_table.page">sms</xsl:with-param>
  368. <xsl:with-param name="abonent" select="."/>
  369. </xsl:call-template>
  370. <xsl:call-template name="table_detail_info_1">
  371. <xsl:with-param name="invoice_in_table.page">Итого за входящие SMS</xsl:with-param>
  372. <xsl:with-param name="abonent" select="./page[@name = 'sms_itogo']"/>
  373. </xsl:call-template>
  374. </xsl:if>
  375.  
  376. <xsl:if test="./page[@name = 'roum-sms']">
  377. <!-- Detail table about in ROUM-SMS -->
  378. <xsl:call-template name="table_detail_info">
  379. <xsl:with-param name="first_row">Сведения о входящих SMS в роуминге*</xsl:with-param>
  380. <xsl:with-param name="first_column">Номер телефона</xsl:with-param>
  381. <xsl:with-param name="second_column">Дата, время</xsl:with-param>
  382. <xsl:with-param name="third_column">Кол-во</xsl:with-param>
  383. <xsl:with-param name="fourth_column">Стоимость</xsl:with-param>
  384. </xsl:call-template>
  385. <xsl:call-template name="table_detail_info_1">
  386. <xsl:with-param name="invoice_in_table.page">roum-sms</xsl:with-param>
  387. <xsl:with-param name="abonent" select="."/>
  388. </xsl:call-template>
  389. <xsl:call-template name="table_detail_info_1">
  390. <xsl:with-param name="invoice_in_table.page">Итого за входящие SMS в роуминге*</xsl:with-param>
  391. <xsl:with-param name="abonent" select="./page[@name = 'roum-sms_itogo']"/>
  392. </xsl:call-template>
  393. </xsl:if>
  394.  
  395. <xsl:if test="./page[@name = 'mms']">
  396. <!-- Detail table about in MMS -->
  397. <xsl:call-template name="table_detail_info">
  398. <xsl:with-param name="first_row">Сведения об входящих MMS</xsl:with-param>
  399. <xsl:with-param name="first_column">Номер телефона</xsl:with-param>
  400. <xsl:with-param name="second_column">Дата, время</xsl:with-param>
  401. <xsl:with-param name="third_column">Кол-во</xsl:with-param>
  402. <xsl:with-param name="fourth_column">Стоимость</xsl:with-param>
  403. </xsl:call-template>
  404. <xsl:call-template name="table_detail_info_1">
  405. <xsl:with-param name="invoice_in_table.page">mms</xsl:with-param>
  406. <xsl:with-param name="abonent" select="."/>
  407. </xsl:call-template>
  408. <xsl:call-template name="table_detail_info_1">
  409. <xsl:with-param name="invoice_in_table.page">Итого за входящие MMS</xsl:with-param>
  410. <xsl:with-param name="abonent" select="./page[@name = 'mms_itogo']"/>
  411. </xsl:call-template>
  412. </xsl:if>
  413.  
  414. <xsl:if test="./page[@name = 'roum-mms']">
  415. <!-- Detail table about in ROUM-MMS -->
  416. <xsl:call-template name="table_detail_info">
  417. <xsl:with-param name="first_row">Сведения об входящих MMS в роуминге*</xsl:with-param>
  418. <xsl:with-param name="first_column">Номер телефона</xsl:with-param>
  419. <xsl:with-param name="second_column">Дата, время</xsl:with-param>
  420. <xsl:with-param name="third_column">Кол-во</xsl:with-param>
  421. <xsl:with-param name="fourth_column">Стоимость</xsl:with-param>
  422. </xsl:call-template>
  423. <xsl:call-template name="table_detail_info_1">
  424. <xsl:with-param name="invoice_in_table.page">roum-mms</xsl:with-param>
  425. <xsl:with-param name="abonent" select="."/>
  426. </xsl:call-template>
  427. <xsl:call-template name="table_detail_info_1">
  428. <xsl:with-param name="invoice_in_table.page">Итого за входящие MMS в роуминге*</xsl:with-param>
  429. <xsl:with-param name="abonent" select="./page[@name = 'roum-mms_itogo']"/>
  430. </xsl:call-template>
  431. </xsl:if>
  432.  
  433. <!-- Detail table about in Internet -->
  434. <xsl:if test="./page[@name = 'internet']">
  435. <xsl:call-template name="table_detail_info">
  436. <xsl:with-param name="first_row">Интернет-трафик</xsl:with-param>
  437. <xsl:with-param name="first_column">Дата, время</xsl:with-param>
  438. <xsl:with-param name="third_column">Объем</xsl:with-param>
  439. <xsl:with-param name="fourth_column">Стоимость</xsl:with-param>
  440. </xsl:call-template>
  441. <xsl:call-template name="table_detail_info_1">
  442. <xsl:with-param name="invoice_in_table.page">internet</xsl:with-param>
  443. <xsl:with-param name="is_3_colums">true</xsl:with-param>
  444. <xsl:with-param name="abonent" select="."/>
  445. </xsl:call-template>
  446. <xsl:call-template name="table_detail_info_1">
  447. <xsl:with-param name="invoice_in_table.page">Итого Интернет-трафик</xsl:with-param>
  448. <xsl:with-param name="is_3_colums">true</xsl:with-param>
  449. <xsl:with-param name="abonent" select="./page[@name = 'internet_itogo']"/>
  450. </xsl:call-template>
  451. </xsl:if>
  452.  
  453. <xsl:if test="./page[@name = 'wap']">
  454. <!-- Detail table about in WAP -->
  455. <xsl:call-template name="table_detail_info">
  456. <xsl:with-param name="first_row">WAP-трафик</xsl:with-param>
  457. <xsl:with-param name="first_column">Дата, время</xsl:with-param>
  458. <xsl:with-param name="third_column">Объем</xsl:with-param>
  459. <xsl:with-param name="fourth_column">Стоимость</xsl:with-param>
  460. </xsl:call-template>
  461. <xsl:call-template name="table_detail_info_1">
  462. <xsl:with-param name="invoice_in_table.page">wap</xsl:with-param>
  463. <xsl:with-param name="abonent" select="."/>
  464. <xsl:with-param name="is_3_colums">true</xsl:with-param>
  465. </xsl:call-template>
  466. <xsl:call-template name="table_detail_info_1">
  467. <xsl:with-param name="invoice_in_table.page">Итого WAP-трафик</xsl:with-param>
  468. <xsl:with-param name="is_3_colums">true</xsl:with-param>
  469. <xsl:with-param name="abonent" select="./page[@name = 'wap_itogo']"/>
  470. </xsl:call-template>
  471. </xsl:if>
  472.  
  473. <xsl:if test="./page[@name = 'roum-video-calls']">
  474. <!-- Detail table about in roum-video-calls -->
  475. <xsl:call-template name="table_detail_info">
  476. <xsl:with-param name="first_row">Сведения о входящих видео-вызовах</xsl:with-param>
  477. <xsl:with-param name="first_column">Номер телефона</xsl:with-param>
  478. <xsl:with-param name="second_column">Дата, время</xsl:with-param>
  479. <xsl:with-param name="third_column">Длительность</xsl:with-param>
  480. <xsl:with-param name="fourth_column">Стоимость</xsl:with-param>
  481. </xsl:call-template>
  482. <xsl:call-template name="table_detail_info_1">
  483. <xsl:with-param name="invoice_in_table.page">roum-video-calls</xsl:with-param>
  484. <xsl:with-param name="abonent" select="."/>
  485. </xsl:call-template>
  486. <xsl:call-template name="table_detail_info_1">
  487. <xsl:with-param name="invoice_in_table.page">Итого за входящие видео-вызовы</xsl:with-param>
  488. <xsl:with-param name="abonent" select="./page[@name = 'roum-video-calls_itogo']"/>
  489. </xsl:call-template>
  490. </xsl:if>
  491.  
  492. </xsl:for-each>
  493.  
  494. </xsl:template>
  495. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement