Skip to main content
Participant
January 14, 2017
Answered

Design view not working when making xhtml (E-book) files

  • January 14, 2017
  • 1 reply
  • 666 views

I am making E-books (EPUB3) in DW CC 2017.0.1

The EPUB standard uses xhtml files, so that's what I am making. I use this heading which is standard, with no DOCTYPE:

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">

This has been working fine until now. But now, probably since the last DW update, it won't display anything in Design view. Only Live view works.

This only happens on my laptop (PC). On my desktop PC, Design view still displays just fine after last update.

Older versions of DW on my laptop also displays Design view just fine.

So it shouldn't be a problem with my code - it ought to be in DW 2017 settings on my laptop. I've been searching and comparing settings between my two PC's, but can't track it down.

If I put in a <!DOCTYPE html>  the Design view works, as suspected. But that leads to other problems, and the DOCTYPE shouldn't be needed in an E-book xhtml document anyway.

Also, as a possible clue: When in (the non-working) Design view and clicking in the Code (Split Mode), it doesn't show the descending Tags in Tag Selector, as in:

body -> div .content -> h1

Instead it displays:

http://www.w3.org/1999/xhtml:html -> http://www.w3.org/1999/xhtml:body -> http://www.w3.org/1999/xhtml:div -> http://www.w3.org/1999/xhtml:h1

Switching to Live view shows the right tags in Tag Selector.

Any advice greatly appreciated!

/Stefan

This topic has been closed for replies.
Correct answer waytoplay

Restore Preferences.

Unusual behavior in Dreamweaver? Try restoring preferences.


Still no luck!

Thanks, though, for your suggestions!

I also tried a re-install without keeping Settings earlier on, to no avail. Hmmm...

OK, just found out that it works if I remove the xml statement from the first line:

From this: <?xml version="1.0" encoding="utf-8" standalone="no"?>

To this: <?encoding="utf-8" standalone="no"?>

Might be the best workaround yet. I would need to insert it back every time I save and zip the files to an .epub file of course, but it's better than not being able to use Design View at all.

1 reply

Nancy OShea
Community Expert
Community Expert
January 14, 2017

Dreamweaver is not an e-book authoring program.  It is a web authoring program.  To use Design View, you must have a valid HTML file with doc type declaration.   Otherwise, you'll need to work in Code View only.

Most people use InDesign to create e-books.

InDesign CC 2015: EPUB Fundamentals

Nancy

Nancy O'Shea— Product User & Community Expert
waytoplayAuthor
Participant
January 14, 2017

Hi Nancy, thank you for replying.

Still, Design View has worked perfectly fine in DW so far without the doctype. It still does on one computer, just not on the laptop in 2017.0.1. So I really do think it's a configuration issue.

Dreamweaver is very useful for making e-books since you can work with the code directly. Quite a few ppl use it for this, though I know that's not Adobes intention. I am using basically the same code for E-book/Website/App-versions of the same books - than it makes sense to write in DW instead of InDesign.

/Stefan

Nancy OShea
Community Expert
Community Expert
January 14, 2017

Go to your Preferences.  See screenshot.

Nancy O'Shea— Product User & Community Expert