From: Simeon W. <si...@cs...> - 2008-01-21 20:49:33
|
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 |