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: xsl:script: functions written in XSLT


* Jeni Tennison <mail@jenitennison.com> [Jan 09. 2001 12:48]:

> One big advantage of this would be that it would diminish the current
> extremely verbose syntax for calling named templates.  Rather than
> having to do:
> 
>   <xsl:variable name="intersection">
>     <xsl:call-template name="intersection">
>       <xsl:with-param name="set1" select="$set1" />
>       <xsl:with-param name="set2" select="$set2" />
>     </xsl:call-template>
>   </xsl:variable>
>   <xsl:for-each select="$intersection">
>     ...
>   </xsl:for-each>
> 
> I could do:
> 
>   <xsl:for-each select="set:intersection($set1, $set2)">
>     ...
>   </xsl:for-each>

So what you are effectively suggesting is a re-merge of the XPath and
XSLT languages?

I think it is a good idea, if the language binding is well specified,
but left optional to the implementor.

-- 
  Thorbjørn Ravn Andersen                   "...sound of... Tubular Bells!"
  http://bigfoot.com/~thunderbear

 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]