If you do want to tokenize and cast, just apply the cast to teh sequence
<xsl:variable name="ds" select="for $d in tokenize(@day,'\s+') return
xs:dayTimeDuration($d)"/>
(tokenize(//topics/@days would generate an error if it picked up two
attributes)
for $d in //topics/@days/tokenize(....) return ...
is a more defensive way of writing it, but probably isn't what's wanted...
--
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>
--~--