Subject: Re: [xsl] RE: syntax sugar for call-template From: David Carlisle <davidc@xxxxxxxxx> Date: Sun, 18 Feb 2001 15:47:21 GMT |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] RE: syntax sugar for call, Clark C. Evans | Thread | [xsl] xsl:script and side-effects, Joe English |
Re: [xsl] XSLT 1.1 comments -Exampl, David Carlisle | Date | Re: [xsl] XSLT 1.1 comments -Exampl, David Carlisle |
Month |