Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 04-01-2010, 04:06 PM   #16
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by pietvo View Post
Firefox saves the file as is, including the xml declaration. And rightly so, because it saves files verbatim.
Actually, it strips the declaration and leaves the rest of the html untouched.


Quote:
Originally Posted by Strether View Post
It opened just fine in Word 2003, too, but with the special symbols displayed; and if they can be hidden, it would be nice to know how to do that.
I use Word 2007, so not sure if this applies to 2003 as well, but if you right-click a tag and select 'Show XML structure' there's a checkbox labelled 'Show XML tags in the document'.

Alternatively, you can apply an XSLT to the XML in Word. I've attached a very simple one which will just convert the declaration to html. Browse to it in the XML Data Views pane (again, this in Word 2007; 2003 may be different) and apply it to see the document without tags (though Word seems incapable of retrieving style info from an external css in this mode).

In general, it's easiest just to strip the xml declaration if you want to edit these files in Word.
Attached Files
File Type: zip xhtml_to_html.zip (401 Bytes, 210 views)
charleski is offline   Reply With Quote
Old 04-01-2010, 04:18 PM   #17
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
Quote:
Originally Posted by charleski View Post
Actually, it strips the declaration and leaves the rest of the html untouched.
Not for me. (Firefox 3.6.2 on Mac OS X). And I would find it nasty if it did.
pietvo is offline   Reply With Quote
Advert
Old 04-01-2010, 04:49 PM   #18
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by pietvo View Post
Not for me. (Firefox 3.6.2 on Mac OS X). And I would find it nasty if it did.
Ah, checked again and found out what's happening - saving as 'Web Page, complete' strips the xml declaration, but saving as 'Web Page, HTML only' doesn't.
charleski is offline   Reply With Quote
Old 04-01-2010, 05:35 PM   #19
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
I see. In that case it makes many more (syntactic) changes to let it look more like HTML instead of XHTML.
pietvo is offline   Reply With Quote
Old 04-01-2010, 07:43 PM   #20
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by pietvo View Post
I see. In that case it makes many more (syntactic) changes to let it look more like HTML instead of XHTML.
Firefox will do a few tidying operations such as adding an http-equiv entry if the input doesn't have one and converting some empty tags like <p/> to <p></p>. But it doesn't modify fragment identifiers, which could trip up some user agents. Firefox doesn't interpret <br></br> correctly and therefore messes up the output, but that's a fairly unlikely construct (though valid in xml).
charleski is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing problems Brientje ePub 14 10-05-2010 06:22 AM
Need help on Sony cache.xml janpardo Reading and Management 0 05-24-2010 08:22 AM
Question about editing documents once they are in Calibre ficbot Calibre 4 09-10-2009 09:58 PM
Why xml?? real_yoni Sony Reader Dev Corner 1 01-20-2009 11:45 AM
PRS-500 Available XML commands johnmcelfresh Sony Reader Dev Corner 0 08-18-2007 01:55 PM


All times are GMT -4. The time now is 06:58 PM.


MobileRead.com is a privately owned, operated and funded community.