|
|
@@ -77,10 +77,12 @@
|
|
|
<xsl:template match="*" mode="root">
|
|
|
<xsl:param name="loop_xpath"/>
|
|
|
<xsl:param name="dita.map"/>
|
|
|
+ <xsl:param name="path"/>
|
|
|
<xsl:element name="{name()}">
|
|
|
<xsl:copy-of select="@*"/>
|
|
|
<xsl:apply-templates>
|
|
|
<xsl:with-param name="loop_xpath" select="$loop_xpath"/>
|
|
|
+ <xsl:with-param name="path" select="$path"/>
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:element>
|
|
|
</xsl:template>
|
|
|
@@ -111,11 +113,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
+ <!--<xsl:template match="RelatedFeatureLoop" >
|
|
|
+ <Debug_RelatedFeatureLoop>
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </Debug_RelatedFeatureLoop>
|
|
|
+ </xsl:template>-->
|
|
|
|
|
|
|
|
|
<xsl:template match="RelatedFeature">
|
|
|
<!-- podstawamy dane z xml na podstawie path -->
|
|
|
- <xsl:param name="loop_xpath" select="'root'"/>
|
|
|
+ <xsl:param name="loop_xpath" select="''"/>
|
|
|
+ <xsl:param name="path" />
|
|
|
+ <xsl:param name="xml_id_from_loop"/>
|
|
|
<xsl:param name="feature_pos_child" select="1"/> <!-- pierwsze wyzwolenie narzuca 1 - kolejne sa z related -->
|
|
|
<!--<xsl:param name="dita_with_id" select="."/>--> <!-- TODO jest błąd - z RelatedFeatureLoop trzeba wziac mape lokalna obiektu -->
|
|
|
<xsl:param name="dita.map"/> <!-- if set we will output many files in topics -->
|
|
|
@@ -126,16 +135,23 @@
|
|
|
<xsl:otherwise><xsl:value-of select="1"/></xsl:otherwise><!-- bylo bug @2017-04 position() -->
|
|
|
</xsl:choose>
|
|
|
</xsl:variable>
|
|
|
- <xsl:variable name="feature_pos_child"><!-- bylo bug @2017-04 position() -->
|
|
|
+ <!--<xsl:variable name="feature_pos_child"><!-\- bylo bug @2017-04 position() -\->
|
|
|
<xsl:choose>
|
|
|
<xsl:when test="@feature_pos"><xsl:value-of select="@feature_pos"/></xsl:when>
|
|
|
<xsl:otherwise><xsl:value-of select="$feature_pos_child"/></xsl:otherwise>
|
|
|
</xsl:choose>
|
|
|
- </xsl:variable>
|
|
|
+ </xsl:variable>-->
|
|
|
|
|
|
<xsl:message>#129 xml_position=<xsl:value-of select="@xml_position"/> while position()=<xsl:value-of select="position()"/></xsl:message>
|
|
|
+ <xsl:comment>#137 xml_id=<xsl:value-of select="$xml_id"/> ; </xsl:comment>
|
|
|
<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,'/',$xml_id,'.',$feature_pos_child)"/> <!-- loop path too long ,'.',$featureID_name -->
|
|
|
+ <xsl:variable name="path">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test=" string-length($path) < 1"/>
|
|
|
+ <xsl:otherwise><xsl:value-of select="concat($path,'/',$xml_id,'.',$feature_pos_child)"/></xsl:otherwise> <!-- loop path too long ,'.',$featureID_name -->
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
<xsl:message>#26 odpalam $RelatedFeaturePos=<xsl:value-of select="$RelatedFeaturePos"/>; $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>
|
|
|
Will try to put file=<xsl:value-of select="concat($uuid,'.',$loop_xpath,$featureID_name,'.',$RelatedFeaturePos,'.dita.xml.vals.dita')"/>;
|
|
|
@@ -143,23 +159,24 @@
|
|
|
<!--<xsl:variable name="dita_fragment" select="doc(concat($basedir,'/temp/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.dita.xml.vals.dita'))"/>-->
|
|
|
<xsl:variable name="dita_fragment">
|
|
|
<xsl:choose>
|
|
|
- <xsl:when test=" doc-available(concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita'))">
|
|
|
- <xsl:message>#97 INFO Related leaf xml file <xsl:value-of select="concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita')"/></xsl:message>
|
|
|
- <xsl:copy-of select="doc(concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita'))"/>
|
|
|
+ <xsl:when test=" doc-available(concat($temp,'/',$loop_xpath,'.dita.xml.vals.dita'))"> <!-- bylo doc-available(concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita'))-->
|
|
|
+ <xsl:message>#97 INFO Related leaf xml file <xsl:value-of select="concat($temp,'/',$loop_xpath,'.dita.xml.vals.dita')"/></xsl:message>
|
|
|
+ <xsl:copy-of select="doc(concat($temp,'/',$loop_xpath,'.dita.xml.vals.dita'))"/>
|
|
|
</xsl:when>
|
|
|
<xsl:otherwise>
|
|
|
- <!--<xsl:comment>#78 NO!! INFO Related leaf xml file <xsl:value-of select="concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita')"/>;</xsl:comment>-->
|
|
|
- <xsl:message>#78 NO!! INFO Related leaf xml file <xsl:value-of select="concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita')"/></xsl:message>
|
|
|
+ <xsl:comment>#78 NO!! INFO Related leaf xml file <xsl:value-of select="concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita')"/>;</xsl:comment>
|
|
|
+ <xsl:message>#78 NO!!! INFO Related leaf xml file <xsl:value-of select="concat($temp,'/',$loop_xpath,'.dita.xml.vals.dita')"/></xsl:message>
|
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|
|
|
</xsl:variable>
|
|
|
|
|
|
<xsl:choose>
|
|
|
- <xsl:when test=" doc-available(concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita'))">
|
|
|
- <xsl:comment>#97 INFO Related leaf xml file <xsl:value-of select="concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita')"/>;</xsl:comment>
|
|
|
+ <xsl:when test=" doc-available(concat($temp,'/',$loop_xpath,'.dita.xml.vals.dita'))">
|
|
|
+ <xsl:comment>#97 INFO Related leaf xml file <xsl:value-of select="concat($temp,'/',$loop_xpath,'.dita.xml.vals.dita')"/>;
|
|
|
+ next to find $loop_xpath = <xsl:value-of select="$loop_xpath"/> ; </xsl:comment>
|
|
|
</xsl:when>
|
|
|
<xsl:otherwise>
|
|
|
- <xsl:comment>#78 NO!! INFO Related leaf xml file <xsl:value-of select="concat($temp,'/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita')"/>;</xsl:comment>
|
|
|
+ <xsl:comment>#78z NO!! INFO Related leaf xml file <xsl:value-of select="concat($temp,'/',$loop_xpath,'.dita.xml.vals.dita')"/>;</xsl:comment>
|
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|
|
|
<!--<xsl:variable name="dita_fragment" select="doc(concat($basedir,'/temp/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita'))"/>-->
|
|
|
@@ -172,97 +189,206 @@
|
|
|
<xsl:copy-of select="$dita_fragment"/>
|
|
|
</debug_RelatedFeature>-->
|
|
|
<!--<RelatedFeatureRoot>-->
|
|
|
+ <!--<debug_current_RelatedFeature>
|
|
|
+ <xsl:attribute name="xml_id" select="$xml_id"/>
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </debug_current_RelatedFeature>-->
|
|
|
<xsl:for-each select="$dita_fragment">
|
|
|
<xsl:apply-templates mode="RelatedFeature" select="$dita_fragment/RelatedFeatureRoot/*">
|
|
|
<xsl:with-param name="loop_xpath" select="$loop_xpath"/>
|
|
|
<!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
|
|
|
<xsl:with-param name="dita.map" select="$dita.map"/>
|
|
|
+ <xsl:with-param name="path" select="$path"/>
|
|
|
+ <xsl:with-param name="xml_id_from_loop" select="$xml_id_from_loop"/>
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:for-each>
|
|
|
<!--</RelatedFeatureRoot>-->
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
+
|
|
|
<xsl:template match="RelatedFeatureLoop" mode="RelatedFeatureChild">
|
|
|
<!-- podstawamy dane z xml na podstawie path -->
|
|
|
- <xsl:param name="path" select="$temp"/> <!-- budowa sciezki do wchodzenia do struktur - domyslnie zaczyna sie od $temp-->
|
|
|
+ <xsl:param name="loop_xpath" required="yes"/> <!-- zmiana od 2017-04 - dobudowujemy do loop-path -->
|
|
|
+ <xsl:param name="path"/> <!-- budowa sciezki do wchodzenia do struktur - domyslnie zaczyna sie od $temp-->
|
|
|
<xsl:param name="feature_pos_child" select="1"/>
|
|
|
+ <xsl:param name="xml_id_from_loop" />
|
|
|
<!--<xsl:param name="dita_with_id" required="yes"/>-->
|
|
|
- <xsl:if test="$with_RelatedFeatureLoop">
|
|
|
- <xsl:variable name="xml_id" select="@xml_id"/>
|
|
|
- <xsl:variable name="RelatedFeaturePos" select="position()"/>
|
|
|
- <xsl:variable name="featureID_name" select="substring-after(@typeName,':')"/>
|
|
|
- <xsl:variable name="featureID_prefix" select="substring-before(@typeName,':')"/>
|
|
|
- <xsl:variable name="system_cache__appinfo:loop_id" select="@system_cache__appinfo:loop_id"/>
|
|
|
- <xsl:variable name="path">
|
|
|
- <xsl:value-of select="concat($path,'/',$xml_id,'.',$uuid,'.',$feature_pos_child)"/>
|
|
|
- </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>
|
|
|
- <!--<debug26>
|
|
|
+ <xsl:variable name="xml_id" select="@xml_id"/>
|
|
|
+ <xsl:variable name="RelatedFeaturePos" select="position()"/>
|
|
|
+ <xsl:variable name="featureID_name" select="substring-after(@typeName,':')"/>
|
|
|
+ <xsl:variable name="featureID_prefix" select="substring-before(@typeName,':')"/>
|
|
|
+ <xsl:variable name="system_cache__appinfo:loop_id" select="@system_cache__appinfo:loop_id"/>
|
|
|
+ <xsl:variable name="feature_pos_parent" select="@feature_pos_parent"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test=" string-length($path) < 1">
|
|
|
+ <xsl:comment>#218 standardowe pierwsze RelatedFeatureLoop</xsl:comment>
|
|
|
+ <xsl:variable name="path">
|
|
|
+ <xsl:choose><!-- z innego wyzwolenia RelatedFeatureLoop nie dopisujemy do $temp - tylko raz -->
|
|
|
+ <xsl:when test=" string-length($path) < 1">
|
|
|
+ <xsl:value-of select="concat($temp,$loop_xpath)"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise><xsl:value-of select="$path"/></xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$with_RelatedFeatureLoop">
|
|
|
+
|
|
|
+ <!--<xsl:variable name="path">
|
|
|
+ <xsl:value-of select="concat($path,'/',$xml_id,'.',$uuid,'.',$feature_pos_child)"/> <!-\- bylo przed 2017-04 concat($path,'/',$xml_id,'.',$uuid,'.',$feature_pos_child) -\->
|
|
|
+ </xsl:variable>-->
|
|
|
+ <xsl:variable name="path" select="concat($path,'/',$xml_id,'.',$feature_pos_child)"/> <!-- loop path too long ,'.',$featureID_name -->
|
|
|
+ <xsl:comment>#157 $path = <xsl:value-of select="$path"/> ; </xsl:comment>
|
|
|
+ <xsl:comment>#180 loop $xml_id=<xsl:value-of select="$xml_id"/>; $featureID_name= <xsl:value-of select="$featureID_name"/>; $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>; $RelatedFeaturePos=<xsl:value-of select="$RelatedFeaturePos"/>; </xsl:comment>
|
|
|
+ <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"/>;
|
|
|
+ $loop_xpath= <xsl:value-of select="$loop_xpath"/> ;
|
|
|
+ </xsl:message>
|
|
|
+ <!--<debug26>
|
|
|
Will try to put file=<xsl:value-of select="concat($uuid,'.',$loop_xpath,$featureID_name,'.',$RelatedFeaturePos,'.dita.xml.vals.dita')"/>;
|
|
|
</debug26>-->
|
|
|
- <!--<xsl:variable name="dita_fragment" select="doc(concat($basedir,'/temp/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.dita.xml.vals.dita'))"/>-->
|
|
|
- <xsl:comment>#174 look in <xsl:value-of select="concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$uuid,'_out_task_dita_final.dita.xml')"/>;</xsl:comment>
|
|
|
- <xsl:variable name="dita_fragment">
|
|
|
- <xsl:choose>
|
|
|
- <xsl:when test=" doc-available(concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$uuid,'_out_task_dita_final.dita.xml'))">
|
|
|
- <xsl:message>#156 INFO Related leaf xml file <xsl:value-of select="concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$uuid,'_out_task_dita_final.dita.xml')"/></xsl:message>
|
|
|
- <xsl:copy-of select="doc(concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$uuid,'_out_task_dita_final.dita.xml'))"/>
|
|
|
- </xsl:when>
|
|
|
- <xsl:otherwise>
|
|
|
- <!--<xsl:comment>#156 INFO no Related leaf xml file <xsl:value-of select="concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$uuid,'.out_task.dita.final.xml')"/>;</xsl:comment>-->
|
|
|
- <xsl:message>#156 INFO no Related leaf xml file <xsl:value-of select="concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$uuid,'_out_task_dita_final.dita.xml')"/></xsl:message>
|
|
|
- </xsl:otherwise>
|
|
|
- </xsl:choose>
|
|
|
- </xsl:variable>
|
|
|
- <xsl:variable name="dita_with_id" >
|
|
|
- <xsl:choose>
|
|
|
- <!--<xsl:when test="doc-available(concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$featureID_name,'.with_id.xml'))">
|
|
|
+ <!--<xsl:variable name="dita_fragment" select="doc(concat($basedir,'/temp/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.dita.xml.vals.dita'))"/>-->
|
|
|
+ <xsl:variable name="file_loook_dita_fragment" select="concat($path,'/',$uuid,'_out_task_dita_final.dita.xml')"/>
|
|
|
+ <xsl:comment>#156x look in <xsl:value-of select="$file_loook_dita_fragment"/>;</xsl:comment> <!-- bylo przed 2017-04 concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$uuid,'_out_task_dita_final.dita.xml')-->
|
|
|
+ <xsl:variable name="dita_fragment">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test=" doc-available($file_loook_dita_fragment)">
|
|
|
+ <xsl:message>#156A INFO Related leaf xml file <xsl:value-of select="$file_loook_dita_fragment"/></xsl:message>
|
|
|
+ <xsl:copy-of select="doc($file_loook_dita_fragment)"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <!--<xsl:comment>#156 INFO no Related leaf xml file <xsl:value-of select="concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$uuid,'.out_task.dita.final.xml')"/>;</xsl:comment>-->
|
|
|
+ <xsl:message>#156 NONONONO INFO Related leaf xml file <xsl:value-of select="$file_loook_dita_fragment"/></xsl:message>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:variable name="dita_with_id" >
|
|
|
+ <xsl:choose>
|
|
|
+ <!--<xsl:when test="doc-available(concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$featureID_name,'.with_id.xml'))">
|
|
|
<xsl:message>#189 we load get $dita_fragment for <xsl:value-of select="$featureID_name"/>; </xsl:message>
|
|
|
<xsl:copy-of select="doc(concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$featureID_name,'.with_id.xml'))"/>
|
|
|
</xsl:when>-->
|
|
|
- <xsl:when test="doc-available(concat($simpleSchema_dir,'/',$featureID_prefix,'/',$featureID_name,'.xml'))">
|
|
|
- <xsl:message>#189 we load from simpleSchema_dir get $dita_fragment for <xsl:value-of select="$featureID_name"/>; </xsl:message>
|
|
|
- <xsl:copy-of select="doc(concat($simpleSchema_dir,'/',$featureID_prefix,'/',$featureID_name,'.xml'))"/>
|
|
|
+ <xsl:when test="doc-available(concat($simpleSchema_dir,'/',$featureID_prefix,'/',$featureID_name,'.xml'))">
|
|
|
+ <xsl:message>#189 we load from simpleSchema_dir get $dita_fragment for <xsl:value-of select="$featureID_name"/>; </xsl:message>
|
|
|
+ <xsl:copy-of select="doc(concat($simpleSchema_dir,'/',$featureID_prefix,'/',$featureID_name,'.xml'))"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:message terminate="yes">#205 brak mapy dla pozadanego obiektu $featureID_name = <xsl:value-of select="$featureID_name"/>; </xsl:message>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test=" doc-available($file_loook_dita_fragment)">
|
|
|
+ <xsl:comment>#156A INFO RelatedLoop leaf xml file <xsl:value-of select="$file_loook_dita_fragment"/>;</xsl:comment>
|
|
|
</xsl:when>
|
|
|
<xsl:otherwise>
|
|
|
- <xsl:message terminate="yes">#205 brak mapy dla pozadanego obiektu $featureID_name = <xsl:value-of select="$featureID_name"/>; </xsl:message>
|
|
|
+ <xsl:comment>#156 NO!! INFO RelatedLoop leaf xml file <xsl:value-of select="$file_loook_dita_fragment"/>;</xsl:comment>
|
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|
|
|
- </xsl:variable>
|
|
|
- <!--<Loop_dita_with_id>
|
|
|
+ <!--<Loop_dita_with_id>
|
|
|
<xsl:copy-of select="$dita_with_id"/>
|
|
|
</Loop_dita_with_id>-->
|
|
|
- <!--<Loop_dita_fragment>
|
|
|
+ <!--<Loop_dita_fragment>
|
|
|
<xsl:copy-of select="$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:for-each select="$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:for-each select="$dita_fragment">
|
|
|
- <xsl:apply-templates mode="RelatedFeatureLoop" select="$dita_fragment/RelatedFeatureRoot">
|
|
|
- <xsl:with-param name="dita_with_id" select="$dita_with_id"/>
|
|
|
- <xsl:with-param name="xml_id" select="$xml_id"/>
|
|
|
- <xsl:with-param name="path" select="$path"/>
|
|
|
- <!--<xsl:with-param name="system_cache__appinfo:loop_id" select="$system_cache__appinfo:loop_id"/>-->
|
|
|
- </xsl:apply-templates>
|
|
|
+ <xsl:for-each select="$dita_fragment">
|
|
|
+ <xsl:apply-templates mode="RelatedFeatureLoop" select="$dita_fragment/RelatedFeatureRoot">
|
|
|
+ <xsl:with-param name="dita_with_id" select="$dita_with_id"/>
|
|
|
+ <xsl:with-param name="xml_id" select="$xml_id"/>
|
|
|
+ <xsl:with-param name="path" select="$path"/>
|
|
|
+ <!--<xsl:with-param name="system_cache__appinfo:loop_id" select="$system_cache__appinfo:loop_id"/>-->
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:for-each>
|
|
|
</xsl:for-each>
|
|
|
- </xsl:for-each>
|
|
|
- <!--<xsl:variable name="dita_fragment" select="doc(concat($basedir,'/temp/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita'))"/>-->
|
|
|
- <!--<xsl:variable name="dita_fragment">
|
|
|
+ <!--<xsl:variable name="dita_fragment" select="doc(concat($basedir,'/temp/',$uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.',$feature_pos_child,'.dita.xml.vals.dita'))"/>-->
|
|
|
+ <!--<xsl:variable name="dita_fragment">
|
|
|
<xsl:call-template name="get_childs_rows">
|
|
|
<xsl:with-param name="element-filename" select="concat($uuid,'.',$loop_xpath,'.',$RelatedFeaturePos,'.')"/>
|
|
|
</xsl:call-template>
|
|
|
</xsl:variable>-->
|
|
|
- <!--<debug_RelatedFeature>
|
|
|
+ <!--<debug_RelatedFeature>
|
|
|
<xsl:copy-of select="$dita_fragment"/>
|
|
|
</debug_RelatedFeature>-->
|
|
|
- </xsl:if>
|
|
|
+
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <!-- trzeba skopiowac, aby bylo co parsowac i wstawiac zaglebienia tutaj na wyzwoleniu finalnym $with_RelatedFeatureLoop (bez dzieci i filtrow)-->
|
|
|
+ <xsl:element name="{name()}">
|
|
|
+ <xsl:attribute name="DEBUG294" select="1"/>
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ </xsl:element>
|
|
|
+ <!--<xsl:copy-of select="."/>-->
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:variable name="path">
|
|
|
+ <xsl:choose><!-- z innego wyzwolenia RelatedFeatureLoop nie dopisujemy do $temp - tylko raz -->
|
|
|
+ <xsl:when test=" string-length($path) < 1">
|
|
|
+ <xsl:value-of select="concat($temp,$loop_xpath)"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise><xsl:value-of select="$path"/></xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+ <xsl:variable name="path" select="concat($path,'/',$xml_id_from_loop,'.',$feature_pos_parent,'/',$xml_id,'.',$feature_pos_child,'/')"/> <!-- loop path too long ,'.',$featureID_name ; ,'.',$featureID_name-->
|
|
|
+ <xsl:variable name="file_loook_dita_fragment" select="concat($path,'/',$uuid,'_out_task_dita_final.dita.xml')"/>
|
|
|
+ <xsl:comment>#221 niestandardowe kolejne RelatedFeatureLoop
|
|
|
+ $xml_id = <xsl:value-of select="$xml_id"/> ;
|
|
|
+ $xml_id_from_loop = <xsl:value-of select="$xml_id_from_loop"/> ;
|
|
|
+ ../position() = <xsl:value-of select="../position()"/>;
|
|
|
+ $feature_pos_child = <xsl:value-of select="$feature_pos_child"/> ;
|
|
|
+ $RelatedFeaturePos = <xsl:value-of select="$RelatedFeaturePos"/> ;
|
|
|
+ @$feature_pos_parent = <xsl:value-of select="$feature_pos_parent"/>;
|
|
|
+ $file_loook_dita_fragment = <xsl:value-of select="$file_loook_dita_fragment"/> ;
|
|
|
+ expected path = /Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/default_db/recurse_ant/temp/PROCES_INIT994_0418-2135_p15/d15141e1.1.PROCES_INIT/d15141e32.1.PROCES/d15141e62.2.PROCES/d23949e1.1.PROCES/d23949e32.2.PROCES/d23949e1.1.PROCES/d23949e32.3.PROCES
|
|
|
+ </xsl:comment>
|
|
|
+ <xsl:variable name="dita_fragment">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test=" doc-available($file_loook_dita_fragment)">
|
|
|
+ <xsl:message>#156A INFO Related leaf xml file <xsl:value-of select="$file_loook_dita_fragment"/></xsl:message>
|
|
|
+ <xsl:copy-of select="doc($file_loook_dita_fragment)"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <!--<xsl:comment>#156 INFO no Related leaf xml file <xsl:value-of select="concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$uuid,'.out_task.dita.final.xml')"/>;</xsl:comment>-->
|
|
|
+ <xsl:message>#156 NONONONO INFO Related leaf xml file <xsl:value-of select="$file_loook_dita_fragment"/></xsl:message>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:variable name="dita_with_id" >
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="doc-available(concat($simpleSchema_dir,'/',$featureID_prefix,'/',$featureID_name,'.xml'))">
|
|
|
+ <xsl:message>#189 we load from simpleSchema_dir get $dita_fragment for <xsl:value-of select="$featureID_name"/>; </xsl:message>
|
|
|
+ <xsl:copy-of select="doc(concat($simpleSchema_dir,'/',$featureID_prefix,'/',$featureID_name,'.xml'))"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:message terminate="yes">#205 brak mapy dla pozadanego obiektu $featureID_name = <xsl:value-of select="$featureID_name"/>; </xsl:message>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:comment>#180B 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:apply-templates mode="RelatedFeatureLoop" select="$dita_fragment/RelatedFeatureRoot">
|
|
|
+ <xsl:with-param name="dita_with_id" select="$dita_with_id"/>
|
|
|
+ <xsl:with-param name="xml_id" select="$xml_id"/>
|
|
|
+ <xsl:with-param name="path" select="$path"/>
|
|
|
+ <!--<xsl:with-param name="system_cache__appinfo:loop_id" select="$system_cache__appinfo:loop_id"/>-->
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="RelatedFeatureRoot" mode="RelatedFeatureLoop"><!-- zejscie po $dita_with_id z powrotem w czasie przetwarzania loop -->
|
|
|
<xsl:param name="path" required="yes"/>
|
|
|
<xsl:param name="dita_with_id" required="yes"/>
|
|
|
<xsl:param name="xml_id" required="yes"/>
|
|
|
+ <xsl:param name="xml_id_from_loop" />
|
|
|
<!--<xsl:param name="system_cache__appinfo:loop_id" required="yes"/>-->
|
|
|
<!--<dita_with_id>
|
|
|
<xsl:copy-of select="$dita_with_id"/>
|
|
|
@@ -286,7 +412,67 @@
|
|
|
<!--<current>-->
|
|
|
<xsl:for-each select="$current/*">
|
|
|
<xsl:choose>
|
|
|
- <xsl:when test="name()='RelatedFeatureRoot'"/>
|
|
|
+ <xsl:when test="name()='RelatedFeatureRoot'"/>
|
|
|
+ <xsl:when test="name()='RelatedFeatureLoop'">
|
|
|
+ <xsl:variable name="feature_pos_parent" select="@feature_pos_parent"/>
|
|
|
+ <xsl:variable name="loop_xml_id" select="@xml_id"/>
|
|
|
+ <xsl:variable name="featureID_name" select="substring-after(@typeName,':')"/>
|
|
|
+ <xsl:variable name="featureID_prefix" select="substring-before(@typeName,':')"/>
|
|
|
+ <!-- <RelatedFeatureLoop_debug330>
|
|
|
+ <xsl:attribute name="loop_pos" select="$loop_pos"/>
|
|
|
+ <xsl:attribute name="path" select="$path"/>
|
|
|
+ <xsl:attribute name="xml_id" select="$xml_id"/>
|
|
|
+ <xsl:attribute name="loop_xml_id" select="$loop_xml_id"/>-->
|
|
|
+ <!--<xsl:attribute name="path_to_achieve" select="'/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/default_db/recurse_ant/temp/PROCES_INIT994_0418-2135_p15/d15141e1.1.PROCES_INIT/d15141e32.1.PROCES/d15141e62.2.PROCES/d23949e1.1.PROCES/d23949e32.2.PROCES/PROCES_INIT994_0418-2135_p15_out_task_dita_final.dita.xml'"/>-->
|
|
|
+ <!--<xsl:attribute name="test_parent_xml_id_from_loop" select="$current/parent::node()/@xml_id"/>-->
|
|
|
+ <!--<xsl:variable name="dita_with_id" >
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="doc-available(concat($simpleSchema_dir,'/', substring-before(@typeName,':'),'/', substring-after(@typeName,':'),'.xml'))">
|
|
|
+ <xsl:message>#338 we load from simpleSchema_dir get $dita_fragment for <xsl:value-of select="@typeName"/>; </xsl:message>
|
|
|
+ <xsl:copy-of select="doc(concat($simpleSchema_dir,'/', substring-before(@typeName,':'),'/', substring-after(@typeName,':'),'.xml'))"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:message terminate="yes">#342 brak mapy dla pozadanego obiektu @typeName = <xsl:value-of select="@typeName"/>; </xsl:message>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>-->
|
|
|
+ <xsl:variable name="xml_id_from_loop" select="$current/parent::node()/@xml_id"/> <!-- $dita_with_id/RelatedFeature/@xml_id -->
|
|
|
+ <xsl:variable name="file_dita_fragment" select="concat($path,'/',$xml_id_from_loop,'.',$feature_pos_parent,'/',$loop_xml_id,'.',$loop_pos,'/',$uuid,'_out_task_dita_final.dita.xml')"/> <!-- loop path too long ,'.',$featureID_name, / '.',$featureID_name, -->
|
|
|
+ <xsl:variable name="path_after_loop" select="concat($path,'/',$xml_id_from_loop,'.',$feature_pos_parent,'/',$loop_xml_id,'.',$loop_pos)"/> <!-- loop path too long '.',$featureID_name, / '.',$featureID_name-->
|
|
|
+ <!--<xml_id_to_find>
|
|
|
+ <xsl:attribute name="xml_id" select="$dita_with_id/RelatedFeature/@xml_id"/>
|
|
|
+ <xsl:attribute name="feature_pos_parent" select="$dita_with_id/RelatedFeature/@xml_id"/>
|
|
|
+ <xsl:attribute name="xml_id_from_loop" select="$xml_id_from_loop"/>
|
|
|
+ <xsl:attribute name="file_dita_fragment" select="$file_dita_fragment"/>
|
|
|
+ <xsl:attribute name="path_after_loop" select="$path_after_loop"/>
|
|
|
+ </xml_id_to_find>-->
|
|
|
+
|
|
|
+ <xsl:variable name="dita_fragment">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test=" doc-available($file_dita_fragment)">
|
|
|
+ <xsl:message>#221 INFO Related leaf xml file <xsl:value-of select="$file_dita_fragment"/></xsl:message>
|
|
|
+ <xsl:copy-of select="doc($file_dita_fragment)"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:comment>#221 INFO no Related leaf xml file <xsl:value-of select="$file_dita_fragment"/>;</xsl:comment>
|
|
|
+ <xsl:message>#221 INFO no Related leaf xml file <xsl:value-of select="$file_dita_fragment"/></xsl:message>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
+ <!--<dita_fragment>
|
|
|
+ <xsl:copy-of select="$dita_fragment"/>
|
|
|
+ </dita_fragment>-->
|
|
|
+ <!--<apply_templ>-->
|
|
|
+ <xsl:apply-templates mode="RelatedFeature" select="$dita_fragment/RelatedFeatureRoot/*">
|
|
|
+ <xsl:with-param name="path" select="$path_after_loop"/>
|
|
|
+ <!--<xsl:with-param name="feature_pos_child" select="$loop_pos"/>-->
|
|
|
+ <xsl:with-param name="loop_xpath" select="$path_after_loop"/>
|
|
|
+ <xsl:with-param name="xml_id_from_loop" select="$xml_id_from_loop"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <!--</apply_templ>-->
|
|
|
+ <!--<content><xsl:copy-of select="."/></content>-->
|
|
|
+ <!--</RelatedFeatureLoop_debug330>-->
|
|
|
+ </xsl:when>
|
|
|
<xsl:otherwise><xsl:copy-of select="." copy-namespaces="no"/></xsl:otherwise>
|
|
|
</xsl:choose>
|
|
|
</xsl:for-each>
|
|
|
@@ -296,6 +482,7 @@
|
|
|
<xsl:value-of select="concat($path,'/',@xml_id,'.',$uuid,'.',$loop_pos)"/>
|
|
|
</xsl:variable>
|
|
|
<!--<xsl:comment>#220 $path=<xsl:value-of select="$path"/>; </xsl:comment>-->
|
|
|
+ <!--<debug_findChild><xsl:value-of select="."/></debug_findChild>-->
|
|
|
<xsl:variable name="dita_fragment">
|
|
|
<xsl:choose>
|
|
|
<xsl:when test=" doc-available(concat($path,'/',$uuid,'_out_task_dita_final.dita.xml'))">
|
|
|
@@ -317,6 +504,7 @@
|
|
|
<xsl:with-param name="feature_pos_child" select="$loop_pos"/>
|
|
|
<xsl:with-param name="dita_with_id" select="$dita_with_id"/>
|
|
|
<xsl:with-param name="xml_id" select="@xml_id"/>
|
|
|
+ <xsl:with-param name="xml_id_from_loop" select="$current/parent::node()/@xml_id"/>
|
|
|
</xsl:apply-templates>
|
|
|
<!--</child_recurs>-->
|
|
|
<!-- cofniecie sie do wlasciwego dita_with_id -->
|
|
|
@@ -343,31 +531,55 @@
|
|
|
<xsl:template mode="RelatedFeature" match="*">
|
|
|
<xsl:param name="loop_xpath" required="yes"/>
|
|
|
<xsl:param name="dita.map"/>
|
|
|
+ <xsl:param name="path"/>
|
|
|
+ <xsl:param name="xml_id_from_loop"/>
|
|
|
<!--<xsl:param name="dita_with_id" required="yes"/>-->
|
|
|
<!--<xsl:element name="{name()}">-->
|
|
|
<!--<xsl:copy-of select="@*"/>-->
|
|
|
<!--<xsl:apply-templates select="@*"/>-->
|
|
|
<xsl:message>#94 ustalam $feature_pos_child=<xsl:value-of select="position()"/>; dla <xsl:value-of select="name()"/></xsl:message>
|
|
|
+ <xsl:comment>#94 ustalam $feature_pos_child=<xsl:value-of select="position()"/>; dla <xsl:value-of select="name()"/></xsl:comment>
|
|
|
<xsl:apply-templates mode="RelatedFeatureChild" select=".">
|
|
|
<xsl:with-param name="loop_xpath" select="$loop_xpath"/>
|
|
|
<xsl:with-param name="feature_pos_child" select="position()"/>
|
|
|
<!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
|
|
|
<xsl:with-param name="dita.map" select="$dita.map"/>
|
|
|
+ <xsl:with-param name="path" select="$path"/>
|
|
|
+ <xsl:with-param name="xml_id_from_loop" select="$xml_id_from_loop"/>
|
|
|
</xsl:apply-templates>
|
|
|
<!--</xsl:element>-->
|
|
|
</xsl:template>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<xsl:template mode="RelatedFeatureChild" match="*">
|
|
|
<xsl:param name="loop_xpath" required="yes"/>
|
|
|
+ <xsl:param name="path"/>
|
|
|
+ <xsl:param name="xml_id_from_loop"/>
|
|
|
<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_with_id" required="yes"/>-->
|
|
|
<xsl:choose>
|
|
|
+ <!--<xsl:when test="$with_RelatedFeatureLoop and name()=RelatedFeatureLoop">
|
|
|
+ <DEBUG406_will_call_RelatedFeatureChild>
|
|
|
+ <xsl:attribute name="loop_xpath" select="$loop_xpath"/>
|
|
|
+ <xsl:attribute name="feature_pos_child" select="$feature_pos_child"/>
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </DEBUG406_will_call_RelatedFeatureChild>
|
|
|
+ <!-\-<xsl:apply-templates mode="RelatedFeatureChild" select=".">
|
|
|
+ <xsl:with-param name="loop_xpath" select="$loop_xpath"/>
|
|
|
+ <xsl:with-param name="feature_pos_child" select="$loop_xpath"/>
|
|
|
+ <xsl:with-param name="dita.map" select="$dita.map"/>
|
|
|
+ </xsl:apply-templates>-\->
|
|
|
+ </xsl:when>-->
|
|
|
<xsl:when test="$dita.map">
|
|
|
<xsl:apply-templates mode="RelatedFeatureChild">
|
|
|
<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"/>
|
|
|
+ <xsl:with-param name="path" select="$path"/>
|
|
|
+ <xsl:with-param name="xml_id_from_loop" select="$xml_id_from_loop"/>
|
|
|
<!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:when>
|
|
|
@@ -376,12 +588,15 @@
|
|
|
<!--<xsl:copy-of select="namespace::node()"/>-->
|
|
|
<!--<xsl:copy-of select="@*"/>-->
|
|
|
<xsl:apply-templates select="@*"/>
|
|
|
- <xsl:apply-templates mode="RelatedFeatureChild">
|
|
|
- <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"/>
|
|
|
- <!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
|
|
|
- </xsl:apply-templates>
|
|
|
+ <!--<xsl:attribute name="feature_pos_child" select="$feature_pos_child"/>-->
|
|
|
+ <xsl:apply-templates mode="RelatedFeatureChild">
|
|
|
+ <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"/>
|
|
|
+ <xsl:with-param name="path" select="$path"/>
|
|
|
+ <xsl:with-param name="xml_id_from_loop" select="$xml_id_from_loop"/>
|
|
|
+ <!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
|
|
|
+ </xsl:apply-templates>
|
|
|
</xsl:element>
|
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|
|
|
@@ -391,37 +606,52 @@
|
|
|
<xsl:param name="loop_xpath" 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="path"/>
|
|
|
+ <xsl:param name="xml_id_from_loop"/>
|
|
|
<!--<xsl:param name="dita_with_id" required="yes"/>-->
|
|
|
<xsl:apply-templates select=".">
|
|
|
<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"/> <!-- bylo 1 -->
|
|
|
+ <xsl:with-param name="path" select="$path"/>
|
|
|
+ <xsl:with-param name="xml_id_from_loop" select="$xml_id_from_loop"/>
|
|
|
<!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:template>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<xsl:template match="*" >
|
|
|
<xsl:param name="loop_xpath"/>
|
|
|
<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_with_id" required="yes"/>-->
|
|
|
+ <xsl:param name="path"/>
|
|
|
+ <xsl:param name="xml_id_from_loop" />
|
|
|
+
|
|
|
<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="path" select="$path"/>
|
|
|
+ <xsl:with-param name="xml_id_from_loop" select="$xml_id_from_loop"/>
|
|
|
<!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:when>
|
|
|
<xsl:otherwise>
|
|
|
- <xsl:element name="{name()}" >
|
|
|
+ <xsl:element name="{name()}">
|
|
|
<!--<xsl:copy-of select="@*"/>-->
|
|
|
<xsl:apply-templates select="@*"/>
|
|
|
+ <!--<xsl:attribute name="DEBUG480" select="1"/>-->
|
|
|
<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="path" select="$path"/>
|
|
|
+ <xsl:with-param name="xml_id_from_loop" select="$xml_id_from_loop"/>
|
|
|
<!--<xsl:with-param name="dita_with_id" select="$dita_with_id"/>-->
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:element>
|