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

RE: XML apparently cannot be used for general text mar

Subject: RE: XML apparently cannot be used for general text markup: whitespace gripe
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
Date: Tue, 19 Mar 2002 13:45:28 -0000
RE:  XML apparently cannot be used for general text mar
>  <?xml version="1.0"?>
>  <book>
>     <par>
>      Is his name really <first>John</first>      <last>Doe</last>?
>    </par>
>  </book>
>
> Either you will end up with:
>    "Is his name really JohnDoe?"
>  which is wrong, or:
>    "Is his name really John Doe ?"
>  which is also wrong.

I recently had a discussion about mixed-content nodes and whether they were
acceptable or something to be avoided.  There were several points for and
against, with no real 'winning' conclusion.  This point highlights another
of the problems with mixed content nodes, but its difficult to see how this
inline markup can be replaced.  I have always believed mixed content should
be avoided where possible, but I have a few questions:

1- Is there a concensus on this issue?  Is it really a problem?

2- From an xsl processing perspective, is text node processing (such as
text()[1]) equivalent to normal element processing?

3- Should this problem be dealt with at xml level, or should it not matter
to the xsl developer?


Tia

cheers
andrew


 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.