[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

browsing text elements

Subject: browsing text elements
From: jeff@xxxxxxxxxxxxxxxx (Jeff Royal)
Date: Tue, 6 Apr 99 11:31:50 PDT
text elements
I'm just getting my feet wet with XML not to mention HTML,
can anyone help me with the following problem?

I'm trying to display an XML text element using an XSL stylesheet
(IE5).  The results are almost right, but not quite.
Here is the XML source:

<item>
  <text>
    This block of text needs to be displayed by the
    browser exactly as it appears here (i.e. respecting
    all line breaks).

    Is this possible?
  </text>
</item>

I've used PRE in my stylesheet for displaying this block:
   
   <pre><xsl:value-of select="text"></pre>

and the result displays:

This block of text needs to be displayed by the
    browser exactly as it appears here (i.e. respecting
    all line breaks).

    Is this possible?

Does anyone have any advice on how to display this either a) with the
first line of text aligned with the rest of the block, or b) all lines
left justified?   
               


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.