comp.text.xml
[Top] [All Lists]

Re: Tags v.s. Attributes

Subject: Re: Tags v.s. Attributes
From: David Carlisle
Date: Sat, 26 Jul 2008 23:48:33 +0100
Newsgroups: comp.text.xml


Stefan Ram wrote:
Peter Flynn <peter.nosp@xxxxxxxxxxxxx> writes:
Again, not true. <rose owner="Jack Jill Stefan"/> is the normal solution
to multiple parallel values, where owner is declared as IDREFS or ENTITIES.

  Thank you, I was not aware of IDREFS or ENTITIES yet.
  So, there is limited support for parallel values in XML.

  One might say for »parallel /references/« (to ids or entities).
  It seems as if it can not be used when the values are literals
  (not references) such as numerals (numbers), for example.


That though is a restriction of DTD rather than of XML itself. Other XML validation languages such as XSD or Relax NG Schema, or schematron for exampes can all easily be used to constrain an attribute to be (for example) a white space separated list of integer values.

David

--
http://dpcarlisle.blogspot.com

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy