Matcher Function

In a constraint, I tried to use the matcher xslt function. But this did not seem to be supported. Is this the case?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Matcher Function

The matcher function is unsupported. I have not been able to find any mention of it in the specifications for XSLT 1.0, XSLT 2.0, XPath 1.0, or XPath2.0, and XQuery. Could you direct us to where you read about it?

Matcher

Sorry. I'm not very knowledgeable about the specs.

I had assumed that all XSLT functions could be supported in the constraint attribute. Clearly I was wrong. :)

It would be nice to have it, however.

Mark Birbeck's picture

There is no such XSLT function

I think you've missed Paul's point. :) He's saying that there is no such function in XPath or XSLT, so it would really help if you could tell us what makes you think there is. A search for "matcher xslt" in Google does return results, but the top one is this thread!

As it happens, XForms only defines support for the core XPath functions, and a few of its own extra functions--and doesn't add XSLT functions. Any functions that need to be added beyond this list would need to be extension functions. So we could add the matcher function, but we couldn't add it to XForms itself--i.e., as a function with no namespace prefix--we'd have to add it in a new namespace as an extension.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.