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

RE: Generating HTML tags in XSL script

Subject: RE: Generating HTML tags in XSL script
From: "Sargeant, Richard (GEIS)" <Richard.Sargeant@xxxxxxxxxxx>
Date: Sat, 30 Jan 1999 14:27:23 +0100
html tag scr
Hi Vik,

>  I have an XML file which looks something like this:
>  <Foo>
>  This is line 1
>  This is line 2
>  </Foo>
>  
>  I want to convert it to HTML so that at each carriage return 
>  in the XML node
>  text converts to a break tag.  Output HTML should look like:
>  <td>This is line 1 <br/> This  is line 2 </td>

   One possible solution is to split <Foo> into 2 components, where the 2nd
part is optional and can occur many times. for example...

     <Foo>
     This is line 1
     </Foo>
     <FooContinued>
     This is line 2
     </FooContinued>
     <FooContinued>
     This is line n
     </FooContinued>

   This way any <Foo> can be printed normally, and any <FooContinued> can be
printed with a <BR/> in front.

		regards
		   Richard Sargeant


 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.