xml style questions

Kay Michael Michael.Kay at icl.com
Tue Mar 2 13:41:05 GMT 1999

> any words of wisdom regarding:
> 1) having an extra collection layer in the xml tree, 
> 2) having PCDATA vs. having a distinct "comment" or 
> "description" element child:

Firstly, the extra markup can be used to impose extra validity constraints,
which means you application has to do less checking.

Secondly, the extra markup can make XSL stylesheets a lot easier to write.
(In fact, without it they can be impossible...)

So if you're auto-generating the XML and if space isn't at a premium I would
include the extra tags. If it's manually edited it's a different story...

Mike Kay

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)

More information about the Xml-dev mailing list