This project is read-only.

Lang and base URI

Nov 4, 2008 at 2:48 PM
There are elements that are common on the XMLBase object - Lang and Base
So should these be stored on all atom entities on the database, or just on some of them, or none?
Nov 6, 2008 at 4:41 PM
Edited Nov 6, 2008 at 4:44 PM
according to the specs, I believe these are "common" to most elements.
atomCommonAttributes =
attribute xml:base { atomUri }?,
attribute xml:lang { atomLanguageTag }?,
However, I think we could get away with storing the Lang information only on the entry elements (non conforming).  As for the base, this is something that I've seen used on the entry element and on the content element.  For BlogSvc, the strongly typed Uri values automatically take base into account.  Because of this, it is not something that needs to be stored in the database (as it is stored with each URI), except when it applies to xhtml content where the xml:base is not set on the div tag.  We may be able to ignore that last scenario as it is probably very uncommon.