Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Mixed content in data-binding (Was: Re: [xml-dev] Interesting pair of comments (was: ...))

From: "Pete Cordell" <petexmldev@--------------.--->
To: "Eric van der Vlist" <vdv@--------.--->,"XML-dev" <xml-dev@-----.---.--->
Date: 7/15/2005 7:26:00 AM
Original Message From: "Eric van der Vlist"

> On jeu, 2005-07-14 at 11:54 -0400, Elliotte Harold wrote:
>
>> regardless, mixed content is not as uncommon or unexpected as many
>> people think. It is not an accident. It is not bad form. It is not
>> something to be avoided. It is the very natural way to express many
>> extremely common constructs when modeling information, including
>> so-called data-oriented applications (as if any information content were
>> not data).
>
> Well said!
>
> Unfortunately, most people tend to exclude any mixed content from
> data-oriented applications ...

How do you think a data binding app should handle mixed content?  We lump a 
complex types mixed content into a string and stop there, which I don't 
think is ideal (although it is a common approach).  Another approach could 
be to have strings in your language binding classes (in our case C++) 
interleaved with the data elements that would store the CDATA parts.  Would 
this be better?  Is there a need for both?

The example that Elliotte gave earlier (<p>This is <strong>very</strong> 
important</p>) could possibly have been handled with an <xs:any 
namespace='xhtml'> construct.  Do you have any other examples of mixed use 
in data-oriented applications that would not be treated as xhtml?

Thanks for your insights.

Pete.
--
=============================================
Pete Cordell
Tech-Know-Ware Ltd
-----------------------------------------------------------------
                         for XML to C++ data binding visit
                         http://www.tech-know-ware.com/lmx
                         (or http://www.xml2cpp.com)
=============================================


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent