|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: RE: syntax sugar for call-template
> Couldn't agree more strongly. Thinking about Uche's comments on
> run-time dynamism and introspection yesterday (I don't
> know what that
> means but it sure sounds good) another option would be
> single new XSLT function:
> >>
> >> call-template('my:func', 'one', xpath,
> >> 'two', $rtf)
> >>
Calling a template from a function within an XPath expression is not a good
idea. It's important that functions should have no side-effects, and
templates normally have the side-effect of writing to the result tree.
That's why I made saxon:function a distinct construct from xsl:template.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








