Subject: Re: [xsl] how to workaround restriction of overloading functions From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Tue, 17 Jul 2012 16:34:48 +0100 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] how to workaround restric, Robby Pelssers | Thread | RE: [xsl] how to workaround restric, Robby Pelssers |
RE: [xsl] how to workaround restric, Robby Pelssers | Date | [xsl] [ANN] Lightning Visualization, Tommie Usdin |
Month |