I needs an XSLT function to create key-value strings sequence ( 'key1_val1', 'key2_val2', 'key3_val3' ) from plain strings sequence ( 'key1', 'val1', 'key2', 'val2', 'key3', 'val3' ).
I was stopped on the following code and have no ideas to continue:
<xsl:function name="bx:generate-pairs" as="xs:string*">
<xsl:param name="seq" as="xs:string*"/>
<xsl:sequence select="for $key in $seq return ..."/>
</xsl:function>
XSLT processor Saxon 9.3
You are looking for