[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|