|
@@ -68,6 +68,7 @@
|
|
|
<xsl:param name="empty.xml" required="yes"/>
|
|
<xsl:param name="empty.xml" required="yes"/>
|
|
|
<xsl:param name="simpleSchema_dir" required="yes"/>
|
|
<xsl:param name="simpleSchema_dir" required="yes"/>
|
|
|
<xsl:param name="default_db_xml_cache.public" required="yes"/>
|
|
<xsl:param name="default_db_xml_cache.public" required="yes"/>
|
|
|
|
|
+ <xsl:param name="ant-launcher.jar"/>
|
|
|
|
|
|
|
|
<!--<xsl:variable name="temp_current">
|
|
<!--<xsl:variable name="temp_current">
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
@@ -113,12 +114,17 @@
|
|
|
<xsl:param name="input_obj_with_xpath" /> <!-- przekazany z template match="RelatedFeature" mode="after_first_ant_assing_vars_childs" -->
|
|
<xsl:param name="input_obj_with_xpath" /> <!-- przekazany z template match="RelatedFeature" mode="after_first_ant_assing_vars_childs" -->
|
|
|
<xsl:param name="feature_pos" select="1"/> <!-- przekazany z template match="RelatedFeature" mode="after_first_ant_assing_vars_childs"-->
|
|
<xsl:param name="feature_pos" select="1"/> <!-- przekazany z template match="RelatedFeature" mode="after_first_ant_assing_vars_childs"-->
|
|
|
<xsl:param name="loop_path_recurs" select="$loop_path_recurs"/> <!-- przekazany z RelatedFeatureLoop z mode="after_first_ant_assing_vars_childs" -->
|
|
<xsl:param name="loop_path_recurs" select="$loop_path_recurs"/> <!-- przekazany z RelatedFeatureLoop z mode="after_first_ant_assing_vars_childs" -->
|
|
|
|
|
+ <xsl:if test="not(@xml_position)">
|
|
|
|
|
+ <xsl:message >#118 not set @xml_position </xsl:message>
|
|
|
|
|
+ </xsl:if>
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
|
<xsl:when test="name()='RelatedFeature'">
|
|
<xsl:when test="name()='RelatedFeature'">
|
|
|
<xsl:variable name="RelatedFeatureCount" select="last()"/>
|
|
<xsl:variable name="RelatedFeatureCount" select="last()"/>
|
|
|
- <xsl:variable name="RelatedFeaturePos" select="position()"/>
|
|
|
|
|
|
|
+ <xsl:variable name="RelatedFeaturePos" select="position()"/> <!-- bylo bug @2017-04 position() -->
|
|
|
<xsl:variable name="featureID_name" select="substring-after($typeName,':')"/>
|
|
<xsl:variable name="featureID_name" select="substring-after($typeName,':')"/>
|
|
|
- <xsl:message>#58 bylo $loop_xpath=<xsl:value-of select="$loop_xpath"/>; $basedir=<xsl:value-of select="$basedir"/>; </xsl:message>
|
|
|
|
|
|
|
+ <xsl:message>#58 bylo $loop_xpath=<xsl:value-of select="$loop_xpath"/>; $basedir=<xsl:value-of select="$basedir"/>;
|
|
|
|
|
+ $RelatedFeaturePos=<xsl:value-of select="position()"/> while @xml_position=<xsl:value-of select="@xml_position"/>
|
|
|
|
|
+ </xsl:message>
|
|
|
<xsl:variable name="loop_xpath_real" select="$loop_xpath"/>
|
|
<xsl:variable name="loop_xpath_real" select="$loop_xpath"/>
|
|
|
<xsl:variable name="loop_xpath">
|
|
<xsl:variable name="loop_xpath">
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
@@ -141,8 +147,8 @@
|
|
|
<!--<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)"/>-->
|
|
|
<xsl:variable name="wfs_output" select="concat($uuid,'.',$loop_xpath)"/>
|
|
<xsl:variable name="wfs_output" select="concat($uuid,'.',$loop_xpath)"/>
|
|
|
<!--<xsl:variable name="wfs_output.xml" select="concat($wfs_output,'.',position(),'.xml')"/>-->
|
|
<!--<xsl:variable name="wfs_output.xml" select="concat($wfs_output,'.',position(),'.xml')"/>-->
|
|
|
- <xsl:variable name="wfs_output.xml" select="concat($wfs_output,'.',position(),'.',$feature_pos,'.xml')"/>
|
|
|
|
|
- <xsl:variable name="wfs_output.dita" select="concat($wfs_output,'.',position(),'.',$feature_pos,'.dita.xml')"/>
|
|
|
|
|
|
|
+ <xsl:variable name="wfs_output.xml" select="concat($wfs_output,'.',position(),'.',$feature_pos,'.xml')"/> <!-- bylo bug @2017-04 position() -->
|
|
|
|
|
+ <xsl:variable name="wfs_output.dita" select="concat($wfs_output,'.',position(),'.',$feature_pos,'.dita.xml')"/> <!-- bylo bug @2017-04 position() -->
|
|
|
<!--<xsl:variable name="wfs_output.dita" select="concat($wfs_output,'.',position(),'.','.dita.xml')"/>-->
|
|
<!--<xsl:variable name="wfs_output.dita" select="concat($wfs_output,'.',position(),'.','.dita.xml')"/>-->
|
|
|
<!-- dane z oczekiwanego template .dita -->
|
|
<!-- dane z oczekiwanego template .dita -->
|
|
|
<xsl:variable name="xpath_dita">
|
|
<xsl:variable name="xpath_dita">
|
|
@@ -246,6 +252,7 @@
|
|
|
<property name="default_db_xml_cache.public" value="{$default_db_xml_cache.public}"/>
|
|
<property name="default_db_xml_cache.public" value="{$default_db_xml_cache.public}"/>
|
|
|
|
|
|
|
|
<property name="temp" value="{$temp}"/>
|
|
<property name="temp" value="{$temp}"/>
|
|
|
|
|
+ <property name="ant-launcher.jar" value="{$ant-launcher.jar}"/>
|
|
|
|
|
|
|
|
<xsl:comment>
|
|
<xsl:comment>
|
|
|
#224 Important variables:
|
|
#224 Important variables:
|
|
@@ -338,8 +345,9 @@
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
<xsl:element name="echoxml">
|
|
<xsl:element name="echoxml">
|
|
|
<xsl:attribute name="file" select="concat('${',$temp,'-',$wfs_output.xml,'__test_featureID_name_dita.xml}')"/>
|
|
<xsl:attribute name="file" select="concat('${',$temp,'-',$wfs_output.xml,'__test_featureID_name_dita.xml}')"/>
|
|
|
- <xsl:element name="{$featureID_name_dita}"><xsl:attribute name="position" select="position()"/></xsl:element>
|
|
|
|
|
- </xsl:element>
|
|
|
|
|
|
|
+ <xsl:element name="{$featureID_name_dita}">
|
|
|
|
|
+ <xsl:attribute name="position" select="position()"/></xsl:element><!-- bylo bug @2017-04 position() -->
|
|
|
|
|
+ </xsl:element>
|
|
|
<xsl:element name="tempfile">
|
|
<xsl:element name="tempfile">
|
|
|
<xsl:attribute name="property" select="concat($temp,'-',$wfs_output.xml,'__test_featureID_name_dita_out.xml')"/>
|
|
<xsl:attribute name="property" select="concat($temp,'-',$wfs_output.xml,'__test_featureID_name_dita_out.xml')"/>
|
|
|
<xsl:attribute name="deleteonexit" select="'no'"/>
|
|
<xsl:attribute name="deleteonexit" select="'no'"/>
|
|
@@ -599,6 +607,8 @@
|
|
|
<xsl:attribute name="value" select="concat($recurse_ant_basedir.temp,$loop_path_recurs)"/>
|
|
<xsl:attribute name="value" select="concat($recurse_ant_basedir.temp,$loop_path_recurs)"/>
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
+ <property name="ant-launcher.jar" value="{$ant-launcher.jar}"/>
|
|
|
|
|
+
|
|
|
<xsl:comment>
|
|
<xsl:comment>
|
|
|
#555 Important variables:
|
|
#555 Important variables:
|
|
|
typeName=<xsl:value-of select="$typeName"/>;
|
|
typeName=<xsl:value-of select="$typeName"/>;
|
|
@@ -877,6 +887,7 @@
|
|
|
<param name="xpath_query" expression="{$xpath_query}"/> <!-- limit related TODO -->
|
|
<param name="xpath_query" expression="{$xpath_query}"/> <!-- limit related TODO -->
|
|
|
<!--<param name="xpath_query.xsl" expression="{$xpath_query.xsl}"/>-->
|
|
<!--<param name="xpath_query.xsl" expression="{$xpath_query.xsl}"/>-->
|
|
|
<param name="featureID_name_dita" expression="{$featureID_name_dita}"/>
|
|
<param name="featureID_name_dita" expression="{$featureID_name_dita}"/>
|
|
|
|
|
+ <param name="ant-launcher.jar" expression="{$ant-launcher.jar}"/>
|
|
|
<classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
<classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
<!--<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="."/>-->
|
|
@@ -986,6 +997,7 @@
|
|
|
<param name="xpath_query" expression="{$xpath_query}"/>
|
|
<param name="xpath_query" expression="{$xpath_query}"/>
|
|
|
<!--<param name="xpath_query.xsl" expression="{$xpath_query.xsl}"/>-->
|
|
<!--<param name="xpath_query.xsl" expression="{$xpath_query.xsl}"/>-->
|
|
|
<param name="featureID_name_dita" expression="{$featureID_name_dita}"/>
|
|
<param name="featureID_name_dita" expression="{$featureID_name_dita}"/>
|
|
|
|
|
+ <param name="ant-launcher.jar" expression="{$ant-launcher.jar}"/>
|
|
|
<classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
<classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
|
|
|
|
@@ -1196,6 +1208,7 @@
|
|
|
<param name="empty.xml" expression="{$empty.xml}"/>
|
|
<param name="empty.xml" expression="{$empty.xml}"/>
|
|
|
<param name="simpleSchema_dir" expression="{$simpleSchema_dir}"/>
|
|
<param name="simpleSchema_dir" expression="{$simpleSchema_dir}"/>
|
|
|
<param name="default_db_xml_cache.public" expression="{$default_db_xml_cache.public}"/>
|
|
<param name="default_db_xml_cache.public" expression="{$default_db_xml_cache.public}"/>
|
|
|
|
|
+ <param name="ant-launcher.jar" expression="{$ant-launcher.jar}"/>
|
|
|
</xslt>
|
|
</xslt>
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
<!-- zapisujemy wynik naszego biezacego przetwarzania dita element nizej do kolejnego przejechania z ant wyniku dla podstawienia danych -->
|
|
<!-- zapisujemy wynik naszego biezacego przetwarzania dita element nizej do kolejnego przejechania z ant wyniku dla podstawienia danych -->
|
|
@@ -1249,7 +1262,7 @@
|
|
|
<xsl:param name="simpleTypeMakeOgcFilter" required="yes"/>
|
|
<xsl:param name="simpleTypeMakeOgcFilter" required="yes"/>
|
|
|
<xsl:param name="xpath_dita" required="yes"/>
|
|
<xsl:param name="xpath_dita" required="yes"/>
|
|
|
<xsl:param name="xpath_value_dita" required="yes"/>
|
|
<xsl:param name="xpath_value_dita" required="yes"/>
|
|
|
- <xsl:param name="RelatedFilter"/>&Filter=<ogc:Filter><ogc:And><xsl:choose><xsl:when test="$RelatedFilter"><xsl:message>#406 we are enabling RelatedFilter <xsl:copy-of select="$RelatedFilter" copy-namespaces="no"/></xsl:message><ogc:And><ogc:PropertyIsEqualTo><ogc:PropertyName><xsl:value-of select="$xpath_dita"/></ogc:PropertyName><ogc:Literal><xsl:value-of select="$xpath_value_dita"/></ogc:Literal></ogc:PropertyIsEqualTo><xsl:for-each select="$RelatedFilter"><ogc:PropertyIsEqualTo><ogc:PropertyName><xsl:value-of select="@xpath"/></ogc:PropertyName><ogc:Literal><xsl:value-of select="@xpath_value"/></ogc:Literal></ogc:PropertyIsEqualTo></xsl:for-each></ogc:And></xsl:when><xsl:otherwise><ogc:PropertyIsEqualTo><ogc:PropertyName><xsl:value-of select="$xpath_dita"/></ogc:PropertyName><ogc:Literal><xsl:value-of select="$xpath_value_dita"/></ogc:Literal></ogc:PropertyIsEqualTo></xsl:otherwise></xsl:choose><xsl:if test="$simpleTypeMakeOgcFilter"><ogc:Or><!--<xsl:if test="count($simpleTypeMakeOgcFilter/ogc:Or/ogc:PropertyIsEqualTo) > 1"><ogc:Or></xsl:if>--><xsl:for-each select="$simpleTypeMakeOgcFilter/ogc:Or/ogc:PropertyIsEqualTo"><ogc:PropertyIsEqualTo><ogc:PropertyName><xsl:value-of select="ogc:PropertyName/text()"/></ogc:PropertyName><ogc:Literal><xsl:value-of select="ogc:Literal/text()"/></ogc:Literal></ogc:PropertyIsEqualTo></xsl:for-each></ogc:Or><!--<xsl:if test="count($simpleTypeMakeOgcFilter/ogc:Or/ogc:PropertyIsEqualTo) > 1"></ogc:Or></xsl:if>--></xsl:if></ogc:And></ogc:Filter></xsl:template>
|
|
|
|
|
|
|
+ <xsl:param name="RelatedFilter"/>&Filter=<ogc:Filter><xsl:if test="$RelatedFilter and $simpleTypeMakeOgcFilter/ogc:Or"><ogc:And></xsl:if><xsl:choose><xsl:when test="$RelatedFilter"><xsl:message>#406 we are enabling RelatedFilter <xsl:copy-of select="$RelatedFilter" copy-namespaces="no"/></xsl:message><ogc:And><ogc:PropertyIsEqualTo><ogc:PropertyName><xsl:value-of select="$xpath_dita"/></ogc:PropertyName><ogc:Literal><xsl:value-of select="$xpath_value_dita"/></ogc:Literal></ogc:PropertyIsEqualTo><xsl:for-each select="$RelatedFilter"><ogc:PropertyIsEqualTo><ogc:PropertyName><xsl:value-of select="@xpath"/></ogc:PropertyName><ogc:Literal><xsl:value-of select="@xpath_value"/></ogc:Literal></ogc:PropertyIsEqualTo></xsl:for-each></ogc:And></xsl:when><xsl:otherwise><ogc:PropertyIsEqualTo><ogc:PropertyName><xsl:value-of select="$xpath_dita"/></ogc:PropertyName><ogc:Literal><xsl:value-of select="$xpath_value_dita"/></ogc:Literal></ogc:PropertyIsEqualTo></xsl:otherwise></xsl:choose><xsl:if test="$simpleTypeMakeOgcFilter"><ogc:Or><!--<xsl:if test="count($simpleTypeMakeOgcFilter/ogc:Or/ogc:PropertyIsEqualTo) > 1"><ogc:Or></xsl:if>--><xsl:for-each select="$simpleTypeMakeOgcFilter/ogc:Or/ogc:PropertyIsEqualTo"><ogc:PropertyIsEqualTo><ogc:PropertyName><xsl:value-of select="ogc:PropertyName/text()"/></ogc:PropertyName><ogc:Literal><xsl:value-of select="ogc:Literal/text()"/></ogc:Literal></ogc:PropertyIsEqualTo></xsl:for-each></ogc:Or><!--<xsl:if test="count($simpleTypeMakeOgcFilter/ogc:Or/ogc:PropertyIsEqualTo) > 1"></ogc:Or></xsl:if>--></xsl:if><xsl:if test="$RelatedFilter and $simpleTypeMakeOgcFilter/ogc:Or"></ogc:And></xsl:if></ogc:Filter></xsl:template>
|
|
|
|
|
|
|
|
<!-- second step from local ant leaf -->
|
|
<!-- second step from local ant leaf -->
|
|
|
<xsl:template match="RelatedFeature" mode="after_first_ant_assing_vars">
|
|
<xsl:template match="RelatedFeature" mode="after_first_ant_assing_vars">
|
|
@@ -1477,6 +1490,7 @@
|
|
|
<xsl:copy-of select="@*"/>
|
|
<xsl:copy-of select="@*"/>
|
|
|
<xsl:attribute name="featureID_name" select="$featureID_name"/>
|
|
<xsl:attribute name="featureID_name" select="$featureID_name"/>
|
|
|
<xsl:attribute name="loop_xpath" select="$loop_xpath"/>
|
|
<xsl:attribute name="loop_xpath" select="$loop_xpath"/>
|
|
|
|
|
+ <xsl:attribute name="feature_pos" select="$feature_pos"/>
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
</xsl:when>
|
|
</xsl:when>
|
|
|
<xsl:otherwise>
|
|
<xsl:otherwise>
|