This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]