produce a newline for text output in XSLT

Discussion in 'XML' started by Matt, Nov 2, 2004.

  1. Matt

    Matt Guest

    I want to generate text output from XML using XSLT. The question is how to
    produce a newline? When I produce HTML as output, I have no problems.
    But when I attempt to produce text, all data is append together.

    please help. thanks!!
    Matt, Nov 2, 2004
    #1
    1. Advertising

  2. Matt wrote:
    > I want to generate text output from XML using XSLT. The question is how to
    > produce a newline? When I produce HTML as output, I have no problems.
    > But when I attempt to produce text, all data is append together.


    <xsl:text>
    </xsl:text>

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
    Martin Honnen, Nov 2, 2004
    #2
    1. Advertising

  3. Matt

    Joris Gillis Guest

    > I want to generate text output from XML using XSLT. The question is how to
    > produce a newline? When I produce HTML as output, I have no problems.
    > But when I attempt to produce text, all data is append together.
    >
    > please help. thanks!!
    >

    Hi,

    You could insert this whereever you need a newline to be outputted:
    <xsl:text>
    </xsl:text>


    regards,
    --
    Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
    Ceterum censeo XML omnibus esse utendum
    Joris Gillis, Nov 2, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Martin Bright

    XSLT to produce subtree of a tree

    Martin Bright, Feb 4, 2004, in forum: XML
    Replies:
    1
    Views:
    1,218
    Dimitre Novatchev [MVP]
    Feb 4, 2004
  2. SV
    Replies:
    1
    Views:
    616
    Mukul Gandhi
    Aug 16, 2005
  3. nin234ATIyahoo.com
    Replies:
    6
    Views:
    1,181
    nin234ATIyahoo.com
    Mar 16, 2005
  4. Electric Co.

    xslt console whitespace newline

    Electric Co., Aug 16, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    447
    Electric Co.
    Aug 16, 2006
  5. Replies:
    5
    Views:
    462
    Luc The Perverse
    Oct 27, 2006
Loading...

Share This Page