You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by "Wiedmann, Jochen" <jo...@softwareag.com> on 2002/01/21 10:21:38 UTC

Splitting a string into lines

Hi,

I would like to know how to perform the following
with Xalan: I have a string of multiple lines and
would like to add a "//" at the beginning of every
line. I try to achieve that with

      <xsl:text>//</xsl:text>
      <xsl:value-of select='translate(., "&#x0A;", "&#x0A;//")'/>

However, only the first // appears.

Any hints what's wrong?


Thanks,

Jochen