|
@@ -105,6 +105,13 @@
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
<xsl:variable name="typeName_dita" select="@typeName"/>
|
|
<xsl:variable name="typeName_dita" select="@typeName"/>
|
|
|
|
|
+ <xsl:variable name="typeNameRealResource">
|
|
|
|
|
+ <!-- override in case of different real resource by filtered resource -->
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="@typeNameRealResource"><xsl:value-of select="@typeNameRealResource"/></xsl:when>
|
|
|
|
|
+ <xsl:otherwise><xsl:value-of select="$typeName_dita"/></xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+ </xsl:variable>
|
|
|
<xsl:variable name="featureID_name_dita" select="substring-after($typeName_dita,':')"/>
|
|
<xsl:variable name="featureID_name_dita" select="substring-after($typeName_dita,':')"/>
|
|
|
<xsl:variable name="xml_id" select="@xml_id"/>
|
|
<xsl:variable name="xml_id" select="@xml_id"/>
|
|
|
<!--<xsl:variable name="wfs_output" select="concat($uuid,'.',$loop_xpath,'_x2f_',$featureID_name)"/>-->
|
|
<!--<xsl:variable name="wfs_output" select="concat($uuid,'.',$loop_xpath,'_x2f_',$featureID_name)"/>-->
|
|
@@ -122,8 +129,7 @@
|
|
|
</xsl:when>
|
|
</xsl:when>
|
|
|
<xsl:otherwise><xsl:value-of select="@xpath"/></xsl:otherwise>
|
|
<xsl:otherwise><xsl:value-of select="@xpath"/></xsl:otherwise>
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
- </xsl:variable>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ </xsl:variable>
|
|
|
<xsl:variable name="xpath_value_dita">
|
|
<xsl:variable name="xpath_value_dita">
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
|
|
|
|
|
@@ -223,6 +229,7 @@
|
|
|
<!--<xsl:with-param name="xml_id_parent" select="$xml_id_parent"/>-->
|
|
<!--<xsl:with-param name="xml_id_parent" select="$xml_id_parent"/>-->
|
|
|
<xsl:with-param name="feature_pos" select="$feature_pos"/>
|
|
<xsl:with-param name="feature_pos" select="$feature_pos"/>
|
|
|
<xsl:with-param name="input_obj_with_xpath" select="$input_obj_with_xpath"/>
|
|
<xsl:with-param name="input_obj_with_xpath" select="$input_obj_with_xpath"/>
|
|
|
|
|
+ <xsl:with-param name="typeNameRealResource" select="$typeNameRealResource"/>
|
|
|
</xsl:apply-templates>
|
|
</xsl:apply-templates>
|
|
|
<!-- na koniec przetwarzania kazdego z wezlow, podmieniamy xsl biezacy wezel -->
|
|
<!-- na koniec przetwarzania kazdego z wezlow, podmieniamy xsl biezacy wezel -->
|
|
|
|
|
|
|
@@ -293,6 +300,13 @@
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
<xsl:variable name="typeName_dita" select="@typeName"/>
|
|
<xsl:variable name="typeName_dita" select="@typeName"/>
|
|
|
|
|
+ <xsl:variable name="typeNameRealResource">
|
|
|
|
|
+ <!-- override in case of different real resource by filtered resource -->
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="@typeNameRealResource"><xsl:value-of select="@typeNameRealResource"/></xsl:when>
|
|
|
|
|
+ <xsl:otherwise><xsl:value-of select="@typeName"/></xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+ </xsl:variable>
|
|
|
<xsl:variable name="featureID_name_dita" select="substring-after($typeName_dita,':')"/>
|
|
<xsl:variable name="featureID_name_dita" select="substring-after($typeName_dita,':')"/>
|
|
|
<xsl:variable name="xml_id" select="@xml_id"/>
|
|
<xsl:variable name="xml_id" select="@xml_id"/>
|
|
|
<xsl:variable name="wfs_output" select="concat($uuid,'.',$loop_xpath)"/>
|
|
<xsl:variable name="wfs_output" select="concat($uuid,'.',$loop_xpath)"/>
|
|
@@ -426,7 +440,7 @@
|
|
|
</xsl:call-template>
|
|
</xsl:call-template>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
<xsl:variable name="url">
|
|
<xsl:variable name="url">
|
|
|
- <xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=<xsl:value-of select="$typeName_dita"/>&SRSNAME=EPSG:3003<xsl:value-of select="$OGC_Filter"/>
|
|
|
|
|
|
|
+ <xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=<xsl:value-of select="$typeNameRealResource"/>&SRSNAME=EPSG:3003<xsl:value-of select="$OGC_Filter"/>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
<xsl:element name="exec">
|
|
<xsl:element name="exec">
|
|
|
<xsl:attribute name="executable" select="'curl'"/>
|
|
<xsl:attribute name="executable" select="'curl'"/>
|
|
@@ -726,6 +740,8 @@
|
|
|
<xsl:param name="feature_pos" required="yes"/>
|
|
<xsl:param name="feature_pos" required="yes"/>
|
|
|
<xsl:param name="loop_xpath_real" required="yes"/>
|
|
<xsl:param name="loop_xpath_real" required="yes"/>
|
|
|
<xsl:param name="input_obj_with_xpath" required="yes"/>
|
|
<xsl:param name="input_obj_with_xpath" required="yes"/>
|
|
|
|
|
+ <xsl:param name="typeNameRealResource" required="yes"/>
|
|
|
|
|
+
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
|
<xsl:when test="$wfs_output"/>
|
|
<xsl:when test="$wfs_output"/>
|
|
|
<xsl:otherwise><xsl:message terminate="yes">Not required param wfs_output - nazwa temp sciagniecia z api xml forsowana przez pierwsze sciagniecie - to set by next parraler step in ant build </xsl:message></xsl:otherwise>
|
|
<xsl:otherwise><xsl:message terminate="yes">Not required param wfs_output - nazwa temp sciagniecia z api xml forsowana przez pierwsze sciagniecie - to set by next parraler step in ant build </xsl:message></xsl:otherwise>
|
|
@@ -769,7 +785,7 @@
|
|
|
<xsl:message>#410 final OGC_Filter is <xsl:value-of select="$OGC_Filter"/>;</xsl:message>
|
|
<xsl:message>#410 final OGC_Filter is <xsl:value-of select="$OGC_Filter"/>;</xsl:message>
|
|
|
<xsl:variable name="url">
|
|
<xsl:variable name="url">
|
|
|
<!--<xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=<xsl:value-of select="$typeName_dita"/>&SRSNAME=EPSG:3003&featureID=<xsl:value-of select="$featureID_name_dita"/>.<xsl:value-of select="$xpath_value_dita"/>-->
|
|
<!--<xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=<xsl:value-of select="$typeName_dita"/>&SRSNAME=EPSG:3003&featureID=<xsl:value-of select="$featureID_name_dita"/>.<xsl:value-of select="$xpath_value_dita"/>-->
|
|
|
- <xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=<xsl:value-of select="$typeName_dita"/>&SRSNAME=EPSG:3003<xsl:value-of select="$OGC_Filter"/>
|
|
|
|
|
|
|
+ <xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=<xsl:value-of select="$typeNameRealResource"/>&SRSNAME=EPSG:3003<xsl:value-of select="$OGC_Filter"/>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
<xsl:element name="target">
|
|
<xsl:element name="target">
|
|
|
<xsl:attribute name="name" select="concat('get_related_feature.',position(),$loop_xpath_real)"/>
|
|
<xsl:attribute name="name" select="concat('get_related_feature.',position(),$loop_xpath_real)"/>
|