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

Re: Mixed-content use-cases and questions

  • From: Marcus Carr <mrc@a...>
  • To: xml-dev@i...
  • Date: Wed, 12 Jan 2000 12:26:13 +1100

Re: Mixed-content use-cases and questions

"Clark C. Evans" wrote:

> Most of the XML DTD's that I've seen
> are strictly hierarchical.  Questions:
>
> 1.  Are there any use cases besides HTML
>     for mixed content?

Unquestionably.

> 2.  For modular XHTML, could a <xhtml:plain>
>     element be included that eliminates
>     the need for mixed-content?
>
>     <p>hello<b>world</b></p>
>
>            becomes
>
>     <p><plain>hello</plain>
>        <b><plain>world</plain></b>
>     </p>

... and:

    <p>hello <i>sweet <b>world</b></i>.</p>

becomes:

   <p><plain>hello</plain><i><plain>sweet</plain>
   <b><plain>world</plain></b></i><plain>.</plain></p>

I don't like you chances of selling that to anyone. Also, we have both conveniently
omitted the spaces between words - if inserted, a slightly different example of:

   <p>hello <i>sweet</i> <b>world</b>.</p>

... might become:

   <p><plain>hello </plain><i><plain>sweet</plain></i>
   <plain> </plain><b><plain>world</plain></b><plain>.</plain></p>

Just as the period isn't supposed to be emphasised, one could argue that the spaces don't
belong to the elements either. If the element was a partnumber, it would probably be
incorrect to insert an additional space - that means that you have to deal with them
separately, not just bundle them into a convenient element. I don't see much future for
your proposed approach.


--
Regards,

Marcus Carr                      email:  mrc@a...
___________________________________________________________________
Allette Systems (Australia)      www:    http://www.allette.com.au
___________________________________________________________________
"Everything should be made as simple as possible, but not simpler."
       - Einstein



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Please note: New list subscriptions now closed in preparation for transfer to OASIS.



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.