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

Re: Whitespace

  • From: "Rick Jelliffe" <ricko@a...>
  • To: <xml-dev@i...>
  • Date: Mon, 25 Aug 1997 00:45:48 +1000

hard return in xml
 
From: Sean Mc Grath <digitome@i...>
 
> If you need whitespace to be something other than whitespace- i.e. a
> newline to be a real newline to be passed on to the application, use an
> empty element type to represent it.

> <foo>
>   <pcdata>I am data 1</pcdata><newline/>
>   <pcdata>I am data 2</pcdata>
> </foo>

Yes and no.  <newline/> is not needed in XML.  ISO10646 includes 
characters which  unambigously represent line-breaks and paragraph breaks: 
U+2028 and U+2029.

<foo>I am data 1&#x2028;I am data 2</foo>

Any conventions for handling whitespace in XML do not need to address
"hard returns".  If someone wants a hard return, they can mark it up
explicitly just using what XML already provides (by adopting ISO 10646).

Similarly, XML-DEV does not need to make up any conventions to handle 
no-break spaces (&nbsp; or &#x00A0;) or "hard spaces" (ideographic space 
does not collapse: &#x3000;).

Lets not make this more complicated than it is!



Rick Jelliffe

P.S. In the example quoted, I think probably <RCDATA> is a closer
description of the element rather than <PCDATA>.


xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@i... the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@i...)


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.