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

Subject: Re: [xsl] 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 19:12:25 -0000
On 04.06.2022 20:47, Martin Honnen martin.honnen@xxxxxx wrote:

On 04.06.2022 17:30, Chris Papademetrious christopher.papademetrious@xxxxxxxxxxxx wrote:

I had to define


B xmlns:fn=http://www.w3.org/2005/xpath-functions

in my stylesheet for fn:group to match, and Ibm not sure if therebs a better way to do that too.


I am not a fan of a wildcard for the namespace prefix but when I would only need fn to access the analyze-string result (or a quick selection in some json-to-xml result) I sometimes allow myself to take the wildcard e.g. *:group ( or for JSON e.g. *:map) shortcut.

Who among us hasn't used wildcard prefixes out of ignorance, desperation, convenience, or the unwillingness to change swathes of legacy code, or a combination of any of these reasons?


Current Thread