Subject: RE: [xsl] Convert paramter to a sequence From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 16 Feb 2006 23:06:06 -0000 |
> 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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Convert paramter to a seq, David Carlisle | Thread | Re: [xsl] Convert paramter to a seq, David Carlisle |
Re: [xsl] Convert paramter to a seq, David Carlisle | Date | Re: [xsl] Convert paramter to a seq, David Carlisle |
Month |