Simple XML to HTML XSLT question

Sebastian Tennant <[email protected]>
Newsgroups gmane.text.xml.general
Message-ID <[email protected]>
Hi all,

Why doesn't this work?

Code snippet from XML file:

  <page>
    <leftCol><item>Hello</item></leftCol>
    <leftCol><item>Goodbye</item></leftCol>
  </page>

Code snippets from XSL file:

  <tr>
    <td align="right">
    <xsl:apply-templates select="/page/leftCol/*" />
    </td>
  </tr>

  [...]

  <xsl:template match="leftCol">
    <xsl:value-of select="item" /><br />
  </xsl:template>


I want to create a table data element with 'hello' and 'goodbye' on
separate lines, like this:

   Hello
 Goodbye

... instead the table data element is displayed like this:

  HelloGoodbye

... so for some reason the break tag is not getting through, or at least
Mozilla Firefox refuses to display it this way.

Any tips for an XML/XSL newbie anyone?

TIA

sdt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.