Project

Profile

Help

inline functions

Added by Anonymous over 14 years ago

Legacy ID: #7982263 Legacy Poster: Vladimir Nesterovsky (vnesterovsky)

Hello Mr. Kay! Is there any chance to see inline functions in Saxon HE in xslt any soon (I can see them in xpath 2.1)? P.S. I'd like to implement RB Tree API, which would require (left, right, color, data) closures for each node.


Replies (4)

Please register to reply

RE: inline functions - Added by Anonymous over 14 years ago

Legacy ID: #7982440 Legacy Poster: Michael Kay (mhkay)

The current thinking of the XSL WG is not to provide inline functions at the XSLT level. However, I'm sure this is an area where a well-reasoned argument could be persuasive. It's probably best to wait until we get a working draft of XSLT 2.1 into the public domain, so that you have something to comment on.

RE: inline functions - Added by Anonymous over 14 years ago

Legacy ID: #7982508 Legacy Poster: Vladimir Nesterovsky (vnesterovsky)

Am I right that inline functions will be available into xslt 2.1 indirectly, as part of xpath 2.1? I just wanted to play with them after that I've found FunctionItem class.

RE: inline functions - Added by Anonymous over 14 years ago

Legacy ID: #7982519 Legacy Poster: Michael Kay (mhkay)

Yes, the XPath syntax for inline functions will be available in XSLT (it's not yet enabled in Saxon, but that's purely a question of working out how to switch it on.) But currently there's no plan for an inline xsl:function syntax.

RE: inline functions - Added by Anonymous about 14 years ago

Legacy ID: #8104861 Legacy Poster: Vladimir Nesterovsky (vnesterovsky)

The current thinking of the XSL WG is not to provide inline functions at the XSLT level. > However, I'm sure this is an area where a well-reasoned argument could be persuasive. How about such reasoning: xslt already went into trouble of having xpath alternatives for many instructions, so for the sake of consistency let define inline function on the xslt level.

    (1-4/4)

    Please register to reply