This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xsl:script: functions written in XSLT
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] xsl:script: functions written in XSLT
- From: tra at mrbean dot stibo dot dk (Thorbjoern Ravn Andersen)
- Date: Wed, 17 Jan 2001 13:38:48 +0100
- References: <1919641463.20010109113615@jenitennison.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
* 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