Re: [xsl] Re: efficiently extracting a capture group from analyze-string()

Subject: Re: [xsl] Re: efficiently extracting a capture group from analyze-string()
From: "Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 4 Jun 2022 18:17:39 -0000
U+1F44D!

On 04.06.2022 19:50, Chris Papademetrious christopher.papademetrious@xxxxxxxxxxxx wrote:
Hi Gerrit,



You avoided my ENTITY threat nicely. :)



I think I'm going to put the analyze-string() stuff into a function and call it good:



<xsl:function name="mine:get-match" as="xs:string?">

<xsl:param name="string" as="xs:string"/>

<xsl:param name="pattern" as="xs:string"/>

<xsl:sequence select="analyze-string($string, $pattern)//fn:group[1]"/>

</xsl:function>



- Chris

Current Thread