xsl-list
[Top] [All Lists]

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

2007-10-22 09:48:02
On 22/10/2007, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> 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/

--~------------------------------------------------------------------
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>
--~--