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

Using <PRE> to keep original spacing without tag spaces

Subject: Using <PRE> to keep original spacing without tag spaces
From: klal@xxxxxxxxxx
Date: Mon, 26 Jul 1999 12:54:01 -0600
xml tag spaces

Hi,
     I am converting text news articles to the XMLNews DTD.  I start out with
original text articles with paragraph spacing.  I would like to preserve this
spacing.  I have many large tags that I have added to the original text.  The
spacing preservation preserves the spacing added by the tags.   Making the whole
article almost unreadable.  The spacing preservation attribs are shown below.

i.e.  xml file
this statement<sometag attrib1="bunch of stuff" attrib2= "more
stuff"><somechildtag  moreattribs="values"> has a child tag
</somechildtag></sometag>

ends up looking like
this statement
 has a child tag

What can I do remove the spacing caused by the tags only?

Can I convert original text returns to  <p> tags?

After reading this list I made a number of changes proposed by Orit.
1. <xml:stylesheet > should have the xml:space= "preserve" attribute in my xml
file
2. <body> the body of my articles should have the xsl;space = "preserve"
attribute in my xml file.
3. My <html> tag in my stylesheet should have the xmlns = "http://www.w3.org"
attribute.
4. My <body> tag should also xml:space = "preserve" attribute in the stylesheet.
5. The =text()"> should have <PRE> and </PRE> tags around the base xsl:valueof
statement.

Cheers,
Kieran




 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.