Subject: Re: [xsl] casting sequences From: ht@xxxxxxxxxxxx (Henry S. Thompson) Date: Wed, 07 Jan 2009 16:02:53 +0000 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Carlisle writes: > Well, I'd have thought _you_ would have schema validated your input:-) :-) In principle, yes. In practice, I haven't spent the necessary money. . . > If you do want to tokenize and cast, just apply the cast to the sequence > > <xsl:variable name="ds" select="for $d in tokenize(@day,'\s+') return > xs:dayTimeDuration($d)"/> As usual, obvious once you see it -- thanks! ht - -- Henry S. Thompson, School of Informatics, University of Edinburgh Half-time member of W3C Team 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 651-1426, e-mail: ht@xxxxxxxxxxxx URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFJZNItkjnJixAXWBoRAtfuAJ9xb0q7NaUdz0qrp7kbdZI6ro45RQCeJfNx crawTT0cW6cImAAETd7WSEQ= =tgRb -----END PGP SIGNATURE-----
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] casting sequences, David Carlisle | Thread | Re: [xsl] casting sequences, Andrew Welch |
Re: [xsl] casting sequences, David Carlisle | Date | Re: [xsl] casting sequences, Andrew Welch |
Month |