xsl-list
[Top] [All Lists]

Convert paramter to a sequence

2006-02-16 12:27:17
(following on from todays sudoku task) how do you go about converting
a parameter into a sequence of integers?

So:

<xsl:variable name="board" select="('1, 2, 3')" as="xs:integer+"/>

becomes:

<xsl:param name="board" .... as="xs:integer+"/>

But this fails as the passed in value is typed as a String.  How do
you get from the String "1, 2, 3" to the typed sequence (1, 2, 3) ?

thanks
andrew

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