|
@@ -55,6 +55,12 @@
|
|
|
<xsl:param name="builds_to_ant.xsl" required="yes"/>
|
|
<xsl:param name="builds_to_ant.xsl" required="yes"/>
|
|
|
<xsl:param name="cookie_curl_option" required="yes"/>
|
|
<xsl:param name="cookie_curl_option" required="yes"/>
|
|
|
<xsl:param name="loop_path_recurs" required="yes" /> <!-- loop path dla gromadzenia plikow dla RelatedFeatureLoop do przetworzen w rekurencji - domysmnie pusty, potem sie dobudowuje po wyzwoleniu anta w glab -->
|
|
<xsl:param name="loop_path_recurs" required="yes" /> <!-- loop path dla gromadzenia plikow dla RelatedFeatureLoop do przetworzen w rekurencji - domysmnie pusty, potem sie dobudowuje po wyzwoleniu anta w glab -->
|
|
|
|
|
+ <xsl:param name="ignore_maxOccurs_0" select="false()"/>
|
|
|
|
|
+ <xsl:param name="xpath_query"/>
|
|
|
|
|
+ <xsl:param name="xpath_query.xsl" required="yes"/>
|
|
|
|
|
+ <xsl:param name="empty.xml" required="yes"/>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<!-- 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 -->
|
|
|
|
|
|
|
@@ -132,7 +138,6 @@
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
<xsl:variable name="xpath_value_dita">
|
|
<xsl:variable name="xpath_value_dita">
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
|
-
|
|
|
|
|
<xsl:when test="@xpath_value">
|
|
<xsl:when test="@xpath_value">
|
|
|
<!--<xsl:variable name="xpath_value_tokens" select="tokenize(@xpath_value,'/')"/>-->
|
|
<!--<xsl:variable name="xpath_value_tokens" select="tokenize(@xpath_value,'/')"/>-->
|
|
|
<!--<xsl:value-of select="'todo zapytanie xpath do przetworzenia'"/>-->
|
|
<!--<xsl:value-of select="'todo zapytanie xpath do przetworzenia'"/>-->
|
|
@@ -201,12 +206,32 @@
|
|
|
<xsl:attribute name="value" select="$loop_path_recurs"/>
|
|
<xsl:attribute name="value" select="$loop_path_recurs"/>
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
+ <xsl:element name="property">
|
|
|
|
|
+ <xsl:attribute name="name" select="'xpath_query'"/>
|
|
|
|
|
+ <xsl:attribute name="value" select="$xpath_query"/>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:element name="property">
|
|
|
|
|
+ <xsl:attribute name="name" select="'ignore_maxOccurs_0'"/>
|
|
|
|
|
+ <xsl:attribute name="value" select="$ignore_maxOccurs_0"/>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+
|
|
|
<xsl:comment>
|
|
<xsl:comment>
|
|
|
Important variables:
|
|
Important variables:
|
|
|
typeName=<xsl:value-of select="$typeName"/>;
|
|
typeName=<xsl:value-of select="$typeName"/>;
|
|
|
xpath=<xsl:value-of select="$xpath"/>;
|
|
xpath=<xsl:value-of select="$xpath"/>;
|
|
|
xpath_value=<xsl:value-of select="$xpath_value"/>;
|
|
xpath_value=<xsl:value-of select="$xpath_value"/>;
|
|
|
$passwordBase64Basic=<xsl:value-of select="$passwordBase64Basic"/>
|
|
$passwordBase64Basic=<xsl:value-of select="$passwordBase64Basic"/>
|
|
|
|
|
+ #221
|
|
|
|
|
+ $typeName_dita= <xsl:value-of select="$typeName_dita"/>
|
|
|
|
|
+ $featureID_name_dita= <xsl:value-of select="$featureID_name_dita"/>
|
|
|
|
|
+ $wfs_output= <xsl:value-of select="$wfs_output"/>
|
|
|
|
|
+ $wfs_output.xml= <xsl:value-of select="$wfs_output.xml"/>
|
|
|
|
|
+ $wfs_output.dita= <xsl:value-of select="$wfs_output.dita"/>
|
|
|
|
|
+ $xpath_dita= <xsl:value-of select="$xpath_dita"/>
|
|
|
|
|
+ $xpath_value_dita= <xsl:value-of select="$xpath_value_dita"/>
|
|
|
|
|
+ $ignore_maxOccurs= <xsl:value-of select="$ignore_maxOccurs_0"/> ; @maxOccurs=<xsl:value-of select="@system_cache__appinfo:maxOccurs"/>
|
|
|
|
|
+ $xpath_query=<xsl:value-of select="$xpath_query"/>;
|
|
|
</xsl:comment>
|
|
</xsl:comment>
|
|
|
<xsl:apply-templates mode="ant_target" select=".">
|
|
<xsl:apply-templates mode="ant_target" select=".">
|
|
|
<xsl:with-param name="typeName_dita" select="$typeName_dita"/>
|
|
<xsl:with-param name="typeName_dita" select="$typeName_dita"/>
|
|
@@ -275,6 +300,7 @@
|
|
|
<xsl:with-param name="loop_xpath_real" select="$loop_xpath_real"/>
|
|
<xsl:with-param name="loop_xpath_real" select="$loop_xpath_real"/>
|
|
|
<xsl:with-param name="xpath_dita" select="$xpath_dita"/>
|
|
<xsl:with-param name="xpath_dita" select="$xpath_dita"/>
|
|
|
<xsl:with-param name="xpath_value_dita" select="$xpath_value_dita"/>
|
|
<xsl:with-param name="xpath_value_dita" select="$xpath_value_dita"/>
|
|
|
|
|
+ <xsl:with-param name="featureID_name_dita" select="$featureID_name_dita"/>
|
|
|
<!--<xsl:with-param name="loop_path_recurs" select="$loop_path_recurs"/>-->
|
|
<!--<xsl:with-param name="loop_path_recurs" select="$loop_path_recurs"/>-->
|
|
|
</xsl:apply-templates>
|
|
</xsl:apply-templates>
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
@@ -329,15 +355,18 @@
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
<xsl:comment>
|
|
<xsl:comment>
|
|
|
- RelatedFeatureLoop:
|
|
|
|
|
|
|
+ RelatedFeatureLoop: #344
|
|
|
$typeName_dita= <xsl:value-of select="$typeName_dita"/>
|
|
$typeName_dita= <xsl:value-of select="$typeName_dita"/>
|
|
|
$featureID_name_dita= <xsl:value-of select="$featureID_name_dita"/>
|
|
$featureID_name_dita= <xsl:value-of select="$featureID_name_dita"/>
|
|
|
$wfs_output= <xsl:value-of select="$wfs_output"/>
|
|
$wfs_output= <xsl:value-of select="$wfs_output"/>
|
|
|
$wfs_output.xml= <xsl:value-of select="$wfs_output.xml"/>
|
|
$wfs_output.xml= <xsl:value-of select="$wfs_output.xml"/>
|
|
|
$wfs_output.dita= <xsl:value-of select="$wfs_output.dita"/>
|
|
$wfs_output.dita= <xsl:value-of select="$wfs_output.dita"/>
|
|
|
$xpath_dita= <xsl:value-of select="$xpath_dita"/>
|
|
$xpath_dita= <xsl:value-of select="$xpath_dita"/>
|
|
|
- $xpath_value_dita= <xsl:value-of select="$xpath_value_dita"/>
|
|
|
|
|
|
|
+ $xpath_value_dita= <xsl:value-of select="$xpath_value_dita"/>
|
|
|
|
|
+ $ignore_maxOccurs= <xsl:value-of select="$ignore_maxOccurs_0"/> ; @maxOccurs=<xsl:value-of select="@system_cache__appinfo:maxOccurs"/>
|
|
|
|
|
+ $xpath_query=<xsl:value-of select="$xpath_query"/>;
|
|
|
</xsl:comment>
|
|
</xsl:comment>
|
|
|
|
|
+
|
|
|
<project basedir="{$basedir}" name="get_related_feature{$loop_xpath_real}_{$loop_path_recurs}" default="get_related_feature_run_child_ant{$loop_xpath_real}_{$loop_path_recurs}">
|
|
<project basedir="{$basedir}" name="get_related_feature{$loop_xpath_real}_{$loop_path_recurs}" default="get_related_feature_run_child_ant{$loop_xpath_real}_{$loop_path_recurs}">
|
|
|
<xsl:comment>RelatedFeatureCount:<xsl:value-of select="count(*)"/></xsl:comment>
|
|
<xsl:comment>RelatedFeatureCount:<xsl:value-of select="count(*)"/></xsl:comment>
|
|
|
<echo> ANT Uruchamiam $feature_pos=<xsl:value-of select="$feature_pos"/>; projekt <xsl:value-of select="$loop_xpath_real"/>; </echo>
|
|
<echo> ANT Uruchamiam $feature_pos=<xsl:value-of select="$feature_pos"/>; projekt <xsl:value-of select="$loop_xpath_real"/>; </echo>
|
|
@@ -383,6 +412,17 @@
|
|
|
<property name="xpath_value" value="{$xpath_value_dita}"/>
|
|
<property name="xpath_value" value="{$xpath_value_dita}"/>
|
|
|
<!-- DtypeName=p5_default_db:CRM_PROCES -Dxpath=ID -Dxpath_value=5247 -->
|
|
<!-- DtypeName=p5_default_db:CRM_PROCES -Dxpath=ID -Dxpath_value=5247 -->
|
|
|
<property name="loop_path_recurs" value="{$loop_path_recurs}"/>
|
|
<property name="loop_path_recurs" value="{$loop_path_recurs}"/>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:element name="property">
|
|
|
|
|
+ <xsl:attribute name="name" select="'xpath_query'"/>
|
|
|
|
|
+ <xsl:attribute name="value" select="$xpath_query"/>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:element name="property">
|
|
|
|
|
+ <xsl:attribute name="name" select="'ignore_maxOccurs_0'"/>
|
|
|
|
|
+ <xsl:attribute name="value" select="$ignore_maxOccurs_0"/>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+
|
|
|
<xsl:comment>
|
|
<xsl:comment>
|
|
|
Important variables:
|
|
Important variables:
|
|
|
typeName=<xsl:value-of select="$typeName"/>;
|
|
typeName=<xsl:value-of select="$typeName"/>;
|
|
@@ -418,7 +458,7 @@
|
|
|
wiec powinnismy uruchomic ant ten plik w ciemno znajac jego nizsze wezly</xsl:comment>
|
|
wiec powinnismy uruchomic ant ten plik w ciemno znajac jego nizsze wezly</xsl:comment>
|
|
|
<xsl:variable name="featureID_name_child" select="substring-after($typeName,':')"/>
|
|
<xsl:variable name="featureID_name_child" select="substring-after($typeName,':')"/>
|
|
|
<xsl:variable name="loop_xpath_child" select="concat($loop_xpath,'_x2f_.',$xml_id,'.',$featureID_name)"/>
|
|
<xsl:variable name="loop_xpath_child" select="concat($loop_xpath,'_x2f_.',$xml_id,'.',$featureID_name)"/>
|
|
|
- <xsl:message>#142 ustalamy $loop_xpath_child=<xsl:value-of select="$loop_xpath_child"/></xsl:message>
|
|
|
|
|
|
|
+ <xsl:message>#142 ustalamy $loop_xpath_child=<xsl:value-of select="$loop_xpath_child"/>; maxOccurs=<xsl:value-of select="@system_cache__appinfo:maxOccurs"/>; </xsl:message>
|
|
|
|
|
|
|
|
<!-- warunek dla ograniczenia zapetlenia TODO do optymalizacji aby nie potrzebnie nie robilo zapytania czy jest wezel zaglebiony -->
|
|
<!-- warunek dla ograniczenia zapetlenia TODO do optymalizacji aby nie potrzebnie nie robilo zapytania czy jest wezel zaglebiony -->
|
|
|
|
|
|
|
@@ -542,8 +582,47 @@
|
|
|
<xsl:param name="uuid" required="yes"/>
|
|
<xsl:param name="uuid" required="yes"/>
|
|
|
<xsl:param name="loop_xpath" required="yes"/>
|
|
<xsl:param name="loop_xpath" required="yes"/>
|
|
|
<xsl:param name="loop_xpath_real" required="yes"/>
|
|
<xsl:param name="loop_xpath_real" required="yes"/>
|
|
|
|
|
+ <xsl:param name="featureID_name_dita" required="yes"/>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <echo>#588 testuje czy sciagac node poprzez $xpath_query.xsl to <xsl:value-of select="concat('${builds_to_ant_file_test_xpath_query.xml',$loop_xpath_real,@xml_id,'}')"/></echo>
|
|
|
|
|
+ <xsl:element name="tempfile">
|
|
|
|
|
+ <xsl:attribute name="property" select="concat('builds_to_ant_test_featureID_name_dita',$loop_xpath_real,@xml_id)"/>
|
|
|
|
|
+ <xsl:attribute name="deleteonexit" select="'no'"/>
|
|
|
|
|
+ <xsl:attribute name="destdir" select="$temp"/>
|
|
|
|
|
+ <xsl:attribute name="suffix" select="'.xml'"/>
|
|
|
|
|
+ <xsl:attribute name="prefix" select="concat('${uuid}.builds_to_ant-loop_test_featureID_name_dita',@xml_id,'-')"/>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:element name="echoxml">
|
|
|
|
|
+ <xsl:attribute name="file" select="concat('${builds_to_ant_test_featureID_name_dita',$loop_xpath_real,@xml_id,'}')"/>
|
|
|
|
|
+ <xsl:element name="{$featureID_name_dita}">empty</xsl:element>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:element name="tempfile">
|
|
|
|
|
+ <xsl:attribute name="property" select="concat('builds_to_ant_test_featureID_name_dita_out.xml',$loop_xpath_real,@xml_id)"/>
|
|
|
|
|
+ <xsl:attribute name="deleteonexit" select="'no'"/>
|
|
|
|
|
+ <xsl:attribute name="destdir" select="$temp"/>
|
|
|
|
|
+ <xsl:attribute name="suffix" select="'.xml'"/>
|
|
|
|
|
+ <xsl:attribute name="prefix" select="concat('${uuid}.builds_to_ant-loop_test_featureID_name_dita_out',@xml_id,'-')"/>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:element name="xslt">
|
|
|
|
|
+ <xsl:attribute name="basedir" select="'./'"/>
|
|
|
|
|
+ <xsl:attribute name="style" select="$xpath_query.xsl"/>
|
|
|
|
|
+ <xsl:attribute name="in" select="concat('${builds_to_ant_test_featureID_name_dita',$loop_xpath_real,@xml_id,'}')"/>
|
|
|
|
|
+ <xsl:attribute name="destdir" select="'./'"/>
|
|
|
|
|
+ <xsl:attribute name="out" select="concat('${builds_to_ant_test_featureID_name_dita_out.xml',$loop_xpath_real,@xml_id,'}')"/>
|
|
|
|
|
+ <factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
|
|
+ <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
|
|
+ <attribute name="http://saxon.sf.net/feature/initialMode" value="xpath_query_test"/>
|
|
|
|
|
+ </factory>
|
|
|
|
|
+ <classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
|
|
+ <!--<param name="featureID_name_dita" expression="{$featureID_name_dita}"/>-->
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+
|
|
|
<!-- 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 @maxOccurs=<xsl:value-of select="@system_cache__appinfo:maxOccurs"/>; 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}{@xml_id}" 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}{@xml_id}" refid="builds_to_ant{$loop_xpath_real}{@xml_id}"/>
|
|
<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-"/>-->
|
|
@@ -586,6 +665,9 @@
|
|
|
<xsl:attribute name="expression" select="concat($temp,'/',$builds_to_ant_file.xml"/>
|
|
<xsl:attribute name="expression" select="concat($temp,'/',$builds_to_ant_file.xml"/>
|
|
|
</xsl:element>-->
|
|
</xsl:element>-->
|
|
|
<param name="default_antfile" expression="{$temp}/{$uuid}.build_{$loop_xpath}_x2f_.{@xml_id}.{ substring-after(@typeName,':') }.1.xml"/>
|
|
<param name="default_antfile" expression="{$temp}/{$uuid}.build_{$loop_xpath}_x2f_.{@xml_id}.{ substring-after(@typeName,':') }.1.xml"/>
|
|
|
|
|
+ <param name="xpath_query" expression="{$xpath_query}"/> <!-- limit related TODO -->
|
|
|
|
|
+ <param name="xpath_query.xsl" expression="{$xpath_query.xsl}"/>
|
|
|
|
|
+ <param name="featureID_name_dita" expression="{$featureID_name_dita}"/>
|
|
|
<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="."/>-->
|
|
@@ -601,15 +683,53 @@
|
|
|
<xsl:param name="loop_xpath_real" required="yes"/>
|
|
<xsl:param name="loop_xpath_real" 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="featureID_name_dita" required="yes"/>
|
|
|
<!--<xsl:param name="loop_path_recurs" required="yes"/>-->
|
|
<!--<xsl:param name="loop_path_recurs" required="yes"/>-->
|
|
|
<!-- wygenerujemy liste ant -->
|
|
<!-- wygenerujemy liste ant -->
|
|
|
|
|
|
|
|
<xsl:comment>
|
|
<xsl:comment>
|
|
|
- #590 LOOP BEGIN</xsl:comment>
|
|
|
|
|
- <echo> #523 RelatedFeatureLoop ant bede odpalac w podkatalogu:@xml_id=(<xsl:value-of select="@xml_id"/>)
|
|
|
|
|
|
|
+ #590 LOOP BEGIN ; @maxOccurs=<xsl:value-of select="@system_cache__appinfo:maxOccurs"/>; </xsl:comment>
|
|
|
|
|
+ <echo> #523 RelatedFeatureLoop @maxOccurs=<xsl:value-of select="@system_cache__appinfo:maxOccurs"/>; ant bede odpalac w podkatalogu:@xml_id=(<xsl:value-of select="@xml_id"/>)
|
|
|
<xsl:value-of select="concat($temp,'/',@xml_id,'/',$uuid,'.build_',$loop_xpath,'_x2f_.',@xml_id,'.',substring-after(@typeName,':'),'.1.xml')"/> </echo>
|
|
<xsl:value-of select="concat($temp,'/',@xml_id,'/',$uuid,'.build_',$loop_xpath,'_x2f_.',@xml_id,'.',substring-after(@typeName,':'),'.1.xml')"/> </echo>
|
|
|
<xsl:message>#591 todo executing by exec instead of ant without inheritAll because it's looping!!! </xsl:message>
|
|
<xsl:message>#591 todo executing by exec instead of ant without inheritAll because it's looping!!! </xsl:message>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <echo>testuje czy sciagac node poprzez $xpath_query.xsl to <xsl:value-of select="concat('${builds_to_ant_file_test_xpath_query.xml',$loop_xpath_real,@xml_id,'}')"/></echo>
|
|
|
|
|
+ <xsl:element name="tempfile">
|
|
|
|
|
+ <xsl:attribute name="property" select="concat('builds_to_ant_test_featureID_name_dita',$loop_xpath_real,@xml_id)"/>
|
|
|
|
|
+ <xsl:attribute name="deleteonexit" select="'no'"/>
|
|
|
|
|
+ <xsl:attribute name="destdir" select="$temp"/>
|
|
|
|
|
+ <xsl:attribute name="suffix" select="'.xml'"/>
|
|
|
|
|
+ <xsl:attribute name="prefix" select="concat('${uuid}.builds_to_ant-loop_test_featureID_name_dita',@xml_id,'-')"/>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:element name="echoxml">
|
|
|
|
|
+ <xsl:attribute name="file" select="concat('${builds_to_ant_test_featureID_name_dita',$loop_xpath_real,@xml_id,'}')"/>
|
|
|
|
|
+ <xsl:element name="{$featureID_name_dita}">empty</xsl:element>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:element name="tempfile">
|
|
|
|
|
+ <xsl:attribute name="property" select="concat('builds_to_ant_test_featureID_name_dita_out.xml',$loop_xpath_real,@xml_id)"/>
|
|
|
|
|
+ <xsl:attribute name="deleteonexit" select="'no'"/>
|
|
|
|
|
+ <xsl:attribute name="destdir" select="$temp"/>
|
|
|
|
|
+ <xsl:attribute name="suffix" select="'.xml'"/>
|
|
|
|
|
+ <xsl:attribute name="prefix" select="concat('${uuid}.builds_to_ant-loop_test_featureID_name_dita_out',@xml_id,'-')"/>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:element name="xslt">
|
|
|
|
|
+ <xsl:attribute name="basedir" select="'./'"/>
|
|
|
|
|
+ <xsl:attribute name="style" select="$xpath_query.xsl"/>
|
|
|
|
|
+ <xsl:attribute name="in" select="concat('${builds_to_ant_test_featureID_name_dita',$loop_xpath_real,@xml_id,'}')"/>
|
|
|
|
|
+ <xsl:attribute name="destdir" select="'./'"/>
|
|
|
|
|
+ <xsl:attribute name="out" select="concat('${builds_to_ant_test_featureID_name_dita_out.xml',$loop_xpath_real,@xml_id,'}')"/>
|
|
|
|
|
+ <factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
|
|
+ <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
|
|
+ <attribute name="http://saxon.sf.net/feature/initialMode" value="xpath_query_test"/>
|
|
|
|
|
+ </factory>
|
|
|
|
|
+ <classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
|
|
+ <!--<param name="featureID_name_dita" expression="{$featureID_name_dita}"/>-->
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+
|
|
|
<!-- Lista do wyzwolenia dzieci w podkalagach na bazie params-->
|
|
<!-- Lista do wyzwolenia dzieci w podkalagach na bazie params-->
|
|
|
|
|
|
|
|
|
|
|
|
@@ -650,11 +770,15 @@
|
|
|
</factory>
|
|
</factory>
|
|
|
<param name="temp" expression="{$temp}"/>
|
|
<param name="temp" expression="{$temp}"/>
|
|
|
<param name="loop_xpath_real" expression="{$loop_xpath_real}{@xml_id}"/>
|
|
<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"/>
|
|
|
</xsl:element>-->
|
|
</xsl:element>-->
|
|
|
<param name="default_antfile" expression="{$temp}/{$uuid}.build_{$loop_xpath}_x2f_.{@xml_id}.{ substring-after(@typeName,':') }.1.xml"/>
|
|
<param name="default_antfile" expression="{$temp}/{$uuid}.build_{$loop_xpath}_x2f_.{@xml_id}.{ substring-after(@typeName,':') }.1.xml"/>
|
|
|
|
|
+ <param name="xpath_query" expression="{$xpath_query}"/>
|
|
|
|
|
+ <param name="xpath_query.xsl" expression="{$xpath_query.xsl}"/>
|
|
|
|
|
+ <param name="featureID_name_dita" expression="{$featureID_name_dita}"/>
|
|
|
<classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
<classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
</xsl:element>
|
|
</xsl:element>
|
|
|
|
|
|
|
@@ -688,6 +812,7 @@
|
|
|
<xsl:param name="loop_xpath_real" required="yes"/>
|
|
<xsl:param name="loop_xpath_real" 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="featureID_name_dita" required="yes"/>
|
|
|
<!--<xsl:param name="loop_path_recurs" required="yes"/>-->
|
|
<!--<xsl:param name="loop_path_recurs" required="yes"/>-->
|
|
|
<xsl:apply-templates mode="place_subant">
|
|
<xsl:apply-templates mode="place_subant">
|
|
|
<xsl:with-param name="uuid" select="$uuid"/>
|
|
<xsl:with-param name="uuid" select="$uuid"/>
|
|
@@ -695,6 +820,7 @@
|
|
|
<xsl:with-param name="loop_xpath_real" select="$loop_xpath_real"/>
|
|
<xsl:with-param name="loop_xpath_real" select="$loop_xpath_real"/>
|
|
|
<xsl:with-param name="xpath_dita" select="$xpath_dita"/>
|
|
<xsl:with-param name="xpath_dita" select="$xpath_dita"/>
|
|
|
<xsl:with-param name="xpath_value_dita" select="$xpath_value_dita"/>
|
|
<xsl:with-param name="xpath_value_dita" select="$xpath_value_dita"/>
|
|
|
|
|
+ <xsl:with-param name="featureID_name_dita" select="$featureID_name_dita"/>
|
|
|
<!--<xsl:with-param name="loop_path_recurs" select="$loop_path_recurs"/>-->
|
|
<!--<xsl:with-param name="loop_path_recurs" select="$loop_path_recurs"/>-->
|
|
|
</xsl:apply-templates>
|
|
</xsl:apply-templates>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
@@ -848,6 +974,10 @@
|
|
|
<param name="cookie_curl_option" expression="{$cookie_curl_option}"/>
|
|
<param name="cookie_curl_option" expression="{$cookie_curl_option}"/>
|
|
|
<param name="api_url" expression="{$api_url}"/>
|
|
<param name="api_url" expression="{$api_url}"/>
|
|
|
<param name="loop_path_recurs" expression="{$loop_path_recurs}"/>
|
|
<param name="loop_path_recurs" expression="{$loop_path_recurs}"/>
|
|
|
|
|
+ <param name="ignore_maxOccurs_0" expression="{$ignore_maxOccurs_0}"/>
|
|
|
|
|
+ <param name="xpath_query" expression="{$xpath_query}"/>
|
|
|
|
|
+ <param name="xpath_query.xsl" expression="{$xpath_query.xsl}"/>
|
|
|
|
|
+ <param name="empty.xml" expression="{$empty.xml}"/>
|
|
|
</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 -->
|
|
@@ -1098,27 +1228,50 @@
|
|
|
<xsl:otherwise><xsl:value-of select="$feature_pos"/></xsl:otherwise>
|
|
<xsl:otherwise><xsl:value-of select="$feature_pos"/></xsl:otherwise>
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
</xsl:variable>-->
|
|
</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="{$temp}/{$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="loop_path_recurs" select="$loop_path_recurs"/>
|
|
|
|
|
- <!--<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:variable name="test_xpath_query">
|
|
|
|
|
+ <xsl:call-template name="test_xpath_query">
|
|
|
|
|
+ <xsl:with-param name="featureID_name_dita" select="$featureID_name"/>
|
|
|
|
|
+ <xsl:with-param name="ignore_maxOccurs_0" select="$ignore_maxOccurs_0"/>
|
|
|
|
|
+ <xsl:with-param name="system_cache__appinfo:maxOccurs" select="@system_cache__appinfo:maxOccurs"/>
|
|
|
|
|
+ <xsl:with-param name="xpath_query" select="$xpath_query"/>
|
|
|
|
|
+ </xsl:call-template>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="$test_xpath_query='1'">
|
|
|
|
|
+ <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="{$temp}/{$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="loop_path_recurs" select="$loop_path_recurs"/>
|
|
|
|
|
+ <!--<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:when>
|
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
|
+ <xsl:message terminate="no">#389b
|
|
|
|
|
+ #
|
|
|
|
|
+ #
|
|
|
|
|
+ #
|
|
|
|
|
+ BYPASSED BY $test_xpath_query=<xsl:value-of select="$test_xpath_query"/>; 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:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1151,26 +1304,47 @@
|
|
|
<xsl:otherwise><xsl:value-of select="concat($loop_path_recurs,'/',@xml_id,'.',$uuid,'.',$feature_pos)"/></xsl:otherwise>
|
|
<xsl:otherwise><xsl:value-of select="concat($loop_path_recurs,'/',@xml_id,'.',$uuid,'.',$feature_pos)"/></xsl:otherwise>
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
- <xsl:result-document href="{$temp}/{@xml_id}.{$uuid}.{$feature_pos}/build_root.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="loop_path_recurs" select="$loop_path_recurs"/>
|
|
|
|
|
- <!--<xsl:with-param name="wfs_output.xml" />-->
|
|
|
|
|
- </xsl:apply-templates>
|
|
|
|
|
- </xsl:result-document>
|
|
|
|
|
- <xsl:element name="RelatedFeatureLoop">
|
|
|
|
|
- <xsl:copy-of select="@*"/>
|
|
|
|
|
- <xsl:attribute name="featureID_name" select="$featureID_name"/>
|
|
|
|
|
- <xsl:attribute name="loop_xpath" select="$loop_xpath"/>
|
|
|
|
|
- </xsl:element>
|
|
|
|
|
|
|
+ <xsl:variable name="test_xpath_query">
|
|
|
|
|
+ <xsl:call-template name="test_xpath_query">
|
|
|
|
|
+ <xsl:with-param name="featureID_name_dita" select="$featureID_name"/>
|
|
|
|
|
+ <xsl:with-param name="ignore_maxOccurs_0" select="$ignore_maxOccurs_0"/>
|
|
|
|
|
+ <xsl:with-param name="system_cache__appinfo:maxOccurs" select="@system_cache__appinfo:maxOccurs"/>
|
|
|
|
|
+ <xsl:with-param name="xpath_query" select="$xpath_query"/>
|
|
|
|
|
+ </xsl:call-template>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="$test_xpath_query='1'">
|
|
|
|
|
+ <xsl:result-document href="{$temp}/{@xml_id}.{$uuid}.{$feature_pos}/build_root.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="loop_path_recurs" select="$loop_path_recurs"/>
|
|
|
|
|
+ <!--<xsl:with-param name="wfs_output.xml" />-->
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:result-document>
|
|
|
|
|
+ <xsl:element name="RelatedFeatureLoop">
|
|
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
|
|
+ <xsl:attribute name="featureID_name" select="$featureID_name"/>
|
|
|
|
|
+ <xsl:attribute name="loop_xpath" select="$loop_xpath"/>
|
|
|
|
|
+ </xsl:element>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
|
+ <xsl:message terminate="no">#1263
|
|
|
|
|
+ #
|
|
|
|
|
+ #
|
|
|
|
|
+ #
|
|
|
|
|
+ BYPASSED BY $test_xpath_query=<xsl:value-of select="$test_xpath_query"/>; 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:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="text()" mode="after_first_ant_assing_vars_childs"/>
|
|
<xsl:template match="text()" mode="after_first_ant_assing_vars_childs"/>
|
|
@@ -1235,4 +1409,22 @@
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:template name="test_xpath_query">
|
|
|
|
|
+ <!-- to verify if retrieve some node based on user requested tree limit filter -->
|
|
|
|
|
+ <xsl:param name="ignore_maxOccurs_0" required="yes"/>
|
|
|
|
|
+ <xsl:param name="xpath_query" required="yes"/>
|
|
|
|
|
+ <xsl:param name="featureID_name_dita" required="yes"/>
|
|
|
|
|
+ <xsl:param name="system_cache__appinfo:maxOccurs" required="yes"/>
|
|
|
|
|
+ <xsl:message>#1290 $system_cache__appinfo:maxOccurs=<xsl:value-of select="$system_cache__appinfo:maxOccurs"/>; $featureID_name_dita=<xsl:value-of select="$featureID_name_dita"/>; $xpath_query=<xsl:value-of select="$xpath_query"/>; </xsl:message>
|
|
|
|
|
+ <xsl:if test="$ignore_maxOccurs_0"><xsl:message terminate="no">#1344 test igrnore is true()=<xsl:value-of select="$ignore_maxOccurs_0"/>;</xsl:message></xsl:if>
|
|
|
|
|
+ <xsl:variable name="TestMaxOccurs">
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="$system_cache__appinfo:maxOccurs='0' and $ignore_maxOccurs_0"></xsl:when>
|
|
|
|
|
+ <xsl:otherwise>1</xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+ <xsl:value-of select="$TestMaxOccurs"/>
|
|
|
|
|
+ </xsl:template>
|
|
|
|
|
+
|
|
|
</xsl:stylesheet>
|
|
</xsl:stylesheet>
|