View Single Post
Old 03-31-2010, 04:09 AM   #11
pietvo
Reader
pietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notes
 
pietvo's Avatar
 
Posts: 520
Karma: 24612
Join Date: Aug 2009
Location: Utrecht, NL
Device: Kobo Aura 2, iPhone, iPad
Firefox saves the file as is, including the xml declaration. And rightly so, because it saves files verbatim.

And indeed, the XML declaration is not required. The XML spec says: `XML documents SHOULD begin with an XML declaration', not `XML documents MUST begin with an XML declaration'. The grammar also clearly marks it as optional.

It is, however, the fault of Openoffice.org that it doesn't recognise the file as XHTML. But this issue has been on the list of future enhancements since 2005. The problem is that Openoffice.org doesn't have a proper XHTML import filter, and it treats them as HTML, but therefore it doesn't recognize the XML declaration.
pietvo is offline   Reply With Quote