A call for peace.
Loose and tight coupling can happily coexist, if we have a way to define what we're talking about:
<?xml version="1.0" encoding="utf-8"?> <xs:schema targetNamespace="http://schemas.newtelligence.com/projects/xyz/customer" elementFormDefault="qualified" xmlns="http://schemas.newtelligence.com/projects/xyz/person" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:rdf ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <xs:complexType name="person" rdf:resource="http://www.daml.org/2002/06/webont/owl-ex#Person"> <xs:sequence> <xs:element name="shoesize" type="xs:string" rdf:resource="http://www.daml.org/2002/06/webont/owl-ex#shoesize"/> <xs:annotation> <xs:documentation>Mind the difference between physical and conceptual data types</xs:documentation> </xs:annotation> </xs:element> <xs:element name="age" type="xs:string" rdf:resource="http://www.daml.org/2002/06/webont/owl-ex#age"/> </xs:sequence> </xs:complexType> </xs:schema>
<?xml version="1.0" encoding="iso-8859-15" ?> <IrgendwelchesXML xmlns="urn:ClemensEigenerNamensraum"> <MeinKram> <Person rdf:resource="http://www.daml.org/2002/06/webont/owl-ex#Person"> <Schuhgröße rdf:resource="http://www.daml.org/2002/06/webont/owl-ex#shoesize">45</Schuhgröße> </Person> </MeinKram> </IrgendwelchesXML>
<?xml version="1.0" encoding="iso-8859-15" ?> <SomeArbitraryXML xmlns="urn:SamsOwnNamespace"> <People > <Person name="Joe" rdf:resource="http://www.daml.org/2002/06/webont/owl-ex#Man" /> <Person name="Jill" rdf:resource="http://www.daml.org/2002/06/webont/owl-ex#Woman"/> </People> </SomeArbitraryXML>
If it isn't yet obvious what I mean, go here
9:18:42 PM
|