Subject: Re: [xsl] xml to html paragraphing From: "Java XML" <jaxlive@xxxxxxxxxxx> Date: Thu, 29 Mar 2001 11:45:43 -0500 |
From: Peter Flynn <peter@xxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] xml to html paragraphing Date: Thu, 29 Mar 2001 17:24:26 +0100
>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
>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>"
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xml to html paragraphing, Peter Flynn | Thread | Re: [xsl] xml to html paragraphing, David Carlisle |
RE: [xsl] value of an element, Java XML | Date | Re: [xsl] Tags to prevent from XSLT, David Carlisle |
Month |