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

Subject: Re: [xsl] Newbie: Extracting and evaluating partial values from elements
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 22 Oct 2007 21:46:28 +0100
> What would you've done?

well.... I don't need to guess what I would have done, as I can say what
i did do, which was add the line about "easier in xslt 2" as a basic
principle for this general category of problem, before looking at the
coding details, then coded a solution in xslt 1 (which was what was
asked for) which is in this case, probably the same as I'd do in xslt 2...

the only thing easier  in 2 would be that you could go


<xsl:attribute name="colspan"
  select="1 + substring-before(.,':') - substring-after(.,':')"/>


instead of 

<xsl:attribute name="colspan">
<xsl:value-of select="1 + substring-before(.,':') - substring-after(.,':')"/>
</xsl:attribute>



which isn't really easier at all, just shorter:-)

David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Current Thread