xsl-list
[Top] [All Lists]

Re: [xsl] casting sequences

2009-01-07 11:03:26
-----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(_at_)inf(_dot_)ed(_dot_)ac(_dot_)uk
                       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-----

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

<Prev in Thread] Current Thread [Next in Thread>