Talk:XML: Difference between revisions

662 bytes added ,  1 July 2003
get it rolling
(Thiking about XML design priciples I come to the conclusion that WE NEED XML-GURUS!!!)
 
(get it rolling)
Line 12: Line 12:
  <product_group id=??><food_group id=??>...</food_group></product_group>
  <product_group id=??><food_group id=??>...</food_group></product_group>
  <product_group id=??><clothing_group id=??>...</clothing_group></product_group>
  <product_group id=??><clothing_group id=??>...</clothing_group></product_group>
: start simple. define a relationship between a set of objects with a group markup tag, e.g.: <group name="bread"> <fu/> <bar/> </group> establishes a named relationship betwen <fu/> and <bar/>. let the group tag have anything inside it, including text. treat it as markup.


Using "ANY"-constraint (can contain any element... or is it even #PCDATA??) can be kind of hazardous for software.. but maybe we just add these specific groups so that each element can contain just one of the available subgroups for this subgroup.
Using "ANY"-constraint (can contain any element... or is it even #PCDATA??) can be kind of hazardous for software.. but maybe we just add these specific groups so that each element can contain just one of the available subgroups for this subgroup.
Line 18: Line 20:


I don't know... We need XML-gurus
I don't know... We need XML-gurus
: do you want to markup text? or do you want to define structure? or both?
: DTD syntax is troublesome and difficult to master. the newer xml schema is itself xml, and is capable of a whole lot more... it could make expression of your product group easier.
: let's start it off with a small collection of schemas, say { resource.xsd, person.xsd, a product.xsd, service.xsd }.
Anonymous user