p5dkp.ditafiles.wordindex.audience.xsl 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 ditaarch"
  15. version="2.0">
  16. <xsl:param name="p5dkp.ditafiles.xml" required="yes"/>
  17. <!-- Wykrycie audience z p5dkp.ditafiles.xml-->
  18. <xsl:template mode="p5dkp:ditafiles.wordindex.audience" match="p5ant-interface:dir.filename">
  19. <p5dkp:ditafiles.wordindex.audience>
  20. <xsl:apply-templates mode="p5dkp:ditafiles.wordindex.audience" select="p5dkp:ditafiles.file( text())"/>
  21. </p5dkp:ditafiles.wordindex.audience>
  22. </xsl:template>
  23. <xsl:template mode="p5dkp:ditafiles.wordindex.audience.map.path" match="p5ant-interface:dir.filename">
  24. <p5dkp:ditafiles.wordindex.audience.map.path>
  25. <xsl:for-each select="doc($p5dkp.ditafiles.xml)/p5dkp:ditafiles.xml/p5dkp:ditafiles.file//*[ descendant-or-self::*[ @p5dkp:true.path = current()/text() ]]">
  26. <p5dkp:ditafiles.file.path>
  27. <xsl:attribute name="p5dkp:object" select="name()"/>
  28. <xsl:copy-of select="@*" copy-namespaces="no"/>
  29. </p5dkp:ditafiles.file.path>
  30. </xsl:for-each>
  31. </p5dkp:ditafiles.wordindex.audience.map.path>
  32. </xsl:template>
  33. <xsl:function name="p5dkp:ditafiles.file">
  34. <xsl:param name="p5ant-interface:filepath.dir"/>
  35. <!--<xsl:message>#25 p5dkp:ditafiles.file call for <xsl:value-of select="$p5ant-interface:filepath.dir"/> </xsl:message>-->
  36. <xsl:copy-of select="doc($p5dkp.ditafiles.xml)//p5dkp:ditafiles.file[ @p5dkp:true.path = $p5ant-interface:filepath.dir]"/>
  37. </xsl:function>
  38. <xsl:template mode="p5dkp:ditafiles.wordindex.audience" match="p5dkp:ditafiles.file">
  39. <xsl:copy-of select="map.keys.audience"/>
  40. </xsl:template>
  41. <xsl:template mode="p5dkp:ditafiles.wordindex.audience p5dkp:ditafiles.wordindex.audience.map.path" match="*|text()|comment()"/>
  42. </xsl:stylesheet>