[xsl] get the text value of a following sibling

Subject: [xsl] get the text value of a following sibling
From: Liron <magilam@xxxxxxxxxxxxxxxx>
Date: Mon, 13 Nov 2006 15:47:07 +0200

Given the following structure:
  <a href="...">link1</a>
  just some text 1
  <a href="...">link2</a>
  just some text 2
  <a href="...">link3</a>
  just some text 3

I want to output this tree to a plain text file that looks like this:
link1:just some text1
link2:just some text2

Right now I'm doing something like this (part of my xsl):
<xsl:for-each select="/html/a">
<xsl:value-of select="text()"/>
<xsl:value-of select="following-sibling::*[2]/text()"/>

This doesn't work. It only outputs the text in the <a> tag but not the text between the <br> tags.
How should I treat that text? Isn't it considered as a node?

Thank you very much

Current Thread