|
@@ -53,7 +53,29 @@
|
|
|
<!-- second step fist loop - with data -->
|
|
<!-- second step fist loop - with data -->
|
|
|
<!--<xsl:param name="wfs_output.xml"/>--> <!-- to be set in second step by ant build generated by this style to fill by its data childs -->
|
|
<!--<xsl:param name="wfs_output.xml"/>--> <!-- to be set in second step by ant build generated by this style to fill by its data childs -->
|
|
|
|
|
|
|
|
- <xsl:template match="*">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- opis dzialania template dla przetwarzania wezlow na podstawie schematu i budowania zagniezdzonego pliku xml z
|
|
|
|
|
+ instancjami na podstawie tego samego schematu
|
|
|
|
|
+
|
|
|
|
|
+ wyzwolenie inicjalizujace z build.xml buduje "wyzwolenie glowne" gdzie na output daje wynikowy build.
|
|
|
|
|
+
|
|
|
|
|
+ system wyzwala dwa etapy
|
|
|
|
|
+ wyzwolenie glowne - do okreslenia zaleznosci wezla i zbudowania zapytania o dane
|
|
|
|
|
+ wyzwolenie after_first_ant_assing_vars - do podstawienia danych z wyzwolenia poprzedniego oraz przygotowania build "dla kolejnego X" do wyzwolenia glownego
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ wyzwolenie glowne - szuka pierwszego RelatedFeature, ktore zawsze domyslnie jest na poczatku template, potem w nim grzebie - jak znajdzie - wchodzi w dol
|
|
|
|
|
+ w ramach tego wyzwolenia przygotowuje task dla biezecego przygotowania ant_build - mode ant_target
|
|
|
|
|
+ w ramach tego wyzwolenia juz musi przeanalizowac jakie sa dalsze zadania do wyzwolenia "dla kolejnego X' ant_build -
|
|
|
|
|
+ mode place_subant (jest okazja do zrobienia builda) do poprawy zagniezdzenia - co robi na podstawie szukania plikow w kontekscie wyzwolenia after_first_ant_assing_vars
|
|
|
|
|
+
|
|
|
|
|
+ wyzwolenie after_first_ant_assing_vars - to wyzwile
|
|
|
|
|
+ to wyzwolenie podstawia dane do dita.vals.xml w celu zlozenia pliku wyjsciowego
|
|
|
|
|
+ to wyzwolenie powinno juz zrobic ant_buildy "dla kolejnego X'
|
|
|
|
|
+ to wyzwolenie korzysta z apply-templates wyzwolenia glownego, w celu przygotowania ant_build
|
|
|
|
|
+
|
|
|
|
|
+ -->
|
|
|
|
|
+ <xsl:template match="*">
|
|
|
<xsl:param name="typeName" select="$typeName" />
|
|
<xsl:param name="typeName" select="$typeName" />
|
|
|
<xsl:param name="xpath" select="$xpath" />
|
|
<xsl:param name="xpath" select="$xpath" />
|
|
|
<xsl:param name="xpath_value" select="$xpath_value" />
|
|
<xsl:param name="xpath_value" select="$xpath_value" />
|
|
@@ -231,7 +253,10 @@
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <!-- trzeba przetwarzac child_nodes do pierwszego napotkania RelatedFeature -->
|
|
|
|
|
+ <xsl:template mode="child_nodes" match="*">
|
|
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
|
|
+ </xsl:template>
|
|
|
|
|
|
|
|
<xsl:template mode="place_subant" match="RelatedFeature">
|
|
<xsl:template mode="place_subant" match="RelatedFeature">
|
|
|
<xsl:param name="uuid" required="yes"/>
|
|
<xsl:param name="uuid" required="yes"/>
|
|
@@ -240,37 +265,37 @@
|
|
|
<!-- wygenerujemy liste ant -->
|
|
<!-- wygenerujemy liste ant -->
|
|
|
|
|
|
|
|
<echo> #235 ant szukam fileset id=builds_to_ant w <xsl:value-of select="concat($uuid,'.build_',$loop_xpath,'_x2f_.',@xml_id,'.',substring-after(@typeName,':'),'.*.xml')"/> </echo>
|
|
<echo> #235 ant szukam fileset id=builds_to_ant w <xsl:value-of select="concat($uuid,'.build_',$loop_xpath,'_x2f_.',@xml_id,'.',substring-after(@typeName,':'),'.*.xml')"/> </echo>
|
|
|
- <fileset id="builds_to_ant{$loop_xpath_real}" dir="temp" includes="{$uuid}.build_{$loop_xpath}_x2f_.{@xml_id}.{ substring-after(@typeName,':') }.*.xml" />
|
|
|
|
|
|
|
+ <fileset id="builds_to_ant{$loop_xpath_real}{@xml_id}" dir="temp" includes="{$uuid}.build_{$loop_xpath}_x2f_.{@xml_id}.{ substring-after(@typeName,':') }.*.xml" />
|
|
|
|
|
|
|
|
- <property name="builds_to_ant{$loop_xpath_real}" refid="builds_to_ant{$loop_xpath_real}"/>
|
|
|
|
|
|
|
+ <property name="builds_to_ant{$loop_xpath_real}{@xml_id}" refid="builds_to_ant{$loop_xpath_real}{@xml_id}"/>
|
|
|
<!--<tempfile property="builds_to_ant.xml" deleteonexit="no" destdir="temp" suffix=".xml" prefix="${uuid}.builds_to_ant-"/>-->
|
|
<!--<tempfile property="builds_to_ant.xml" deleteonexit="no" destdir="temp" suffix=".xml" prefix="${uuid}.builds_to_ant-"/>-->
|
|
|
<xsl:element name="tempfile">
|
|
<xsl:element name="tempfile">
|
|
|
- <xsl:attribute name="property" select="concat('builds_to_ant.xml',$loop_xpath_real)"/>
|
|
|
|
|
|
|
+ <xsl:attribute name="property" select="concat('builds_to_ant.xml',$loop_xpath_real,@xml_id)"/>
|
|
|
<xsl:attribute name="deleteonexit" select="'no'"/>
|
|
<xsl:attribute name="deleteonexit" select="'no'"/>
|
|
|
<xsl:attribute name="destdir" select="'temp'"/>
|
|
<xsl:attribute name="destdir" select="'temp'"/>
|
|
|
<xsl:attribute name="suffix" select="'.xml'"/>
|
|
<xsl:attribute name="suffix" select="'.xml'"/>
|
|
|
- <xsl:attribute name="prefix" select="'${uuid}.builds_to_ant-'"/>
|
|
|
|
|
|
|
+ <xsl:attribute name="prefix" select="concat('${uuid}.builds_to_ant-',@xml_id,'-')"/>
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
<!--<tempfile property="builds_to_ant_file.xml" deleteonexit="no" destdir="temp" suffix=".xml" prefix="${uuid}.build_to_ant_file-"/>-->
|
|
<!--<tempfile property="builds_to_ant_file.xml" deleteonexit="no" destdir="temp" suffix=".xml" prefix="${uuid}.build_to_ant_file-"/>-->
|
|
|
<xsl:element name="tempfile">
|
|
<xsl:element name="tempfile">
|
|
|
- <xsl:attribute name="property" select="concat('builds_to_ant_file.xml',$loop_xpath_real)"/>
|
|
|
|
|
|
|
+ <xsl:attribute name="property" select="concat('builds_to_ant_file.xml',$loop_xpath_real,@xml_id)"/>
|
|
|
<xsl:attribute name="deleteonexit" select="'no'"/>
|
|
<xsl:attribute name="deleteonexit" select="'no'"/>
|
|
|
<xsl:attribute name="destdir" select="'temp'"/>
|
|
<xsl:attribute name="destdir" select="'temp'"/>
|
|
|
<xsl:attribute name="suffix" select="'.xml'"/>
|
|
<xsl:attribute name="suffix" select="'.xml'"/>
|
|
|
- <xsl:attribute name="prefix" select="'${uuid}.build_to_ant_file-'"/>
|
|
|
|
|
|
|
+ <xsl:attribute name="prefix" select="concat('${uuid}.build_to_ant_file-',@xml_id,'-')"/>
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
<echo>#235 ant do: builds_to_ant.xml=${builds_to_ant_file.xml} mode="place_subant" match="RelatedFeature" </echo>
|
|
<echo>#235 ant do: builds_to_ant.xml=${builds_to_ant_file.xml} mode="place_subant" match="RelatedFeature" </echo>
|
|
|
<!--<echoxml file="'${builds_to_ant.xml}'"><builds_to_ant>${builds_to_ant}</builds_to_ant></echoxml>-->
|
|
<!--<echoxml file="'${builds_to_ant.xml}'"><builds_to_ant>${builds_to_ant}</builds_to_ant></echoxml>-->
|
|
|
<xsl:element name="echoxml">
|
|
<xsl:element name="echoxml">
|
|
|
- <xsl:attribute name="file" select="concat('${builds_to_ant.xml',$loop_xpath_real,'}')"/>
|
|
|
|
|
- <builds_to_ant>${builds_to_ant<xsl:value-of select="$loop_xpath_real"/>}</builds_to_ant>
|
|
|
|
|
|
|
+ <xsl:attribute name="file" select="concat('${builds_to_ant.xml',$loop_xpath_real,@xml_id,'}')"/>
|
|
|
|
|
+ <builds_to_ant>${builds_to_ant<xsl:value-of select="concat($loop_xpath_real,@xml_id)"/>}</builds_to_ant>
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
<xsl:element name="xslt">
|
|
<xsl:element name="xslt">
|
|
|
<xsl:attribute name="basedir" select="'./'"/>
|
|
<xsl:attribute name="basedir" select="'./'"/>
|
|
|
<xsl:attribute name="style" select="$builds_to_ant.xsl"/>
|
|
<xsl:attribute name="style" select="$builds_to_ant.xsl"/>
|
|
|
- <xsl:attribute name="in" select="concat('${builds_to_ant.xml',$loop_xpath_real,'}')"/>
|
|
|
|
|
|
|
+ <xsl:attribute name="in" select="concat('${builds_to_ant.xml',$loop_xpath_real,@xml_id,'}')"/>
|
|
|
<xsl:attribute name="destdir" select="'./'"/>
|
|
<xsl:attribute name="destdir" select="'./'"/>
|
|
|
- <xsl:attribute name="out" select="concat('${builds_to_ant_file.xml',$loop_xpath_real,'}')"/>
|
|
|
|
|
|
|
+ <xsl:attribute name="out" select="concat('${builds_to_ant_file.xml',$loop_xpath_real,@xml_id,'}')"/>
|
|
|
<factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
<factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
<!--<attribute name="http://saxon.sf.net/feature/initialMode"
|
|
<!--<attribute name="http://saxon.sf.net/feature/initialMode"
|
|
@@ -278,7 +303,7 @@
|
|
|
</factory>
|
|
</factory>
|
|
|
|
|
|
|
|
<param name="temp" expression="{$temp}"/>
|
|
<param name="temp" expression="{$temp}"/>
|
|
|
- <param name="loop_xpath_real" expression="{$loop_xpath_real}"/>
|
|
|
|
|
|
|
+ <param name="loop_xpath_real" expression="{$loop_xpath_real}{@xml_id}"/>
|
|
|
<!--<xsl:element name="param">
|
|
<!--<xsl:element name="param">
|
|
|
<xsl:attribute name="name" select="'default_antfile'"/>
|
|
<xsl:attribute name="name" select="'default_antfile'"/>
|
|
|
<xsl:attribute name="expression" select="concat($temp,'/',$builds_to_ant_file.xml"/>
|
|
<xsl:attribute name="expression" select="concat($temp,'/',$builds_to_ant_file.xml"/>
|
|
@@ -290,7 +315,7 @@
|
|
|
<!--<ant antfile="{$temp}/{$uuid}.build_{$loop_xpath}_x2f_.{@xml_id}.{ substring-after(@typeName,':') }.1.xml" dir="."/>-->
|
|
<!--<ant antfile="{$temp}/{$uuid}.build_{$loop_xpath}_x2f_.{@xml_id}.{ substring-after(@typeName,':') }.1.xml" dir="."/>-->
|
|
|
|
|
|
|
|
<xsl:element name="ant">
|
|
<xsl:element name="ant">
|
|
|
- <xsl:attribute name="antfile" select="concat('${builds_to_ant_file.xml',$loop_xpath_real,'}')"/>
|
|
|
|
|
|
|
+ <xsl:attribute name="antfile" select="concat('${builds_to_ant_file.xml',$loop_xpath_real,@xml_id,'}')"/>
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
<!--<ant antfile="{$temp}/${builds_to_ant_file.xml}" dir="."/>-->
|
|
<!--<ant antfile="{$temp}/${builds_to_ant_file.xml}" dir="."/>-->
|
|
|
|
|
|
|
@@ -307,9 +332,7 @@
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
<xsl:template mode="place_subant" match="text()|comment()"/>
|
|
<xsl:template mode="place_subant" match="text()|comment()"/>
|
|
|
|
|
|
|
|
- <xsl:template mode="child_nodes" match="*">
|
|
|
|
|
- <xsl:copy-of select="."/>
|
|
|
|
|
- </xsl:template>
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="RelatedFeature" mode="ant_target" >
|
|
<xsl:template match="RelatedFeature" mode="ant_target" >
|
|
@@ -474,7 +497,7 @@
|
|
|
<xsl:template match="RelatedFeature" mode="after_first_ant_assing_vars">
|
|
<xsl:template match="RelatedFeature" mode="after_first_ant_assing_vars">
|
|
|
<xsl:param name="loop_xpath" select="$loop_xpath"/>
|
|
<xsl:param name="loop_xpath" select="$loop_xpath"/>
|
|
|
<RelatedFeatureRoot>
|
|
<RelatedFeatureRoot>
|
|
|
- <xsl:message>#228 try to open $wfs_output=doc(<xsl:value-of select="$wfs_output"/>); @xml_id=<xsl:value-of select="@xml_id"/>; templ match RelatedFeature mode after_first_ant_assing_vars dla @typeName=<xsl:value-of select="@typeName"/>;</xsl:message>
|
|
|
|
|
|
|
+ <xsl:message>#228 @xml_id=<xsl:value-of select="@xml_id"/>; templ match RelatedFeature mode after_first_ant_assing_vars dla @typeName=<xsl:value-of select="@typeName"/>; try to open $wfs_output=doc(<xsl:value-of select="$wfs_output"/>); </xsl:message>
|
|
|
<!-- first assign xpath to features from -->
|
|
<!-- first assign xpath to features from -->
|
|
|
<xsl:variable name="wfs_output_nodes" select="doc($wfs_output)"/>
|
|
<xsl:variable name="wfs_output_nodes" select="doc($wfs_output)"/>
|
|
|
<xsl:variable name="current_RelatedFeature" select="*"/>
|
|
<xsl:variable name="current_RelatedFeature" select="*"/>
|
|
@@ -555,50 +578,7 @@
|
|
|
|
|
|
|
|
<xsl:template match="text()" mode="after_first_ant_assing_xpath"/>
|
|
<xsl:template match="text()" mode="after_first_ant_assing_xpath"/>
|
|
|
|
|
|
|
|
- <xsl:template match="RelatedFeature" mode="after_first_ant_assing_vars_childs">
|
|
|
|
|
- <xsl:param name="input_obj_with_xpath" required="yes"/>
|
|
|
|
|
- <xsl:param name="xml_id_parent" required="yes"/>
|
|
|
|
|
- <xsl:param name="loop_xpath" select="$loop_xpath"/>
|
|
|
|
|
- <xsl:param name="feature_pos" required="yes"/>
|
|
|
|
|
- <xsl:message>#411 $feature_pos=<xsl:value-of select="$feature_pos"/>; mode after_first_ant_assing_vars_childs bylo $loop_xpath=<xsl:value-of select="$loop_xpath"/>;</xsl:message>
|
|
|
|
|
- <!-- jest okazja do zrobienia bilda aby sciagnal rzeczy nizej -->
|
|
|
|
|
- <xsl:variable name="featureID_name" select="substring-after(@typeName,':')"/>
|
|
|
|
|
- <xsl:variable name="xml_id" select="@xml_id"/>
|
|
|
|
|
- <xsl:variable name="loop_xpath" select="concat($loop_xpath,'_x2f_.',$xml_id,'.',$featureID_name)"/>
|
|
|
|
|
- <!--<xsl:variable name="loop_xpath_save" select="concat($loop_xpath,'_x2f_.',$xml_id,'.',$featureID_name)"/>--> <!-- tutaj zapisal sie build z wezla z parent -->
|
|
|
|
|
- <!--<debug_358_RelatedFeature>
|
|
|
|
|
- <xsl:copy-of select="$input_obj_with_xpath"/>
|
|
|
|
|
- </debug_358_RelatedFeature>-->
|
|
|
|
|
- <!--<xsl:variable name="feature_pos">
|
|
|
|
|
- <xsl:choose>
|
|
|
|
|
- <xsl:when test="$feature_pos=1"/>
|
|
|
|
|
- <xsl:otherwise><xsl:value-of select="$feature_pos"/></xsl:otherwise>
|
|
|
|
|
- </xsl:choose>
|
|
|
|
|
- </xsl:variable>-->
|
|
|
|
|
- <xsl:message>#389 jest okazja do zrobienia bilda $feature_pos=<xsl:value-of select="$feature_pos"/> $xml_id_parent=<xsl:value-of select="$xml_id_parent"/>; $xml_id=<xsl:value-of select="$xml_id"/>; result-document=<xsl:value-of select="concat($uuid,'.build_',$loop_xpath,'.xml')"/> match=RelatedFeature mode=after_first_ant_assing_vars_childs </xsl:message>
|
|
|
|
|
-
|
|
|
|
|
- <xsl:result-document href="{$uuid}.build_{$loop_xpath}.{$feature_pos}.xml">
|
|
|
|
|
- <xsl:apply-templates select=".">
|
|
|
|
|
- <xsl:with-param name="typeName" select="@typeName"/>
|
|
|
|
|
- <xsl:with-param name="xpath" select="@xpath"/>
|
|
|
|
|
- <xsl:with-param name="xpath_value" select="@xpath_value"/>
|
|
|
|
|
- <!--<xsl:with-param name="loop_xpath_save" select="$loop_xpath"/>-->
|
|
|
|
|
- <xsl:with-param name="input_obj_with_xpath" select="$input_obj_with_xpath"/>
|
|
|
|
|
- <xsl:with-param name="loop_xpath" select="$loop_xpath"/>
|
|
|
|
|
- <xsl:with-param name="wfs_output" select="concat($uuid,'.',$loop_xpath)" />
|
|
|
|
|
- <xsl:with-param name="xml_id_parent" select="$xml_id_parent"/>
|
|
|
|
|
- <xsl:with-param name="feature_pos" select="$feature_pos"/>
|
|
|
|
|
- <!--<xsl:with-param name="wfs_output.xml" />-->
|
|
|
|
|
- </xsl:apply-templates>
|
|
|
|
|
- </xsl:result-document>
|
|
|
|
|
- <xsl:element name="RelatedFeature">
|
|
|
|
|
- <xsl:copy-of select="@*"/>
|
|
|
|
|
- <xsl:attribute name="featureID_name" select="$featureID_name"/>
|
|
|
|
|
- <xsl:attribute name="loop_xpath" select="$loop_xpath"/>
|
|
|
|
|
- </xsl:element>
|
|
|
|
|
-
|
|
|
|
|
- </xsl:template>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <!-- przetwarzanie kolejne w celu podstawienia wartosci i wystawienia build dla kolejnych wezlow - problem z obsluga rownorzednie zagniezdzonych wezlow poprzez inne wezly -->
|
|
|
<xsl:template match="*" mode="after_first_ant_assing_vars_childs">
|
|
<xsl:template match="*" mode="after_first_ant_assing_vars_childs">
|
|
|
<xsl:param name="xml_id_parent" required="yes"/>
|
|
<xsl:param name="xml_id_parent" required="yes"/>
|
|
|
<xsl:param name="loop_xpath" required="yes"/>
|
|
<xsl:param name="loop_xpath" required="yes"/>
|
|
@@ -663,6 +643,52 @@
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
</xsl:for-each>
|
|
</xsl:for-each>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:template match="RelatedFeature" mode="after_first_ant_assing_vars_childs">
|
|
|
|
|
+ <xsl:param name="input_obj_with_xpath" required="yes"/>
|
|
|
|
|
+ <xsl:param name="xml_id_parent" required="yes"/>
|
|
|
|
|
+ <xsl:param name="loop_xpath" select="$loop_xpath"/>
|
|
|
|
|
+ <xsl:param name="feature_pos" required="yes"/>
|
|
|
|
|
+ <xsl:message>#411 $feature_pos=<xsl:value-of select="$feature_pos"/>; mode after_first_ant_assing_vars_childs bylo $loop_xpath=<xsl:value-of select="$loop_xpath"/>;</xsl:message>
|
|
|
|
|
+ <!-- jest okazja do zrobienia bilda aby sciagnal rzeczy nizej -->
|
|
|
|
|
+ <xsl:variable name="featureID_name" select="substring-after(@typeName,':')"/>
|
|
|
|
|
+ <xsl:variable name="xml_id" select="@xml_id"/>
|
|
|
|
|
+ <xsl:variable name="loop_xpath" select="concat($loop_xpath,'_x2f_.',$xml_id,'.',$featureID_name)"/>
|
|
|
|
|
+ <!--<xsl:variable name="loop_xpath_save" select="concat($loop_xpath,'_x2f_.',$xml_id,'.',$featureID_name)"/>--> <!-- tutaj zapisal sie build z wezla z parent -->
|
|
|
|
|
+ <!--<debug_358_RelatedFeature>
|
|
|
|
|
+ <xsl:copy-of select="$input_obj_with_xpath"/>
|
|
|
|
|
+ </debug_358_RelatedFeature>-->
|
|
|
|
|
+ <!--<xsl:variable name="feature_pos">
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="$feature_pos=1"/>
|
|
|
|
|
+ <xsl:otherwise><xsl:value-of select="$feature_pos"/></xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+ </xsl:variable>-->
|
|
|
|
|
+ <xsl:message>#389 jest okazja do zrobienia bilda $feature_pos=<xsl:value-of select="$feature_pos"/> $xml_id_parent=<xsl:value-of select="$xml_id_parent"/>; $xml_id=<xsl:value-of select="$xml_id"/>; result-document=<xsl:value-of select="concat($uuid,'.build_',$loop_xpath,'.xml')"/> match=RelatedFeature mode=after_first_ant_assing_vars_childs </xsl:message>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:result-document href="{$uuid}.build_{$loop_xpath}.{$feature_pos}.xml">
|
|
|
|
|
+ <xsl:apply-templates select=".">
|
|
|
|
|
+ <xsl:with-param name="typeName" select="@typeName"/>
|
|
|
|
|
+ <xsl:with-param name="xpath" select="@xpath"/>
|
|
|
|
|
+ <xsl:with-param name="xpath_value" select="@xpath_value"/>
|
|
|
|
|
+ <!--<xsl:with-param name="loop_xpath_save" select="$loop_xpath"/>-->
|
|
|
|
|
+ <xsl:with-param name="input_obj_with_xpath" select="$input_obj_with_xpath"/>
|
|
|
|
|
+ <xsl:with-param name="loop_xpath" select="$loop_xpath"/>
|
|
|
|
|
+ <xsl:with-param name="wfs_output" select="concat($uuid,'.',$loop_xpath)" />
|
|
|
|
|
+ <xsl:with-param name="xml_id_parent" select="$xml_id_parent"/>
|
|
|
|
|
+ <xsl:with-param name="feature_pos" select="$feature_pos"/>
|
|
|
|
|
+ <!--<xsl:with-param name="wfs_output.xml" />-->
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:result-document>
|
|
|
|
|
+ <xsl:element name="RelatedFeature">
|
|
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
|
|
+ <xsl:attribute name="featureID_name" select="$featureID_name"/>
|
|
|
|
|
+ <xsl:attribute name="loop_xpath" select="$loop_xpath"/>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+
|
|
|
|
|
+ </xsl:template>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<xsl:template match="text()" mode="after_first_ant_assing_vars_childs"/>
|
|
<xsl:template match="text()" mode="after_first_ant_assing_vars_childs"/>
|
|
|
<xsl:template match="comment()" mode="after_first_ant_assing_vars_childs"/>
|
|
<xsl:template match="comment()" mode="after_first_ant_assing_vars_childs"/>
|
|
|
<!-- pozbieranie do kupy wszystkich xmli i zlozenie dity -->
|
|
<!-- pozbieranie do kupy wszystkich xmli i zlozenie dity -->
|