Hi, XML does not allow multiple occurences of the same attribute in an element (thats the reason your second examples does not work...) So <rdf:Description rdf:about="http://www.agfa.com/a" a:b="c" a:b="d"/> can not work, because a:b ocures twice (already XML-parser delete one attribute). The serizalization is wrong, it should use a bag or separate elements. CU, Stefan At 12:07 PM 12/23/99 +0100, JOS.DEROO.JD@belgium.agfa.com wrote: >Sergey, > >We start with the following (hypothetical) statements: ><?xml version="1.0"?> ><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > xmlns:r="http://www.agfa.com/x#"> ><rdf:Description about="http://www.agfa.com/a" r:b="c"/> ><rdf:Description about="http://www.agfa.com/a" r:b="d"/> ></rdf:RDF> > >After running ParseAndSerialize we get : ><?xml version='1.0' encoding='ISO-8859-1'?> ><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > xmlns:a="http://www.agfa.com/x#"> ><rdf:Description rdf:about="http://www.agfa.com/a" > a:b="c" > a:b="d"/> ></rdf:RDF> > >Running ParseAndSerialize on this model we get: ><?xml version='1.0' encoding='ISO-8859-1'?> ><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > xmlns:a="http://www.agfa.com/x#"> ><rdf:Description rdf:about="http://www.agfa.com/a" > a:b="c"/> ></rdf:RDF> > >So we loose a statement and get a different model. > >On the other hand, the following example is OK: ><?xml version='1.0' encoding='ISO-8859-1'?> ><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > xmlns:a="http://www.agfa.com/x#"> ><rdf:Description rdf:about="http://www.agfa.com/a"> > <a:b rdf:resource="http://c"/> > <a:b rdf:resource="http://d"/> ></rdf:Description> ></rdf:RDF> > >What can we think about that? > >With kind regards and best wishes, >Jos De Roo --- AgfaReceived on Thursday, 23 December 1999 14:05:54 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:19:38 GMT