![MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Скачать руководство пользователя страница 308](http://html1.mh-extra.com/html/macromedia/dreamweaver-8-dreamweaver-api/dreamweaver-8-dreamweaver-api_reference_3332054308.webp)
308
Document
dreamweaver.createXHTMLDocument()
Availability
Dreamweaver MX.
Description
Depending on the argument that you pass to this function, it opens a new XHTML
document either in the same window or in a new window. The new document becomes the
active document. It is similar to the
dreamweaver.createDocument()
function.
When Dreamweaver creates a new XHTML document, it reads a file named default.xhtml,
which is located in the Configuration/Templates folder, and, using the content of that file,
creates an output file that contains the following skeleton declarations:
<?xml version="1.0">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=" />
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
The default document type definition (DTD) declaration is
XHTML 1.0 Transitional
,
rather than
Strict
. If the user adds a frameset to the document, Dreamweaver switches the
DTD to
XHTML 1.0 Frameset
.
Content-Type
is
text/html
, and
charset
is intentionally
left out of the default.xhtml file but is filled in before the user views the new document. The
?xml
directive is not required if the document uses UTF-8 or UTF-16 character encoding; if
it is present, it might be rendered by some older browsers. However, because this directive
should be in an XHTML document, by default, Dreamweaver uses it (for both new and
converted documents). Users can manually delete the directive. The
?xml
directive includes
the encoding attribute, which matches the
charset
in the
Content-Type
attribute.
Arguments
{bOpenInSameWindow}
■
The
bOpenInSameWindow
argument is a Boolean value that indicates whether to open the
new document in the current window. If this value is
false
or omitted, or if the function
is called on the Macintosh, the new document opens in a separate window.
000_DW_API_Print.book Page 308 Wednesday, July 20, 2005 11:58 AM
Содержание DREAMWEAVER 8-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 16: ......
Страница 28: ...28 The File I O API...
Страница 38: ...38 The HTTP API...
Страница 68: ...68 Flash Integration...
Страница 100: ...100 The Database API...
Страница 116: ...116 The JavaBeans API...
Страница 144: ...144 The Source Control Integration API...
Страница 146: ......
Страница 254: ...254 Workspace...
Страница 298: ...298 Site...
Страница 354: ...354 Document...
Страница 396: ...396 Page Content...
Страница 488: ...488 Design...
Страница 550: ...550 Code...