[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xsl:function vs. xsl:template
Hi all, how does the experienced XSLT 2.0 programmer decide on whether to use a xsl:function or a (named) xsl:template? Are any performance issues involved (the processor I'm using is Saxon)? When trying to comprehend a stylesheet, I find it easier if the control-flow is managed by explicit function calls. Using functions imposes the additional "burden" of passing the node to work on, when compared to xsl:call-template. However, passing the node brings the benefit of making the "context" explicit. Being able to use a function in XPath expression also offers a less verbose invocation of functionality. What are other benefits/shortcomings of either side? I haven't found any documentation on this issue but would appreciate any hints as to where to find some. cheers -- Felix
|
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
|