xsl-list
[Top] [All Lists]

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

2012-07-17 10:34:59
On 17 July 2012 16:32, Robby Pelssers <Robby(_dot_)Pelssers(_at_)nxp(_dot_)com> 
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--