MrD at KookerellaLtd
MrD at KookerellaLtd

Reputation: 2807

User defined XPath operators in XSLT

I have an function that would look much nicer as an operator.

We can use append as an example, lets say I want to use +

so

$foo + $bar

rather than

array:append($foo,$bar)

There is nothing obvious that I could find. I strongly suspect this isn't possible.

Upvotes: 1

Views: 50

Answers (1)

Michael Kay
Michael Kay

Reputation: 163595

There is no such capability in the 3.0/3.1 specs. You could add it as a 4.0 request at https://github.com/qt4cg/qtspecs, but you'll have to put forward a strong argument. My suspicion is that it's much harder to do in a weakly typed language, especially one that has a lot of implicit type coercions.

Upvotes: 1

Related Questions