|
|
@@ -660,8 +660,25 @@
|
|
|
<xsl:apply-templates mode="enter_to_ph" select="$input_obj_with_xpath/node()[local-name()=current()/@xpath]">
|
|
|
<xsl:with-param name="count" select="count($input_obj_with_xpath/node()[local-name()=current()/@xpath])"/>
|
|
|
<xsl:with-param name="element" select="name()"/>
|
|
|
+ <!--<xsl:with-param name="xpath_token_filter" select="@xpath_token_filter"/>--><!-- mozliwosc wybrania pierwszego wyrazu np ' ' -->
|
|
|
+ <!--<xsl:with-param name="xpath_token" select="@xpath_token"/>--><!-- mozliwosc wybrania pierwszego wyrazu np 1 -->
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:variable>
|
|
|
+ <xsl:variable name="enter_to_ph">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="@xpath_token_filter and @xpath_token ">
|
|
|
+ <!-- implementacja filtra dla czegos oddzielonego parametrem -->
|
|
|
+ <xsl:variable name="xpath_token_filter" select="tokenize($enter_to_ph,@xpath_token_filter)"/>
|
|
|
+ <xsl:for-each select=" tokenize(@xpath_token,' ')">
|
|
|
+ <xsl:variable name="xpath_token" select="number(.)"/>
|
|
|
+ <xsl:copy-of select="$xpath_token_filter[$xpath_token]"></xsl:copy-of>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:copy-of select="$enter_to_ph"/>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
<xsl:copy-of select="$enter_to_ph"/>
|
|
|
</xsl:when>
|
|
|
</xsl:choose>
|