From: Julie A. <ja...@yo...> - 2008-01-22 09:01:36
|
Simeon, Thanks for pointing this out, my apologies. I have corrected the profile (now v1.2). Best regards, Julie Simeon Warner wrote: > My colleague Thorsten Schwander noticed that the namespace declarations in > the response examples at: > > http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_APP_Profile_1.1#Response > > are not correct. In all cases the namespace prefix 'atom' is declared > but not used, > and all the Atom elements are in the default namespace which is not > defined. In > the case of the first example ("*Example 1:* level 0 response"): > > <?xml version="1.0"?> > <entry xmlns:atom="http://www.w3.org/2005/Atom" > xmlns:sword="http://purl.org/net/sword/"> > <title>My Deposit</title> > <id>deposit-id</id> > <updated>2007-05-14T14:27:08Z</updated> > <author><name>lcarr</name></author> > <summary type="text" /> > <content type="application/zip" > src="http://www.myrepository.ac.uk/my_deposit.zip"/> > <link rel="edit-media" > href="http://www.myrepository.ac.uk/lcarr/workflow/my_deposit" /> > <link rel="edit" > href="http://www.myrepository.ac.uk/lcarr/workflow/my_deposit.atom" /> > <sword:treatment>Treatment description</sword:treatment> > </entry> > > this case be made valid by either changing adding atom: to prefix all > the Atom elements > or making the atom namespace the default. The latter was presumably the > intent. The > following validates at http://validator.w3.org/feed/ (I also put in a > plausible <id> and > non-empty <summary>): > > <?xml version="1.0"?> > <entry xmlns="http://www.w3.org/2005/Atom" > xmlns:sword="http://purl.org/net/sword/"> > <title>My Deposit</title> > <id>info:something:1</id> > <updated>2007-05-14T14:27:08Z</updated> > <author><name>lcarr</name></author> > <summary type="text">A summary</summary> > <content type="application/zip" > src="http://www.myrepository.ac.uk/my_deposit.zip"/> > <link rel="edit-media" > href="http://www.myrepository.ac.uk/lcarr/workflow/my_deposit" /> > <link rel="edit" > > href="http://www.myrepository.ac.uk/lcarr/workflow/my_deposit.atom" /> > <sword:treatment>Treatment description</sword:treatment> > </entry> > > Cheers, > Simeon > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech > -- Julie Allinson <ja...@yo...> Digital Library Manager University Library & Archives, J.B. Morrell Library University of York, Heslington, York, YO10 5DD, UK tel: ++44 (0) 1904 434083 skype: j.allinson web: http://www.york.ac.uk/services/library/elibrary/digitallibrary.htm -- |