p5dkp.ditafiles.debug.xsl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  3. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
  5. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  6. xmlns:p5dkp="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.xsd"
  7. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  8. xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
  9. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  10. xmlns:p5xsda="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsd_asserts/p5xsda.xsd"
  11. xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"
  12. xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
  13. xmlns:p5ant-interface="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface.xsd"
  14. exclude-result-prefixes="xs"
  15. version="2.0">
  16. <xsl:include href="p5dkp.keyscope.xsl"/>
  17. <xsl:include href="p5dkp.map.keys.xsl"/>
  18. <xsl:include href="p5dkp.audience.xsl"/>
  19. <xsl:include href="p5dkp.map.audience.xsl"/>
  20. <xsl:include href="p5dkp.ditafiles.func.xsl"/>
  21. <xsl:include href="p5dkp.href.no.component.xsl"/>
  22. <xsl:include href="p5dkp.true.path.xsl"/>
  23. <xsl:include href="p5dkp.ditamap_to_reltable.filesuffix.xsl"/>
  24. <xsl:include href="../ant_interface/p5ant-interface.filename.ifexists.xsl"/>
  25. <xsl:include href="p5dkp.ditamap_to_reltable.debug.xsl"/>
  26. <xsl:include href="p5dkp.ditafiles.loop.xsl"/>
  27. <xsl:include href="p5dkp.to.dtd.xsl"/>
  28. <xsl:output indent="yes" method="xml" exclude-result-prefixes="ditaarch"/>
  29. <!--<xsl:output indent="yes" method="xml" standalone="no" doctype-public="-//OASIS//DTD DITA Glossary Group//EN" doctype-system="glossgroup.dtd"/>-->
  30. <xsl:strip-space elements="*"/>
  31. <xsl:param name="p5dkp.dita_root.ditamap" required="yes"/>
  32. <xsl:param name="basedir"/>
  33. <xsl:param name="debug"/>
  34. <xsl:param name="p5dkp:xsd" required="yes"/>
  35. <xsl:param name="dita_root_path" required="yes"/> <!-- select="'/Users/a.binder/procesy5-dita-templates-druki/6927.Projekt_Badawczo_Roz_Procesy5_Stratego/PrzebiegProjektu/Budzet_Adam_Arek/'" -->
  36. <xsl:param name="dita_out_dir" required="yes" /> <!-- select="'/Users/a.binder/procesy5-dita-templates-druki/6927.Projekt_Badawczo_Roz_Procesy5_Stratego/PrzebiegProjektu/Budzet_Adam_Arek/generated_operat/'" -->
  37. <!--<xsl:param name="zadania_z_google.xml" select="'/Users/a.binder/procesy5-dita-templates-druki/6927.Projekt_Badawczo_Roz_Procesy5_Stratego/PrzebiegProjektu/Budzet_Adam_Arek/zadania_z_googledocs/zadania_z_google.xml'"/>-->
  38. <xsl:param name="p5dkp.zadania_z_google.xml.ditamap"/>
  39. <xsl:param name="p5dkp.repository"/>
  40. <xsl:param name="p5dkp.MATRYCA_PROJEKTU_BUDZET_ETAP_ROLA_PRACOWNIK.szablony"/>
  41. <xsl:param name="system_cache__dita:props.disable"/><!-- to filter content in development progress - like devel_level_1 devel_level_2-->
  42. <!--<xsl:param name="procesy5-dita-templates-druki.symlink" select="'/Users/a.binder/procesy5-dita-templates-druki.symlink'"/>-->
  43. <!--<xsl:param name="procesy5-dita-templates-druki" select="'/Users/a.binder/procesy5-dita-templates-druki'"/>-->
  44. <xsl:param name="p5dkp.dita_root_all_resources_path"/>
  45. <xsl:param name="p5dkp.dita_root_all_resources.ditamap"/>
  46. <xsl:param name="p5dkp.ditafiles.filelist.xml" required="yes"/>
  47. <xsl:param name="p5dkp.ditafiles.debug.xml.dir" required="yes"/>
  48. <xsl:template match="p5dkp:ditafiles.xml" mode="p5dkp:ditafiles.debug.xml">
  49. <p5dkp:ditafiles.debug.xml>
  50. <xsl:copy-of select="@*"/>
  51. <xsl:variable name="p5dkp:ditafiles">
  52. <xsl:call-template name="p5dkp:ditafiles">
  53. <xsl:with-param name="p5dkp:true.path" select="$dita_root_path"/>
  54. </xsl:call-template>
  55. </xsl:variable>
  56. <xsl:for-each-group select="//p5dkp:ditafiles.file" group-by="@p5dkp:true.path">
  57. <xsl:apply-templates mode="p5dkp:ditafiles.debug" select=".">
  58. <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
  59. <xsl:with-param name="doc" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
  60. <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
  61. </xsl:apply-templates>
  62. </xsl:for-each-group>
  63. </p5dkp:ditafiles.debug.xml>
  64. </xsl:template>
  65. <!--<xsl:template match="*[@format='ditamap' and @p5dkp:true.path]" mode="p5dkp:ditafiles.debug">
  66. <!-\-<xsl:apply-templates select="@*" mode="#current"/>-\->
  67. <xsl:call-template name="p5dkp:ditafiles.debug.result-document">
  68. <xsl:with-param name="file" select="concat($p5dkp.ditafiles.debug.xml.dir,'/',@p5dkp:true.path)"/>
  69. </xsl:call-template>
  70. <xsl:copy copy-namespaces="no">
  71. <xsl:apply-templates select="@*" mode="#current"/>
  72. <xsl:comment>#64A saving to href="<xsl:value-of select="$p5dkp.ditafiles.debug.xml.dir"/>/<xsl:value-of select="@p5dkp:true.path"/>"</xsl:comment>
  73. <xsl:apply-templates mode="#current"/>
  74. </xsl:copy>
  75. </xsl:template>-->
  76. <!-- TODO blad do dodania do analizy - nie ma pliku a wystepuje jako klucz w peer.reltable
  77. <keydef href="_g_inc_/_g_6942.IOB_dla_Binder_Consulting_na_TaskManager___g_6942.IOB_dla_Binder_Consulting_na_TaskManager__d1e54.dita.dita"
  78. format="dita"
  79. keys="_g_6942.IOB_dla_Binder_Consulting_na_TaskManager__d1e54.dita"
  80. processing-role="resource-only"></keydef>
  81. #71-A curr- #thread:3
  82. -->
  83. <!-- todo blad wydarzenia kike zalaczaja mape wydarzen przez inna mape -
  84. [DOTX053E]: A element that references another map indirectly includes itself, which results in an infinite loop. The original map reference is to 'PISMA/pisma__bindercons__.peer.reltable.ditamap'.
  85. -->
  86. <xsl:template match="*[@href or @p5dkp:true.path]" priority="8" mode="p5dkp:ditafiles.debug">
  87. <xsl:param name="map.path" required="yes"/>
  88. <xsl:param name="p5dkp:ditafiles" required="yes"/>
  89. <xsl:param name="doc" required="yes"/>
  90. <!--<xsl:apply-templates select="@*" mode="#current"/>-->
  91. <xsl:variable name="p5dkp:true.path" select="@p5dkp:true.path"/>
  92. <xsl:variable name="p5dkp:ditafiles">
  93. <xsl:call-template name="p5dkp:ditafiles">
  94. <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
  95. <xsl:with-param name="p5dkp:true.path" select="$p5dkp:true.path"/>
  96. </xsl:call-template>
  97. </xsl:variable>
  98. <xsl:copy copy-namespaces="no">
  99. <xsl:apply-templates select="@*" mode="#current"/>
  100. <xsl:choose>
  101. <xsl:when test="@format='ditamap'">
  102. <!--<xsl:call-template name="p5dkp:ditafiles.debug.result-document">
  103. <xsl:with-param name="file" select="concat($p5dkp.ditafiles.debug.xml.dir,'/',@p5dkp:true.path)"/>
  104. <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
  105. <xsl:with-param name="map.path" select="$map.path"/>
  106. <xsl:with-param name="doc" select="$p5dkp:true.path"/>
  107. </xsl:call-template>-->
  108. <p5dkp:ditafiles.debug.result-document>
  109. <!--<xsl:attribute name="file" select="$file"/>-->
  110. <!--<xsl:result-document href="{$file}">
  111. </xsl:result-document>-->
  112. <xsl:choose>
  113. <xsl:when test="doc-available(p5dkp:to_reltable.filesuffix.ditaname(@p5dkp:true.path))">
  114. <p5dkp:to_reltable.ditaname>
  115. <xsl:attribute name="p5dkp:to_reltable.ditaname.aviable" select="p5dkp:to_reltable.filesuffix.ditaname(@p5dkp:true.path)"/>
  116. <xsl:attribute name="p5dkp:true.path" select="@p5dkp:true.path"/>
  117. <xsl:apply-templates select="doc(p5dkp:to_reltable.filesuffix.ditaname(@p5dkp:true.path))" mode="p5dkp:ditamap_to_reltable.debug">
  118. <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
  119. <xsl:with-param name="doc" select="@p5dkp:true.path"/>
  120. <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath(@p5dkp:true.path)"/>
  121. </xsl:apply-templates>
  122. </p5dkp:to_reltable.ditaname>
  123. </xsl:when>
  124. <xsl:otherwise>
  125. <p5dkp:to_reltable.ditaname>
  126. <xsl:attribute name="p5dkp:true.path" select="@p5dkp:true.path"/>
  127. <xsl:attribute name="p5dkp:to_reltable.ditaname.not_aviable" select="p5dkp:to_reltable.filesuffix.ditaname(@p5dkp:true.path)"/>
  128. </p5dkp:to_reltable.ditaname>
  129. </xsl:otherwise>
  130. </xsl:choose>
  131. <p5dkp:ditafiles.debug.aftermap>
  132. <xsl:apply-templates mode="p5dkp:ditafiles.debug.aftermap">
  133. <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
  134. <xsl:with-param name="doc" select="@p5dkp:true.path"/>
  135. <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath(@p5dkp:true.path)"/>
  136. </xsl:apply-templates>
  137. </p5dkp:ditafiles.debug.aftermap>
  138. </p5dkp:ditafiles.debug.result-document>
  139. </xsl:when>
  140. <xsl:otherwise>
  141. </xsl:otherwise>
  142. </xsl:choose>
  143. </xsl:copy>
  144. </xsl:template>
  145. <xsl:template match="*[ not(@href) and not(@p5dkp:true.path)]" mode="p5dkp:ditafiles.debug">
  146. <xsl:param name="map.path" required="yes"/>
  147. <xsl:param name="p5dkp:ditafiles" required="yes"/>
  148. <xsl:param name="doc" required="yes"/>
  149. <!--<xsl:apply-templates select="@*" mode="#current"/>-->
  150. <xsl:copy copy-namespaces="no">
  151. <xsl:apply-templates select="@*" mode="#current">
  152. <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
  153. <xsl:with-param name="doc" select="$p5dkp.zadania_z_google.xml.ditamap"/>
  154. <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
  155. </xsl:apply-templates>
  156. <xsl:apply-templates mode="#current" select=".">
  157. <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
  158. <xsl:with-param name="doc" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
  159. <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
  160. </xsl:apply-templates>
  161. <!--<xsl:call-template name="p5dkp:ditafiles.debug.result-document">
  162. <xsl:with-param name="file" select="concat($p5dkp.ditafiles.debug.xml.dir,'/',concat(@map.path,@href))"/>
  163. </xsl:call-template>-->
  164. <!--<xsl:choose>
  165. <xsl:when test="doc-available(p5dkp:to_reltable.filesuffix.ditaname(concat(@map.path,@href)))">
  166. <p5dkp:to_reltable.ditaname>
  167. <xsl:attribute name="p5dkp:to_reltable.ditaname.aviable" select="p5dkp:to_reltable.filesuffix.ditaname(concat(@map.path,@href))"/>
  168. </p5dkp:to_reltable.ditaname>
  169. </xsl:when>
  170. <xsl:otherwise>
  171. <p5dkp:to_reltable.ditaname>
  172. <xsl:attribute name="p5dkp:to_reltable.ditaname.not_aviable" select="p5dkp:to_reltable.filesuffix.ditaname(concat(@map.path,@href))"/>
  173. </p5dkp:to_reltable.ditaname>
  174. </xsl:otherwise>
  175. </xsl:choose>-->
  176. <!--<xsl:apply-templates mode="p5dkp:ditafiles.debug.aftermap"/>-->
  177. </xsl:copy>
  178. </xsl:template>
  179. <!--<xsl:template name="p5dkp:ditafiles.debug.result-document">
  180. <xsl:param name="file" required="yes"/>
  181. <xsl:param name="map.path" required="yes"/>
  182. <xsl:param name="p5dkp:ditafiles" required="yes"/>
  183. <xsl:param name="doc" required="yes"/>
  184. <xsl:message>#64 saving to href=#### <xsl:value-of select="$file"/> ### </xsl:message>
  185. <!-\-<xsl:comment>#64 saving to href=#### <xsl:value-of select="$file"/> ### </xsl:comment>-\->
  186. <p5dkp:ditafiles.debug.result-document>
  187. <xsl:attribute name="file" select="$file"/>
  188. <!-\-<xsl:result-document href="{$file}">
  189. <xsl:copy copy-namespaces="no">
  190. <xsl:copy-of select="@*"/>
  191. <xsl:apply-templates mode="p5dkp:ditafiles.debug.result-document"/>
  192. </xsl:copy>
  193. </xsl:result-document>-\->
  194. </p5dkp:ditafiles.debug.result-document>
  195. </xsl:template>-->
  196. <!--<xsl:template mode="p5dkp:ditafiles.debug.result-document" match="*">
  197. <xsl:copy copy-namespaces="no">
  198. <xsl:copy-of select="@*"/>
  199. <xsl:apply-templates mode="p5dkp:ditafiles.debug.result-document"/>
  200. </xsl:copy>
  201. </xsl:template>-->
  202. <!--<xsl:template mode="p5dkp:ditafiles.debug.result-document" match="p5dkp:ditafiles.file[ @format='ditamap']">
  203. <xsl:copy copy-namespaces="no">
  204. <xsl:copy-of select="@*"/>
  205. <xsl:comment>#82 stop at mode="p5dkp:ditafiles.debug.result-document" </xsl:comment>
  206. </xsl:copy>
  207. </xsl:template>-->
  208. <xsl:template match="ph" mode="p5dkp:ditafiles.debug">
  209. <xsl:param name="map.path" required="yes"/>
  210. <xsl:param name="p5dkp:ditafiles" required="yes"/>
  211. <xsl:param name="doc" required="yes"/>
  212. <!--<xsl:apply-templates select="@*" mode="#current"/>-->
  213. <xsl:apply-templates mode="#current">
  214. <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
  215. <xsl:with-param name="doc" select="$p5dkp.zadania_z_google.xml.ditamap"/>
  216. <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
  217. </xsl:apply-templates>
  218. </xsl:template>
  219. <!--<xsl:template match="p5dkp:ditafiles.file[@format='ditamap']" mode="p5dkp:ditafiles.debug.aftermap">
  220. <!-\-<xsl:apply-templates select="@*" mode="#current"/>-\->
  221. <xsl:comment>#180 stopped </xsl:comment>
  222. </xsl:template>-->
  223. <xsl:template match="p5dkp:ditafiles.file[not(@p5dkp:true.path)]" mode="p5dkp:ditafiles.debug.aftermap">
  224. <xsl:message terminate="yes">#25559 excpeion not having @p5dkp:true.path</xsl:message>
  225. </xsl:template>
  226. <xsl:template match="p5dkp:ditafiles.file[@p5dkp:true.path]" mode="p5dkp:ditafiles.debug.aftermap">
  227. <xsl:param name="map.path" required="yes"/>
  228. <xsl:param name="p5dkp:ditafiles" required="yes"/>
  229. <xsl:param name="doc" required="yes"/>
  230. <!--<xsl:apply-templates select="@*" mode="#current"/>-->
  231. <xsl:variable name="p5dkp:true.path" select="@p5dkp:true.path"/>
  232. <xsl:copy copy-namespaces="no">
  233. <xsl:apply-templates mode="p5dkp:ditafiles.debug.aftermap" select="@*"/>
  234. <!--<xsl:apply-templates mode="#current">
  235. <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
  236. <xsl:with-param name="doc" select="$p5dkp.zadania_z_google.xml.ditamap"/>
  237. <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
  238. </xsl:apply-templates>-->
  239. <xsl:choose>
  240. <xsl:when test="p5dkp:ditafiles(@p5dkp:true.path,$p5dkp:ditafiles)">
  241. <xsl:message>#276AAAAAAAAAA !!! existient LOOP <xsl:value-of select="concat($map.path,'/')"/>/<xsl:value-of select="p5dkp:to_reltable.ditaname(p5dkp:href.no.component(@href))"/></xsl:message>
  242. <p5dkp:ditamap_to_reltable.debug.childs.loop p5dkp:true.path="{$p5dkp:true.path}" href="{p5dkp:href.no.component(@href)}" map.path="{$map.path}" doc="{$doc}" id="{@id}">
  243. <xsl:if test="p5dkp:ditafiles.func.isditafile(@href)"><xsl:attribute name="p5dkp:ditafiles.func.isditafile" select="p5dkp:ditafiles.func.isditafile(@href)"/></xsl:if>
  244. <xsl:choose>
  245. <xsl:when test="@id"><xsl:copy-of select="@id"/></xsl:when>
  246. <xsl:otherwise><xsl:attribute name="id" select="concat('ditafiles_',generate-id())"/></xsl:otherwise>
  247. </xsl:choose>
  248. </p5dkp:ditamap_to_reltable.debug.childs.loop>
  249. </xsl:when>
  250. <xsl:otherwise>
  251. <xsl:variable name="p5dkp:ditafiles">
  252. <xsl:call-template name="p5dkp:ditafiles">
  253. <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
  254. <xsl:with-param name="p5dkp:true.path" select="@p5dkp:true.path"/>
  255. </xsl:call-template>
  256. </xsl:variable>
  257. <p5dkp:ditamap_to_reltable.debug.childs>
  258. <xsl:apply-templates mode="#current">
  259. <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
  260. <xsl:with-param name="doc" select="@p5dkp:true.path"/>
  261. <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath(@p5dkp:true.path)"/>
  262. </xsl:apply-templates>
  263. </p5dkp:ditamap_to_reltable.debug.childs>
  264. </xsl:otherwise>
  265. </xsl:choose>
  266. </xsl:copy>
  267. </xsl:template>
  268. <xsl:template match="keydef" mode="p5dkp:ditafiles.debug.aftermap">
  269. <xsl:param name="map.path" required="yes"/>
  270. <xsl:param name="p5dkp:ditafiles" required="yes"/>
  271. <xsl:param name="doc" required="yes"/>
  272. <!--<xsl:apply-templates select="@*" mode="#current"/>-->
  273. <xsl:copy copy-namespaces="no">
  274. <xsl:apply-templates mode="p5dkp:ditafiles.debug.aftermap" select="@*"/>
  275. <xsl:apply-templates mode="#current">
  276. <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
  277. <xsl:with-param name="doc" select="$p5dkp.zadania_z_google.xml.ditamap"/>
  278. <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
  279. </xsl:apply-templates>
  280. </xsl:copy>
  281. </xsl:template>
  282. <xsl:template match="*" mode="p5dkp:ditafiles.debug.aftermap">
  283. <xsl:param name="map.path" required="yes"/>
  284. <xsl:param name="p5dkp:ditafiles" required="yes"/>
  285. <xsl:param name="doc" required="yes"/>
  286. <!--<xsl:apply-templates select="@*" mode="#current"/>-->
  287. <xsl:apply-templates mode="#current">
  288. <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
  289. <xsl:with-param name="doc" select="$p5dkp.zadania_z_google.xml.ditamap"/>
  290. <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
  291. </xsl:apply-templates>
  292. </xsl:template>
  293. <!--<xsl:template match="*[@format='ditamap']" mode="p5dkp:ditafiles.debug">
  294. <!-\-<xsl:apply-templates select="@*" mode="#current"/>-\->
  295. <xsl:comment>#180 stopped </xsl:comment>
  296. </xsl:template>-->
  297. <xsl:template mode="p5dkp:ditafiles.debug p5dkp:ditafiles.debug.aftermap" match="@href|@scope|@keys">
  298. <xsl:copy-of select="."/>
  299. </xsl:template>
  300. <xsl:template mode="p5dkp:ditafiles.debug p5dkp:ditafiles.debug.aftermap" match="@*"/>
  301. <xsl:template match="text()|comment()" mode="p5dkp:ditafiles.debug p5dkp:ditafiles.debug.aftermap"/>
  302. </xsl:stylesheet>