|
@@ -40,7 +40,6 @@
|
|
|
<xsl:copy-of select="collection($path)"/>
|
|
<xsl:copy-of select="collection($path)"/>
|
|
|
</xsl:template>-->
|
|
</xsl:template>-->
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<!--<xsl:template name="RelatedFeatureLoop">
|
|
<!--<xsl:template name="RelatedFeatureLoop">
|
|
|
<xsl:param name="element-filename" required="yes"/> <!-\- prezes1.root_x2f_.d1e1.CRM_PROCES_x2f_.d1e46.CRM_WSKAZNIK_x2f_.d1e51.CRM_LISTA_ZASOBOW.1. -\->
|
|
<xsl:param name="element-filename" required="yes"/> <!-\- prezes1.root_x2f_.d1e1.CRM_PROCES_x2f_.d1e46.CRM_WSKAZNIK_x2f_.d1e51.CRM_LISTA_ZASOBOW.1. -\->
|
|
|
<xsl:param name="path2collection" select="concat($temp,'/')"/> <!-\- $basedir,'/' -\->
|
|
<xsl:param name="path2collection" select="concat($temp,'/')"/> <!-\- $basedir,'/' -\->
|
|
@@ -72,7 +71,6 @@
|
|
|
<xsl:element name="RelatedFeatureRoot">
|
|
<xsl:element name="RelatedFeatureRoot">
|
|
|
<xsl:copy-of select="@*"/>
|
|
<xsl:copy-of select="@*"/>
|
|
|
<xsl:apply-templates select="."/>
|
|
<xsl:apply-templates select="."/>
|
|
|
-
|
|
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
@@ -87,7 +85,6 @@
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<xsl:template match="RelatedFilter">
|
|
<xsl:template match="RelatedFilter">
|
|
|
<xsl:message>#55 bypasing RelatedFilter output <xsl:copy-of select="."/></xsl:message>
|
|
<xsl:message>#55 bypasing RelatedFilter output <xsl:copy-of select="."/></xsl:message>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
@@ -99,7 +96,6 @@
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<xsl:template match="simpleTypeMakeOgcFilter">
|
|
<xsl:template match="simpleTypeMakeOgcFilter">
|
|
|
<xsl:message>#63 bypasing simpleTypeMakeOgcFilter output <xsl:copy-of select="."/></xsl:message>
|
|
<xsl:message>#63 bypasing simpleTypeMakeOgcFilter output <xsl:copy-of select="."/></xsl:message>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
@@ -126,16 +122,12 @@
|
|
|
<xsl:variable name="xml_id" select="@xml_id"/>
|
|
<xsl:variable name="xml_id" select="@xml_id"/>
|
|
|
<xsl:variable name="RelatedFeaturePos" select="position()"/>
|
|
<xsl:variable name="RelatedFeaturePos" select="position()"/>
|
|
|
<xsl:variable name="featureID_name" select="substring-after(@typeName,':')"/>
|
|
<xsl:variable name="featureID_name" select="substring-after(@typeName,':')"/>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<xsl:variable name="loop_xpath" select="concat($loop_xpath,'_x2f_.',$xml_id,'.',$featureID_name)"/>
|
|
<xsl:variable name="loop_xpath" select="concat($loop_xpath,'_x2f_.',$xml_id,'.',$featureID_name)"/>
|
|
|
-
|
|
|
|
|
<xsl:message>#26 odpalam $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>; loop_xpath=<xsl:value-of select="$loop_xpath"/>.dita.xml.vals.dita;</xsl:message>
|
|
<xsl:message>#26 odpalam $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>; loop_xpath=<xsl:value-of select="$loop_xpath"/>.dita.xml.vals.dita;</xsl:message>
|
|
|
<!--<debug26>
|
|
<!--<debug26>
|
|
|
Will try to put file=<xsl:value-of select="concat($uuid,'.',$loop_xpath,$featureID_name,'.',$RelatedFeaturePos,'.dita.xml.vals.dita')"/>;
|
|
Will try to put file=<xsl:value-of select="concat($uuid,'.',$loop_xpath,$featureID_name,'.',$RelatedFeaturePos,'.dita.xml.vals.dita')"/>;
|
|
|
</debug26>-->
|
|
</debug26>-->
|
|
|
<!--<xsl:variable name="dita_fragment" select="doc(concat($basedir,'/temp/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.dita.xml.vals.dita'))"/>-->
|
|
<!--<xsl:variable name="dita_fragment" select="doc(concat($basedir,'/temp/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.dita.xml.vals.dita'))"/>-->
|
|
|
-
|
|
|
|
|
<xsl:variable name="dita_fragment">
|
|
<xsl:variable name="dita_fragment">
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
|
<xsl:when test=" doc-available(concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita'))">
|
|
<xsl:when test=" doc-available(concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita'))">
|
|
@@ -154,7 +146,6 @@
|
|
|
<xsl:with-param name="element-filename" select="concat($uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.')"/>
|
|
<xsl:with-param name="element-filename" select="concat($uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.')"/>
|
|
|
</xsl:call-template>
|
|
</xsl:call-template>
|
|
|
</xsl:variable>-->
|
|
</xsl:variable>-->
|
|
|
-
|
|
|
|
|
<!--<debug_RelatedFeature>
|
|
<!--<debug_RelatedFeature>
|
|
|
<xsl:copy-of select="$dita_fragment"/>
|
|
<xsl:copy-of select="$dita_fragment"/>
|
|
|
</debug_RelatedFeature>-->
|
|
</debug_RelatedFeature>-->
|
|
@@ -167,7 +158,6 @@
|
|
|
</xsl:apply-templates>
|
|
</xsl:apply-templates>
|
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|
|
|
<!--</RelatedFeatureRoot>-->
|
|
<!--</RelatedFeatureRoot>-->
|
|
|
-
|
|
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -176,7 +166,6 @@
|
|
|
<xsl:param name="path" select="$temp"/> <!-- budowa sciezki do wchodzenia do struktur - domyslnie zaczyna sie od $temp-->
|
|
<xsl:param name="path" select="$temp"/> <!-- budowa sciezki do wchodzenia do struktur - domyslnie zaczyna sie od $temp-->
|
|
|
<xsl:param name="feature_pos_child" select="1"/>
|
|
<xsl:param name="feature_pos_child" select="1"/>
|
|
|
<!--<xsl:param name="dita_with_id" required="yes"/>-->
|
|
<!--<xsl:param name="dita_with_id" required="yes"/>-->
|
|
|
-
|
|
|
|
|
<xsl:if test="$with_RelatedFeatureLoop">
|
|
<xsl:if test="$with_RelatedFeatureLoop">
|
|
|
<xsl:variable name="xml_id" select="@xml_id"/>
|
|
<xsl:variable name="xml_id" select="@xml_id"/>
|
|
|
<xsl:variable name="RelatedFeaturePos" select="position()"/>
|
|
<xsl:variable name="RelatedFeaturePos" select="position()"/>
|
|
@@ -186,7 +175,6 @@
|
|
|
<xsl:variable name="path">
|
|
<xsl:variable name="path">
|
|
|
<xsl:value-of select="concat($path,'/',$xml_id,'.',$uuid,'.',$feature_pos_child)"/>
|
|
<xsl:value-of select="concat($path,'/',$xml_id,'.',$uuid,'.',$feature_pos_child)"/>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
-
|
|
|
|
|
<xsl:message>#157 RelatedFeatureLoop $path=<xsl:value-of select="$path"/>; $xml_id=<xsl:value-of select="$xml_id"/>; $RelatedFeaturePos=<xsl:value-of select="$RelatedFeaturePos"/>; $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>;</xsl:message>
|
|
<xsl:message>#157 RelatedFeatureLoop $path=<xsl:value-of select="$path"/>; $xml_id=<xsl:value-of select="$xml_id"/>; $RelatedFeaturePos=<xsl:value-of select="$RelatedFeaturePos"/>; $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>;</xsl:message>
|
|
|
<!--<debug26>
|
|
<!--<debug26>
|
|
|
Will try to put file=<xsl:value-of select="concat($uuid,'.',$loop_xpath,$featureID_name,'.',$RelatedFeaturePos,'.dita.xml.vals.dita')"/>;
|
|
Will try to put file=<xsl:value-of select="concat($uuid,'.',$loop_xpath,$featureID_name,'.',$RelatedFeaturePos,'.dita.xml.vals.dita')"/>;
|
|
@@ -227,7 +215,6 @@
|
|
|
<xsl:copy-of select="$dita_fragment"/>
|
|
<xsl:copy-of select="$dita_fragment"/>
|
|
|
</Loop_dita_fragment>-->
|
|
</Loop_dita_fragment>-->
|
|
|
<xsl:comment>#180 loop $xml_id=<xsl:value-of select="$xml_id"/>; $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>; $RelatedFeaturePos=<xsl:value-of select="$RelatedFeaturePos"/>; $dita_fragment(empty)=<xsl:value-of select="empty($dita_fragment)"/> empty($dita_with_id)=<xsl:value-of select="empty($dita_with_id)"/>; </xsl:comment>
|
|
<xsl:comment>#180 loop $xml_id=<xsl:value-of select="$xml_id"/>; $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>; $RelatedFeaturePos=<xsl:value-of select="$RelatedFeaturePos"/>; $dita_fragment(empty)=<xsl:value-of select="empty($dita_fragment)"/> empty($dita_with_id)=<xsl:value-of select="empty($dita_with_id)"/>; </xsl:comment>
|
|
|
-
|
|
|
|
|
<xsl:for-each select="$dita_fragment">
|
|
<xsl:for-each select="$dita_fragment">
|
|
|
<xsl:for-each select="$dita_fragment">
|
|
<xsl:for-each select="$dita_fragment">
|
|
|
<xsl:apply-templates mode="RelatedFeatureLoop" select="$dita_fragment/RelatedFeatureRoot">
|
|
<xsl:apply-templates mode="RelatedFeatureLoop" select="$dita_fragment/RelatedFeatureRoot">
|
|
@@ -244,7 +231,6 @@
|
|
|
<xsl:with-param name="element-filename" select="concat($uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.')"/>
|
|
<xsl:with-param name="element-filename" select="concat($uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.')"/>
|
|
|
</xsl:call-template>
|
|
</xsl:call-template>
|
|
|
</xsl:variable>-->
|
|
</xsl:variable>-->
|
|
|
-
|
|
|
|
|
<!--<debug_RelatedFeature>
|
|
<!--<debug_RelatedFeature>
|
|
|
<xsl:copy-of select="$dita_fragment"/>
|
|
<xsl:copy-of select="$dita_fragment"/>
|
|
|
</debug_RelatedFeature>-->
|
|
</debug_RelatedFeature>-->
|
|
@@ -262,7 +248,6 @@
|
|
|
<!--<RelatedFeatureLoop>-->
|
|
<!--<RelatedFeatureLoop>-->
|
|
|
<!--<xsl:comment>#211 $path=<xsl:value-of select="$path"/>; </xsl:comment>-->
|
|
<!--<xsl:comment>#211 $path=<xsl:value-of select="$path"/>; </xsl:comment>-->
|
|
|
<!--<xsl:copy-of select="."/>-->
|
|
<!--<xsl:copy-of select="."/>-->
|
|
|
-
|
|
|
|
|
<xsl:for-each select="*">
|
|
<xsl:for-each select="*">
|
|
|
<xsl:variable name="loop_pos" select="position()"/>
|
|
<xsl:variable name="loop_pos" select="position()"/>
|
|
|
<xsl:variable name="current" select="."/>
|
|
<xsl:variable name="current" select="."/>
|
|
@@ -271,7 +256,6 @@
|
|
|
<xsl:apply-templates mode="find_Child_RelatedFeatureLoop" select="$dita_with_id"/>
|
|
<xsl:apply-templates mode="find_Child_RelatedFeatureLoop" select="$dita_with_id"/>
|
|
|
</find_Child_RelatedFeatureLoop>
|
|
</find_Child_RelatedFeatureLoop>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
-
|
|
|
|
|
<!--<find_Child_RelatedFeatureLoop>
|
|
<!--<find_Child_RelatedFeatureLoop>
|
|
|
<xsl:copy-of select="$find_Child_RelatedFeatureLoop"/>
|
|
<xsl:copy-of select="$find_Child_RelatedFeatureLoop"/>
|
|
|
</find_Child_RelatedFeatureLoop>-->
|
|
</find_Child_RelatedFeatureLoop>-->
|
|
@@ -284,10 +268,8 @@
|
|
|
<xsl:otherwise><xsl:copy-of select="." copy-namespaces="no"/></xsl:otherwise>
|
|
<xsl:otherwise><xsl:copy-of select="." copy-namespaces="no"/></xsl:otherwise>
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|
|
|
-
|
|
|
|
|
<!--</current>-->
|
|
<!--</current>-->
|
|
|
<xsl:for-each select="$find_Child_RelatedFeatureLoop/find_Child_RelatedFeatureLoop/RelatedFeatureLoop">
|
|
<xsl:for-each select="$find_Child_RelatedFeatureLoop/find_Child_RelatedFeatureLoop/RelatedFeatureLoop">
|
|
|
-
|
|
|
|
|
<xsl:variable name="path">
|
|
<xsl:variable name="path">
|
|
|
<xsl:value-of select="concat($path,'/',@xml_id,'.',$uuid,'.',$loop_pos)"/>
|
|
<xsl:value-of select="concat($path,'/',@xml_id,'.',$uuid,'.',$loop_pos)"/>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
@@ -304,8 +286,6 @@
|
|
|
</xsl:otherwise>
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<!--<dita>-->
|
|
<!--<dita>-->
|
|
|
<!--<xsl:copy-of select="$dita_fragment/RelatedFeatureRoot/*"/>-->
|
|
<!--<xsl:copy-of select="$dita_fragment/RelatedFeatureRoot/*"/>-->
|
|
|
<!--</dita>-->
|
|
<!--</dita>-->
|
|
@@ -320,8 +300,7 @@
|
|
|
<!-- cofniecie sie do wlasciwego dita_with_id -->
|
|
<!-- cofniecie sie do wlasciwego dita_with_id -->
|
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
- <!--</test>-->
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <!--</test>-->
|
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|
|
|
<!--</RelatedFeatureLoop>-->
|
|
<!--</RelatedFeatureLoop>-->
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
@@ -392,16 +371,28 @@
|
|
|
<xsl:param name="feature_pos_child" required="yes"/>
|
|
<xsl:param name="feature_pos_child" required="yes"/>
|
|
|
<xsl:param name="dita.map"/> <!-- if set we will output many files in topics -->
|
|
<xsl:param name="dita.map"/> <!-- if set we will output many files in topics -->
|
|
|
<!--<xsl:param name="dita_with_id" required="yes"/>-->
|
|
<!--<xsl:param name="dita_with_id" required="yes"/>-->
|
|
|
- <xsl:element name="{name()}">
|
|
|
|
|
- <!--<xsl:copy-of select="@*"/>-->
|
|
|
|
|
- <xsl:apply-templates select="@*"/>
|
|
|
|
|
- <xsl:apply-templates>
|
|
|
|
|
- <xsl:with-param name="loop_xpath" select="$loop_xpath"/>
|
|
|
|
|
- <xsl:with-param name="feature_pos_child" select="$feature_pos_child"/>
|
|
|
|
|
- <xsl:with-param name="dita.map" select="$dita.map"/> <!-- if set we will output many files in topics -->
|
|
|
|
|
- <!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
|
|
|
|
|
- </xsl:apply-templates>
|
|
|
|
|
- </xsl:element>
|
|
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="$dita.map">
|
|
|
|
|
+ <xsl:apply-templates>
|
|
|
|
|
+ <xsl:with-param name="loop_xpath" select="$loop_xpath"/>
|
|
|
|
|
+ <xsl:with-param name="feature_pos_child" select="$feature_pos_child"/>
|
|
|
|
|
+ <xsl:with-param name="dita.map" select="$dita.map"/> <!-- if set we will output many files in topics -->
|
|
|
|
|
+ <!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
|
+ <xsl:element name="{name()}">
|
|
|
|
|
+ <!--<xsl:copy-of select="@*"/>-->
|
|
|
|
|
+ <xsl:apply-templates select="@*"/>
|
|
|
|
|
+ <xsl:apply-templates>
|
|
|
|
|
+ <xsl:with-param name="loop_xpath" select="$loop_xpath"/>
|
|
|
|
|
+ <xsl:with-param name="feature_pos_child" select="$feature_pos_child"/>
|
|
|
|
|
+ <xsl:with-param name="dita.map" select="$dita.map"/> <!-- if set we will output many files in topics -->
|
|
|
|
|
+ <!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+ </xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="map" mode="RelatedFeatureChild" >
|
|
<xsl:template match="map" mode="RelatedFeatureChild" >
|
|
@@ -457,7 +448,6 @@
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
</xsl:otherwise>
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
-
|
|
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="title" mode="RelatedFeatureChild"><!-- dodaje element parent -->
|
|
<xsl:template match="title" mode="RelatedFeatureChild"><!-- dodaje element parent -->
|
|
@@ -536,11 +526,6 @@
|
|
|
<xsl:copy-of select="."/>
|
|
<xsl:copy-of select="."/>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<xsl:template match="@xml_id|@xpath_token_filter|@xpath_token"/>
|
|
<xsl:template match="@xml_id|@xpath_token_filter|@xpath_token"/>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</xsl:stylesheet>
|
|
</xsl:stylesheet>
|