| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
- xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
- xmlns:p5dkp="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.xsd"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:p5xsda="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsd_asserts/p5xsda.xsd"
- xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"
- xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
- xmlns:p5ant-interface="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface.xsd"
- exclude-result-prefixes="xs"
- version="2.0">
- <xsl:include href="p5dkp.keyscope.xsl"/>
- <xsl:include href="p5dkp.map.keys.xsl"/>
- <xsl:include href="p5dkp.audience.xsl"/>
- <xsl:include href="p5dkp.map.audience.xsl"/>
- <xsl:include href="p5dkp.ditafiles.func.xsl"/>
- <xsl:include href="p5dkp.href.no.component.xsl"/>
- <xsl:include href="p5dkp.true.path.xsl"/>
- <xsl:include href="p5dkp.ditamap_to_reltable.filesuffix.xsl"/>
- <xsl:include href="../ant_interface/p5ant-interface.filename.ifexists.xsl"/>
-
- <xsl:include href="p5dkp.ditamap_to_reltable.debug.xsl"/>
- <xsl:include href="p5dkp.ditafiles.loop.xsl"/>
-
- <xsl:include href="p5dkp.to.dtd.xsl"/>
-
- <xsl:output indent="yes" method="xml" exclude-result-prefixes="ditaarch"/>
- <!--<xsl:output indent="yes" method="xml" standalone="no" doctype-public="-//OASIS//DTD DITA Glossary Group//EN" doctype-system="glossgroup.dtd"/>-->
- <xsl:strip-space elements="*"/>
-
-
-
- <xsl:param name="p5dkp.dita_root.ditamap" required="yes"/>
- <xsl:param name="basedir"/>
- <xsl:param name="debug"/>
- <xsl:param name="p5dkp:xsd" required="yes"/>
- <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/'" -->
- <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/'" -->
- <!--<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'"/>-->
- <xsl:param name="p5dkp.zadania_z_google.xml.ditamap"/>
- <xsl:param name="p5dkp.repository"/>
- <xsl:param name="p5dkp.MATRYCA_PROJEKTU_BUDZET_ETAP_ROLA_PRACOWNIK.szablony"/>
-
-
- <xsl:param name="system_cache__dita:props.disable"/><!-- to filter content in development progress - like devel_level_1 devel_level_2-->
- <!--<xsl:param name="procesy5-dita-templates-druki.symlink" select="'/Users/a.binder/procesy5-dita-templates-druki.symlink'"/>-->
- <!--<xsl:param name="procesy5-dita-templates-druki" select="'/Users/a.binder/procesy5-dita-templates-druki'"/>-->
-
- <xsl:param name="p5dkp.dita_root_all_resources_path"/>
- <xsl:param name="p5dkp.dita_root_all_resources.ditamap"/>
- <xsl:param name="p5dkp.ditafiles.filelist.xml" required="yes"/>
- <xsl:param name="p5dkp.ditafiles.debug.xml.dir" required="yes"/>
-
-
- <xsl:template match="p5dkp:ditafiles.xml" mode="p5dkp:ditafiles.debug.xml">
- <p5dkp:ditafiles.debug.xml>
- <xsl:copy-of select="@*"/>
- <xsl:variable name="p5dkp:ditafiles">
- <xsl:call-template name="p5dkp:ditafiles">
- <xsl:with-param name="p5dkp:true.path" select="$dita_root_path"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:for-each-group select="//p5dkp:ditafiles.file" group-by="@p5dkp:true.path">
-
- <xsl:apply-templates mode="p5dkp:ditafiles.debug" select=".">
- <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
- <xsl:with-param name="doc" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
- <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
- </xsl:apply-templates>
- </xsl:for-each-group>
- </p5dkp:ditafiles.debug.xml>
- </xsl:template>
-
-
- <!--<xsl:template match="*[@format='ditamap' and @p5dkp:true.path]" mode="p5dkp:ditafiles.debug">
- <!-\-<xsl:apply-templates select="@*" mode="#current"/>-\->
- <xsl:call-template name="p5dkp:ditafiles.debug.result-document">
- <xsl:with-param name="file" select="concat($p5dkp.ditafiles.debug.xml.dir,'/',@p5dkp:true.path)"/>
- </xsl:call-template>
- <xsl:copy copy-namespaces="no">
- <xsl:apply-templates select="@*" mode="#current"/>
- <xsl:comment>#64A saving to href="<xsl:value-of select="$p5dkp.ditafiles.debug.xml.dir"/>/<xsl:value-of select="@p5dkp:true.path"/>"</xsl:comment>
- <xsl:apply-templates mode="#current"/>
- </xsl:copy>
- </xsl:template>-->
-
-
- <!-- TODO blad do dodania do analizy - nie ma pliku a wystepuje jako klucz w peer.reltable
-
- <keydef href="_g_inc_/_g_6942.IOB_dla_Binder_Consulting_na_TaskManager___g_6942.IOB_dla_Binder_Consulting_na_TaskManager__d1e54.dita.dita"
- format="dita"
- keys="_g_6942.IOB_dla_Binder_Consulting_na_TaskManager__d1e54.dita"
- processing-role="resource-only"></keydef>
- #71-A curr- #thread:3
- -->
-
- <!-- todo blad wydarzenia kike zalaczaja mape wydarzen przez inna mape -
- [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'.
- -->
-
-
- <xsl:template match="*[@href or @p5dkp:true.path]" priority="8" mode="p5dkp:ditafiles.debug">
- <xsl:param name="map.path" required="yes"/>
- <xsl:param name="p5dkp:ditafiles" required="yes"/>
- <xsl:param name="doc" required="yes"/>
- <!--<xsl:apply-templates select="@*" mode="#current"/>-->
- <xsl:variable name="p5dkp:true.path" select="@p5dkp:true.path"/>
- <xsl:variable name="p5dkp:ditafiles">
- <xsl:call-template name="p5dkp:ditafiles">
- <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
- <xsl:with-param name="p5dkp:true.path" select="$p5dkp:true.path"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:copy copy-namespaces="no">
- <xsl:apply-templates select="@*" mode="#current"/>
- <xsl:choose>
- <xsl:when test="@format='ditamap'">
- <!--<xsl:call-template name="p5dkp:ditafiles.debug.result-document">
- <xsl:with-param name="file" select="concat($p5dkp.ditafiles.debug.xml.dir,'/',@p5dkp:true.path)"/>
- <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
- <xsl:with-param name="map.path" select="$map.path"/>
- <xsl:with-param name="doc" select="$p5dkp:true.path"/>
- </xsl:call-template>-->
- <p5dkp:ditafiles.debug.result-document>
- <!--<xsl:attribute name="file" select="$file"/>-->
- <!--<xsl:result-document href="{$file}">
-
- </xsl:result-document>-->
- <xsl:choose>
- <xsl:when test="doc-available(p5dkp:to_reltable.filesuffix.ditaname(@p5dkp:true.path))">
- <p5dkp:to_reltable.ditaname>
- <xsl:attribute name="p5dkp:to_reltable.ditaname.aviable" select="p5dkp:to_reltable.filesuffix.ditaname(@p5dkp:true.path)"/>
- <xsl:attribute name="p5dkp:true.path" select="@p5dkp:true.path"/>
- <xsl:apply-templates select="doc(p5dkp:to_reltable.filesuffix.ditaname(@p5dkp:true.path))" mode="p5dkp:ditamap_to_reltable.debug">
- <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
- <xsl:with-param name="doc" select="@p5dkp:true.path"/>
- <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath(@p5dkp:true.path)"/>
- </xsl:apply-templates>
- </p5dkp:to_reltable.ditaname>
- </xsl:when>
- <xsl:otherwise>
- <p5dkp:to_reltable.ditaname>
- <xsl:attribute name="p5dkp:true.path" select="@p5dkp:true.path"/>
- <xsl:attribute name="p5dkp:to_reltable.ditaname.not_aviable" select="p5dkp:to_reltable.filesuffix.ditaname(@p5dkp:true.path)"/>
- </p5dkp:to_reltable.ditaname>
- </xsl:otherwise>
- </xsl:choose>
- <p5dkp:ditafiles.debug.aftermap>
- <xsl:apply-templates mode="p5dkp:ditafiles.debug.aftermap">
- <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
- <xsl:with-param name="doc" select="@p5dkp:true.path"/>
- <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath(@p5dkp:true.path)"/>
- </xsl:apply-templates>
- </p5dkp:ditafiles.debug.aftermap>
- </p5dkp:ditafiles.debug.result-document>
-
- </xsl:when>
- <xsl:otherwise>
-
- </xsl:otherwise>
- </xsl:choose>
-
-
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="*[ not(@href) and not(@p5dkp:true.path)]" mode="p5dkp:ditafiles.debug">
- <xsl:param name="map.path" required="yes"/>
- <xsl:param name="p5dkp:ditafiles" required="yes"/>
- <xsl:param name="doc" required="yes"/>
- <!--<xsl:apply-templates select="@*" mode="#current"/>-->
- <xsl:copy copy-namespaces="no">
- <xsl:apply-templates select="@*" mode="#current">
- <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
- <xsl:with-param name="doc" select="$p5dkp.zadania_z_google.xml.ditamap"/>
- <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
- </xsl:apply-templates>
- <xsl:apply-templates mode="#current" select=".">
- <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
- <xsl:with-param name="doc" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
- <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
- </xsl:apply-templates>
- <!--<xsl:call-template name="p5dkp:ditafiles.debug.result-document">
- <xsl:with-param name="file" select="concat($p5dkp.ditafiles.debug.xml.dir,'/',concat(@map.path,@href))"/>
- </xsl:call-template>-->
- <!--<xsl:choose>
- <xsl:when test="doc-available(p5dkp:to_reltable.filesuffix.ditaname(concat(@map.path,@href)))">
- <p5dkp:to_reltable.ditaname>
- <xsl:attribute name="p5dkp:to_reltable.ditaname.aviable" select="p5dkp:to_reltable.filesuffix.ditaname(concat(@map.path,@href))"/>
- </p5dkp:to_reltable.ditaname>
- </xsl:when>
- <xsl:otherwise>
- <p5dkp:to_reltable.ditaname>
- <xsl:attribute name="p5dkp:to_reltable.ditaname.not_aviable" select="p5dkp:to_reltable.filesuffix.ditaname(concat(@map.path,@href))"/>
- </p5dkp:to_reltable.ditaname>
- </xsl:otherwise>
- </xsl:choose>-->
- <!--<xsl:apply-templates mode="p5dkp:ditafiles.debug.aftermap"/>-->
- </xsl:copy>
- </xsl:template>
-
-
- <!--<xsl:template name="p5dkp:ditafiles.debug.result-document">
- <xsl:param name="file" required="yes"/>
- <xsl:param name="map.path" required="yes"/>
- <xsl:param name="p5dkp:ditafiles" required="yes"/>
- <xsl:param name="doc" required="yes"/>
- <xsl:message>#64 saving to href=#### <xsl:value-of select="$file"/> ### </xsl:message>
- <!-\-<xsl:comment>#64 saving to href=#### <xsl:value-of select="$file"/> ### </xsl:comment>-\->
- <p5dkp:ditafiles.debug.result-document>
- <xsl:attribute name="file" select="$file"/>
- <!-\-<xsl:result-document href="{$file}">
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="p5dkp:ditafiles.debug.result-document"/>
- </xsl:copy>
- </xsl:result-document>-\->
- </p5dkp:ditafiles.debug.result-document>
- </xsl:template>-->
-
- <!--<xsl:template mode="p5dkp:ditafiles.debug.result-document" match="*">
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="p5dkp:ditafiles.debug.result-document"/>
- </xsl:copy>
- </xsl:template>-->
-
- <!--<xsl:template mode="p5dkp:ditafiles.debug.result-document" match="p5dkp:ditafiles.file[ @format='ditamap']">
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <xsl:comment>#82 stop at mode="p5dkp:ditafiles.debug.result-document" </xsl:comment>
- </xsl:copy>
- </xsl:template>-->
- <xsl:template match="ph" mode="p5dkp:ditafiles.debug">
- <xsl:param name="map.path" required="yes"/>
- <xsl:param name="p5dkp:ditafiles" required="yes"/>
- <xsl:param name="doc" required="yes"/>
- <!--<xsl:apply-templates select="@*" mode="#current"/>-->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
- <xsl:with-param name="doc" select="$p5dkp.zadania_z_google.xml.ditamap"/>
- <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
- </xsl:apply-templates>
- </xsl:template>
-
-
-
-
- <!--<xsl:template match="p5dkp:ditafiles.file[@format='ditamap']" mode="p5dkp:ditafiles.debug.aftermap">
- <!-\-<xsl:apply-templates select="@*" mode="#current"/>-\->
- <xsl:comment>#180 stopped </xsl:comment>
- </xsl:template>-->
- <xsl:template match="p5dkp:ditafiles.file[not(@p5dkp:true.path)]" mode="p5dkp:ditafiles.debug.aftermap">
- <xsl:message terminate="yes">#25559 excpeion not having @p5dkp:true.path</xsl:message>
- </xsl:template>
-
- <xsl:template match="p5dkp:ditafiles.file[@p5dkp:true.path]" mode="p5dkp:ditafiles.debug.aftermap">
- <xsl:param name="map.path" required="yes"/>
- <xsl:param name="p5dkp:ditafiles" required="yes"/>
- <xsl:param name="doc" required="yes"/>
- <!--<xsl:apply-templates select="@*" mode="#current"/>-->
- <xsl:variable name="p5dkp:true.path" select="@p5dkp:true.path"/>
- <xsl:copy copy-namespaces="no">
- <xsl:apply-templates mode="p5dkp:ditafiles.debug.aftermap" select="@*"/>
- <!--<xsl:apply-templates mode="#current">
- <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
- <xsl:with-param name="doc" select="$p5dkp.zadania_z_google.xml.ditamap"/>
- <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
- </xsl:apply-templates>-->
-
-
- <xsl:choose>
- <xsl:when test="p5dkp:ditafiles(@p5dkp:true.path,$p5dkp:ditafiles)">
- <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>
- <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}">
- <xsl:if test="p5dkp:ditafiles.func.isditafile(@href)"><xsl:attribute name="p5dkp:ditafiles.func.isditafile" select="p5dkp:ditafiles.func.isditafile(@href)"/></xsl:if>
- <xsl:choose>
- <xsl:when test="@id"><xsl:copy-of select="@id"/></xsl:when>
- <xsl:otherwise><xsl:attribute name="id" select="concat('ditafiles_',generate-id())"/></xsl:otherwise>
- </xsl:choose>
-
- </p5dkp:ditamap_to_reltable.debug.childs.loop>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="p5dkp:ditafiles">
- <xsl:call-template name="p5dkp:ditafiles">
- <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
- <xsl:with-param name="p5dkp:true.path" select="@p5dkp:true.path"/>
- </xsl:call-template>
- </xsl:variable>
- <p5dkp:ditamap_to_reltable.debug.childs>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
- <xsl:with-param name="doc" select="@p5dkp:true.path"/>
- <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath(@p5dkp:true.path)"/>
- </xsl:apply-templates>
- </p5dkp:ditamap_to_reltable.debug.childs>
- </xsl:otherwise>
- </xsl:choose>
-
-
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="keydef" mode="p5dkp:ditafiles.debug.aftermap">
- <xsl:param name="map.path" required="yes"/>
- <xsl:param name="p5dkp:ditafiles" required="yes"/>
- <xsl:param name="doc" required="yes"/>
- <!--<xsl:apply-templates select="@*" mode="#current"/>-->
- <xsl:copy copy-namespaces="no">
- <xsl:apply-templates mode="p5dkp:ditafiles.debug.aftermap" select="@*"/>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
- <xsl:with-param name="doc" select="$p5dkp.zadania_z_google.xml.ditamap"/>
- <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
-
- </xsl:apply-templates>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="*" mode="p5dkp:ditafiles.debug.aftermap">
- <xsl:param name="map.path" required="yes"/>
- <xsl:param name="p5dkp:ditafiles" required="yes"/>
- <xsl:param name="doc" required="yes"/>
- <!--<xsl:apply-templates select="@*" mode="#current"/>-->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="p5dkp:ditafiles" select="$p5dkp:ditafiles"/>
- <xsl:with-param name="doc" select="$p5dkp.zadania_z_google.xml.ditamap"/>
- <xsl:with-param name="map.path" select="p5dkp:ditafiles.dir_from_fullpath($p5dkp.dita_root.ditamap)"/>
-
- </xsl:apply-templates>
- </xsl:template>
-
- <!--<xsl:template match="*[@format='ditamap']" mode="p5dkp:ditafiles.debug">
- <!-\-<xsl:apply-templates select="@*" mode="#current"/>-\->
- <xsl:comment>#180 stopped </xsl:comment>
- </xsl:template>-->
-
-
-
- <xsl:template mode="p5dkp:ditafiles.debug p5dkp:ditafiles.debug.aftermap" match="@href|@scope|@keys">
- <xsl:copy-of select="."/>
- </xsl:template>
-
- <xsl:template mode="p5dkp:ditafiles.debug p5dkp:ditafiles.debug.aftermap" match="@*"/>
- <xsl:template match="text()|comment()" mode="p5dkp:ditafiles.debug p5dkp:ditafiles.debug.aftermap"/>
-
-
-
-
-
- </xsl:stylesheet>
|