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

Re: xml to html paragraphing

Subject: Re: xml to html paragraphing
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: Thu, 29 Mar 2001 17:24:26 +0100
space html
At Thursday, 29 March 2001, you wrote:

>Hi Folks,
>            Is there a way to preserve the paragraph structure using 
xslt in 
>the resulting output html document because i have a well formed 
xml document 
>with a text field 

XML doesn't have "fields". Do you mean an element type named "text"?

>and it is divided into paragraphs but when i generate a 
>html out of it i cannot maintain the paragraph structure in the 
resulting 
>html so is there a way to preserve the paragraph structure even in the 
>resulting structure i used

If you're talking about preserving embedded newlines and tabs, no.
That is not paragraph structure as seen by XML. As ?David said
earlier, if your text guarantees to use only (for example) CR LF TAB
for its "paragraphs", then you may be able to rig up some kind of
interpretation but it won't be XML.

If you want XML to handle what you are calling "paragraphs" then
they MUST be marked up properly. If you want to convert text with
ASCII-indent paragraphs, use a processor like Omnimark, which
has a pattern-matching language specifically for doing this kind of
thing, eg to intrude an end-tag followed by a new start-tag:

   find "%n%n" white-space+
      output "</para>%n<para>"

Then process the resulting file with XSL.

///Peter








 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.