[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 3 possible approaches for representing concepts
Chiusano Joseph scripsit: > Yes - all great points (thank you to everyone!). I also think that one > disadvantage to approaches #2 and #3 (from the original e-mail - these > approaches used attributes) is that using purely W3C Schema, it is not > possible to enforce mandatory/optional if, given the value of the > attributes, the entire "set" (element/attributes/values) may be > considered mandatory in some cases, but optional in others (according to > the data requirements. So much the worse for WXS, to be sure. RNG screams through this kind of co-occurrence constraints. A nice simple example is requiring that country="US" coexist with state="xx" where xx is a valid state code, and country="CA" coexist with province="xx" where xx is a valid province code. -- Is a chair finely made tragic or comic? Is the John Cowan portrait of Mona Lisa good if I desire to see jcowan@r... it? Is the bust of Sir Philip Crampton lyrical, www.ccil.org/~cowan epical or dramatic? If a man hacking in fury www.reutershealth.com at a block of wood make there an image of a cow, is that image a work of art? If not, why not? --Stephen Dedalus
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|