[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: RE: syntax sugar for call-template

Subject: Re: RE: syntax sugar for call-template
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sun, 18 Feb 2001 15:47:21 GMT
element name for sugar
> I've never used qnames as template names.
neither have I, however I suppose the idea is taht people can distribute
"template libraries" for people to include and name clahses are avoided
if namespaces are used. If writing everything in one sheet Id doesn't
really help to colonise all names.

>  "func.clarkevans.com"
> The chance of a name collision here is, well, infinitesmal.
The same could be said of element names in general, and thus XML
Namespaces were not needed. Far be it from me to spread such heretical
gossip though:-)


> Your other limitation, is that you can't call the code
> through XPath.  This is not a problem that I need to be 
> solved.

Ah, I think this shows a different view on the problem then.
I see this as the major limitation of the suggestion (The qname
objection only occurred to me as I was typing the email)
I'd want extension functions written in XSLT to have the same
functionality as extension functions written in external languages.
If they can't to that they shouldn't be using the xx:local() XPath
extension function syntax. And this means taking arguments that are any
XPath type and returning a value that is any XPath type.

> I can call the template, return the results, 
> stuff the result fragment into a variable and


Not easy to get the right context in something like

/a/b/c[xx:fun(.)/z='this']

then its not easy to pre-compute all the function calls and store the
results in a variable.

David
 

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.