Something like this:
<xsl:for-each select="tokenize(unparsed-text($in, 'iso-8859-1'), '\r?\n')">
<row>
<xsl:for-each select="string-to-codepoints(.)">
<cell>
<xsl:value-of select="codepoints-to-string(.)"/>
</
</
</
</
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Beatriz Langiano [mailto:bialangiano(_at_)yahoo(_dot_)com(_dot_)br]
Sent: 20 January 2005 13:41
To: XSL List
Subject: [xsl] Arrays
Hi all,
I'd like my xsl read a txt file, like this:
------file.txt---------------
10101010101010101111010101010
10101011100001010101010101010
00011010101010101010101011011
-----------------------------
So, I used the unparsed-text() function, and my xml
was like this:
<matrix>
10101010101010101111010101010
11101011100001010101010101010
00011010101010101010101011011
</matrix>
Now I need to put each binary number (0 and 1) of
matrix in a structured like this:
<matrix>
<row>
<cell>1</cell>
<cell>0</cell>
...
</row>
<row>
<cell>1</cell>
<cell>1</cell>
...
</row>
...
<matrix>
Is it possible I read each number?
How could I do this in XSLT?
Thanks, Beatriz
=====
Beatriz Langiano
Mestrado em Informática
Universidade Federal do Paraná - Brasil
__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger
http://br.download.yahoo.com/messenger/
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--