xsl-list
[Top] [All Lists]

RE: Convert paramter to a sequence

2006-02-16 16:06:06

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) ?


You use tokenize($board, ',\s*').

But why make it a string in the first place, why not write it as 

  select="1, 2, 3"

Michael Kay
http://www.saxonica.com/



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