Skip to content

Allow xsl:analyze-string to use the results of fn:regex #2642

Description

@michaelhkay

We have a new function fn:regex() to return a reusable compiled regular expression, but there is currently no way to use this in xsl:analyze-string.

I suggest a new attribute regex="expression" on xsl:analyze-string; the required type of the (xpath) expression is fn:regex-record, that is, the type of the output of fn:regex(). If the new attribute is present then @pattern and @flags must be absent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementA change or improvement to an existing featurePR PendingA PR has been raised to resolve this issueXSLTAn issue related to XSLT

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions