This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: line feed problem
- From: Chuck White <chuckwh at pacbell dot net>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 25 Jan 2002 09:21:52 -0800
- Subject: Re: [xsl] line feed problem
- References: <003301c1a5b2$60cf88e0$02c2c2c2@devstation1>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> SAMPLE OF XML ELEMENT
>
> <Dept_Hours>Monday - Thursday 8:00am to 4:00pm
> Friday 9:00am to 12:00pm
> Tuesday Evening 6:30pm to 8:30pm
> Call for exact times for accountant</Dept_Hours>
>
Hi Gene:
If this is your XML, I suggest visiting the following site for the basics on
why this XML isn't well-executed:
http://skew.org/xml/tutorial/
It provides an excellent overview on the core nature of XML. Then, change
your XML into a better structure by either creating more elements and/or
attributes to break that data up into more usable chunks.
If it isn't yours, look at the XPath spec to see how to work with
substrings, and you can create some code to output the line breaks using a
combination of substrings to catch the areas you need to break and a line
feed character reference ( decimal, 
 hex) .
Chuck White
The Tumeric Partnership
http://www.tumeric.net
chuck@tumeric.net
________________________________________
Author, Mastering XML, Premium Edition
Sybex Books, May, 2001
http://www.javertising.com
----- Original Message -----
From: "Gene LaCava" <e.f.lacava@verizon.net>
To: <xsl-list@lists.mulberrytech.com>
Sent: Friday, January 25, 2002 7:10 AM
Subject: [xsl] line feed problem
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list