Re: [xsl] Newbie: Extracting and evaluating partial values from elements

Subject: Re: [xsl] Newbie: Extracting and evaluating partial values from elements
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 22 Oct 2007 17:47:25 +0100
On 22/10/2007, David Carlisle <davidc@xxxxxxxxx> wrote:
>
> > I'm using Saxon 6.5.5,
>
> it would be easier in saxon 8....

hmm only this comes to mind:

<xsl:variable name="parts" select="for $x in tokenize(., ':') return
xs:integer($x)" as="xs:integer+"/>
<td colspan="{$parts[1] - ($parts[2], 0)[1]}"/>

What would you've done?

(I already consider the ($parts[2], 0)[1] a bit of a DC special :)

-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread