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

Container Tags and Design Principles (WAS RE: XML/RDF)

  • To: 'Deborah Aleyne Lapeyre' <dalapeyre@m...>, xml-dev@l...
  • Subject: Container Tags and Design Principles (WAS RE: XML/RDF)
  • From: "Bullard, Claude L (Len)" <clbullar@i...>
  • Date: Tue, 5 Nov 2002 09:00:10 -0600

container tags
Ok, and no disagreement in principle.  I've used them 
myself and given a document that literally 
has switches in its native structures, found 
them unavoidable.  The topic this impinges 
on is one of DTD/Schema design where the 
design is not decoupled from the processes 
intended to handle instances.  Is it really 
a good idea to design a document type with 
extra tags whose main job is to make the 
XSLT simpler to build?

*Usually* I've tried to avoid them because 
they carry no content.  They act as process 
switches.  In some cases, one can eliminate 
them with multiple DTD/Schemas and proper 
application of namespaces.  Sometimes, 
one discovers the nesting isn't necessary 
or that the owner of the document is willing 
to lose them to simplify (the case I remember 
best is the 38784 tagging).

In X3D/VRML, quite a lot of effort was expended 
over the issues of container tags that existed 
to satisfy some implementers' requirements for 
a one pass parse.  Eventually, the containers 
were taken out.

Mixed content is a different can of worms. 
It is a force of nature.  One can wall around 
it, but it introduces more artificiality. Mixed 
content is a natural part of human documents. 
It just makes it harder to process.

len

From: Deborah Aleyne Lapeyre [mailto:dalapeyre@m...]

Len said:

>Items like not using mixed content
>or container elements are *usually* decent advice
>in most schema designs.

In some schema languages yes, in some no. In specific,
containers and mixed content are the real strength of XML in
the DTD world. When writing XSLT or quite a few "processing"
systems", containers are a godsend.

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.