|
@@ -19,30 +19,18 @@
|
|
|
|
|
|
|
|
<!--<xsl:include href="PROCES_INCLUDE.xsl"/>-->
|
|
<!--<xsl:include href="PROCES_INCLUDE.xsl"/>-->
|
|
|
|
|
|
|
|
- <xsl:param name="dita_task_template_file_param" select="'main.dita'"/>
|
|
|
|
|
- <xsl:variable name="dita_task_template_file" select="doc($dita_task_template_file_param)"/>
|
|
|
|
|
|
|
+ <xsl:param name="dita_task_template_file_param" select="'main.dita'"/><!--dita template file -->
|
|
|
|
|
+ <xsl:variable name="dita_task_template_file" select="doc($dita_task_template_file_param)"/><!--first level data associated to main.dita template $(dita_task_template_file_param)-->
|
|
|
|
|
|
|
|
- <!--<xsl:variable name="dita_task_template_file">
|
|
|
|
|
- <test>
|
|
|
|
|
- <var>test</var>
|
|
|
|
|
- </test>
|
|
|
|
|
- </xsl:variable>-->
|
|
|
|
|
-
|
|
|
|
|
- <!--<xsl:variable name="main_template" select="doc('IN7_DZIENNIK_KORESP.dita/main.dita')"/>-->
|
|
|
|
|
|
|
|
|
|
- <!--<xsl:template match="root">
|
|
|
|
|
- <xsl:variable name="dita_task_template_file" select="topic"/>
|
|
|
|
|
- <xsl:apply-templates>
|
|
|
|
|
- <xsl:with-param name="dita_task_template_file" select="$dita_task_template_file.xml"/>
|
|
|
|
|
- </xsl:apply-templates>
|
|
|
|
|
- </xsl:template>-->
|
|
|
|
|
|
|
+ <!-- przetwarzamy pierwszy otrzymany obiekt z API - pojedynczy feature - czy nie powinnismy pierw przeleciec druk aby z niego sie dowiedziec co pobrac? -->
|
|
|
|
|
|
|
|
<xsl:template match="wfs:FeatureCollection|gml:featureMember">
|
|
<xsl:template match="wfs:FeatureCollection|gml:featureMember">
|
|
|
<xsl:apply-templates/>
|
|
<xsl:apply-templates/>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <!-- todo add prefix default_db__x3A__IN7_DZIENNIK_KORESP: -->
|
|
|
|
|
|
|
+ <!-- glowny punkt dzialania -->
|
|
|
<xsl:template match="IN7_DZIENNIK_KORESP|default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP|p5_default_db:IN7_DZIENNIK_KORESP|default_db:in7_dziennik_koresp"> <!-- default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP|p5_default_db:IN7_DZIENNIK_KORESP| -->
|
|
<xsl:template match="IN7_DZIENNIK_KORESP|default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP|p5_default_db:IN7_DZIENNIK_KORESP|default_db:in7_dziennik_koresp"> <!-- default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP|p5_default_db:IN7_DZIENNIK_KORESP| -->
|
|
|
<!--<xsl:param name="dita_task_template_file"/>-->
|
|
<!--<xsl:param name="dita_task_template_file"/>-->
|
|
|
|
|
|
|
@@ -52,6 +40,10 @@
|
|
|
</xsl:apply-templates>
|
|
</xsl:apply-templates>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
|
|
|
|
|
|
|
+ <xsl:result-document href="IN7_DZIENNIK_KORESP.dita_input_obj_with_xpath.xml">
|
|
|
|
|
+ <xsl:copy-of select="$input_obj_with_xpath"/>
|
|
|
|
|
+ </xsl:result-document>
|
|
|
|
|
+
|
|
|
<xsl:variable name="template_with_fit_vars">
|
|
<xsl:variable name="template_with_fit_vars">
|
|
|
<xsl:apply-templates mode="Procesy5_dita_assingn_values_x_path" select="$dita_task_template_file"> <!-- exslt:node-set($-->
|
|
<xsl:apply-templates mode="Procesy5_dita_assingn_values_x_path" select="$dita_task_template_file"> <!-- exslt:node-set($-->
|
|
|
<xsl:with-param name="parent_obj" select="$input_obj_with_xpath"/>
|
|
<xsl:with-param name="parent_obj" select="$input_obj_with_xpath"/>
|
|
@@ -66,18 +58,69 @@
|
|
|
<xsl:value-of select="name()" />-->
|
|
<xsl:value-of select="name()" />-->
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<xsl:template match="topic" mode="Procesy5_dita_assingn_values_x_path">
|
|
<xsl:template match="topic" mode="Procesy5_dita_assingn_values_x_path">
|
|
|
<xsl:param name="parent_obj" />
|
|
<xsl:param name="parent_obj" />
|
|
|
<topic>
|
|
<topic>
|
|
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
<xsl:attribute name="xsi:noNamespaceSchemaLocation" select="'urn:oasis:names:tc:dita:xsd:task.xsd'"/>
|
|
<xsl:attribute name="xsi:noNamespaceSchemaLocation" select="'urn:oasis:names:tc:dita:xsd:task.xsd'"/>
|
|
|
- <!--<xsl:copy-of select="@*"/>-->
|
|
|
|
|
|
|
+
|
|
|
<xsl:apply-templates mode="Procesy5_dita_assingn_values_x_path">
|
|
<xsl:apply-templates mode="Procesy5_dita_assingn_values_x_path">
|
|
|
<xsl:with-param name="parent_obj" select="$parent_obj"/>
|
|
<xsl:with-param name="parent_obj" select="$parent_obj"/>
|
|
|
</xsl:apply-templates>
|
|
</xsl:apply-templates>
|
|
|
</topic>
|
|
</topic>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:template mode="Procesy5_dita_assingn_values_x_path" match="*"><!-- testowe do przeniesienia do glow.repo - do podstawienia wartosci z elementow w druku DITA -->
|
|
|
|
|
+ <xsl:param name="parent_obj" /><!-- glowny obiekt z ktorego beda brane wartosci do podstawiania -->
|
|
|
|
|
+ <xsl:for-each select=".">
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <!--<xsl:when test="node()='topic'">asdad</xsl:when>-->
|
|
|
|
|
+ <xsl:when test="name()='RelatedFeature'">
|
|
|
|
|
+ <xsl:for-each select="data/apiname[@base='PROCES_INCLUDE']">
|
|
|
|
|
+ <xsl:apply-templates mode="PROCES_INCLUDE">
|
|
|
|
|
+ <xsl:with-param name="ID_PROCES" select="text()"/>
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:when test="name()='data-about'">
|
|
|
|
|
+ <xsl:for-each select="data/apiname[@base='PROCES_INCLUDE']">
|
|
|
|
|
+ <xsl:apply-templates mode="PROCES_INCLUDE">
|
|
|
|
|
+ <xsl:with-param name="ID_PROCES" select="text()"/>
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
|
+ <xsl:element name="{name()}">
|
|
|
|
|
+ <!--<xsl:copy-of select="namespace::node()"/>-->
|
|
|
|
|
+ <xsl:for-each select="@*">
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="name()='xpath'">
|
|
|
|
|
+ <xsl:variable name="xpath" select="."/>
|
|
|
|
|
+ <!--<xsl:attribute name="xpath_parsed" select="."/>-->
|
|
|
|
|
+ <!--1:<xsl:value-of select="$parent_obj//node()[@system_cache__appinfo:xpath=$xpath]/text()"/>-->
|
|
|
|
|
+ <!--<xsl:value-of select="$parent_obj//node()[local-name()=$xpath]/text()"/>-->
|
|
|
|
|
+ <!--V:<xsl:value-of select="$xpath"/>-->
|
|
|
|
|
+ <xsl:copy-of select="$parent_obj//node()[local-name()=$xpath]/text()"/>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:otherwise><xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute></xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ <xsl:value-of select="text()"/>
|
|
|
|
|
+ <xsl:apply-templates mode="Procesy5_dita_assingn_values_x_path">
|
|
|
|
|
+ <xsl:with-param name="parent_obj" select="$parent_obj"/>
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+ </xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </xsl:template>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:template match="text()" mode="Procesy5_dita_assingn_values_x_path"/>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<xsl:template mode="system_cache__appinfo:add_xpath_path_to_elements" match="*">
|
|
<xsl:template mode="system_cache__appinfo:add_xpath_path_to_elements" match="*">
|
|
|
<xsl:param name="system_cache__appinfo:curr_xpath"/>
|
|
<xsl:param name="system_cache__appinfo:curr_xpath"/>
|
|
|
<xsl:variable name="system_cache__appinfo:curr_xpath_tmpl">
|
|
<xsl:variable name="system_cache__appinfo:curr_xpath_tmpl">
|
|
@@ -103,52 +146,7 @@
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
- <xsl:template mode="Procesy5_dita_assingn_values_x_path" match="*"><!-- testowe do przeniesienia do glow.repo - do podstawienia wartosci z elementow w druku DITA -->
|
|
|
|
|
- <xsl:param name="parent_obj" /><!-- glowny obiekt z ktorego beda brane wartosci do podstawiania -->
|
|
|
|
|
- <xsl:for-each select=".">
|
|
|
|
|
- <xsl:choose>
|
|
|
|
|
- <!--<xsl:when test="node()='topic'">asdad</xsl:when>-->
|
|
|
|
|
- <xsl:when test="name()='RelatedFeature'">
|
|
|
|
|
- <xsl:for-each select="data/apiname[@base='PROCES_INCLUDE']">
|
|
|
|
|
- <xsl:apply-templates mode="PROCES_INCLUDE">
|
|
|
|
|
- <xsl:with-param name="ID_PROCES" select="text()"/>
|
|
|
|
|
- </xsl:apply-templates>
|
|
|
|
|
- </xsl:for-each>
|
|
|
|
|
- </xsl:when>
|
|
|
|
|
- <xsl:when test="name()='data-about'">
|
|
|
|
|
- <xsl:for-each select="data/apiname[@base='PROCES_INCLUDE']">
|
|
|
|
|
- <xsl:apply-templates mode="PROCES_INCLUDE">
|
|
|
|
|
- <xsl:with-param name="ID_PROCES" select="text()"/>
|
|
|
|
|
- </xsl:apply-templates>
|
|
|
|
|
- </xsl:for-each>
|
|
|
|
|
- </xsl:when>
|
|
|
|
|
- <xsl:otherwise>
|
|
|
|
|
- <xsl:element name="{name()}">
|
|
|
|
|
- <xsl:copy-of select="namespace::node()"/>
|
|
|
|
|
- <xsl:for-each select="@*">
|
|
|
|
|
- <xsl:choose>
|
|
|
|
|
- <xsl:when test="name()='xpath'">
|
|
|
|
|
- <xsl:variable name="xpath" select="."/>
|
|
|
|
|
- <!--<xsl:attribute name="xpath_parsed" select="."/>-->
|
|
|
|
|
- <!--1:<xsl:value-of select="$parent_obj//node()[@system_cache__appinfo:xpath=$xpath]/text()"/>-->
|
|
|
|
|
- <!--<xsl:value-of select="$parent_obj//node()[local-name()=$xpath]/text()"/>-->
|
|
|
|
|
- <!--V:<xsl:value-of select="$xpath"/>-->
|
|
|
|
|
- <xsl:copy-of select="$parent_obj//node()[local-name()=$xpath]/text()"/>
|
|
|
|
|
- </xsl:when>
|
|
|
|
|
- <xsl:otherwise><xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute></xsl:otherwise>
|
|
|
|
|
- </xsl:choose>
|
|
|
|
|
- </xsl:for-each>
|
|
|
|
|
- <xsl:value-of select="text()"/>
|
|
|
|
|
- <xsl:apply-templates mode="Procesy5_dita_assingn_values_x_path">
|
|
|
|
|
- <xsl:with-param name="parent_obj" select="$parent_obj"/>
|
|
|
|
|
- </xsl:apply-templates>
|
|
|
|
|
- </xsl:element>
|
|
|
|
|
- </xsl:otherwise>
|
|
|
|
|
- </xsl:choose>
|
|
|
|
|
- </xsl:for-each>
|
|
|
|
|
- </xsl:template>
|
|
|
|
|
-
|
|
|
|
|
- <xsl:template match="text()" mode="Procesy5_dita_assingn_values_x_path"/>
|
|
|
|
|
|
|
+
|
|
|
<xsl:template match="text()" mode="system_cache__appinfo:add_xpath_path_to_elements"/>
|
|
<xsl:template match="text()" mode="system_cache__appinfo:add_xpath_path_to_elements"/>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|
|
</xsl:stylesheet>
|