Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] What is declarative XML? (And what's not)

From: Rick Jelliffe <rjelliffe@-------.---.-->
To: "'xml-dev@-----.---.---'" <-------@-----.---.--->
Date: 6/1/2009 6:46:00 AM
Costello, Roger L. wrote:
> I assert that documents that have no inherent processing semantics have substantial benefits in terms of reusing them and mining them and mashing them up.
>   
This is the old SGML idea of taking out *all* processing semantics and 
then having another layer to add them back again. Even if you didn't 
need to.

In the particular case of rich text, this approach has just about lost. 
Consider five ways of marking up a warning section:

 <warning>...

 <warning render="section">...

  <div class="warning">...
 
  <section> ...

  <br />...

It is the middle one that has won, in effect. 

I think the principle is that where there is a mass technology or 
well-accepted public vocabulary which represents the base or default 
semantic (i.e. the semantic which any reasonable use would establish) it 
is better to subclass this. There is also a simplicity principle 
involved too, that you don't strip out what you must immediately add 
again, I think. What is easy to process is an important consideration 
that swings both ways: if the data is textual then subclassing HTML may 
be the simplest to process, but if the data is very rich and structured, 
then marking it up as HTML might increase the difficulty of processing 
it. (Insert GRDDL story here.)

Let look at the case of definition lists. You could reformat them as two 
column tables. But it does no harm to mark them up as lists.

One of the benefits of pure descriptive markup is that, if it is 
complete enough, it prevents the user from having different ways to do 
the same thing: the constraint "Does every address have a postcode?" can 
be checked more easily in pure descriptive markup.  (Though this is 
because grammar-based schema languages are terrible at checking 
"architectural" structures such as those marked up using html:*/@class.)

Cheers
Rick Jelliffe

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



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