[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] how to workaround restriction of overloading functions


Subject: RE: [xsl] how to workaround restriction of overloading functions
From: Robby Pelssers <Robby.Pelssers@xxxxxxx>
Date: Tue, 17 Jul 2012 17:41:02 +0200

;-)   simplicity rocks !!

Thx for the help again

Robby

-----Original Message-----
From: Andrew Welch [mailto:andrew.j.welch@xxxxxxxxx]
Sent: Tuesday, July 17, 2012 5:35 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] how to workaround restriction of overloading functions

On 17 July 2012 16:32, Robby Pelssers <Robby.Pelssers@xxxxxxx> wrote:
> Damn...
>
> I was already thinking along those lines but I wasn't sure if such approach
would work.
>
>
> So let's assume I needed an uber-function that would return a sequence of
URI's, would sth  like this work?
>
> I want a list of all URI's stored in a variable uniqueURIs.  Since I can't
use mode in a select statement like
> <xsl:variable name="uniqueURIs" select="/maximo:*" mode="getURI"/>
>
> I will probably need to call a function?
> <xsl:variable name="uniqueURIs" select="znapz:getUniqueURIs(/maximo:*)"/>

or just apply-templates in the variable:

<xsl:variable name="uniqueURIs" as="xs:anyURI+">
  <xsl:apply-templates select="/maximo:*" mode="getURI"/>
</



--
Andrew Welch
http://andrewjwelch.com


Current Thread