Checking in Sources/Docs of DOM Level 2 from :
http://www.w3.org/DOM/DOMTM git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225913 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
7d5c881d20
commit
82b88df622
231 files changed
+66110
No files matched your search
+150
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!-- $Id$ -->
|
||||
<!DOCTYPE spec PUBLIC
|
||||
"-//W3C//DTD Specification V2.1-Based DOM//EN"
|
||||
"../../../pubtext/xmlspec-v21-dom.dtd" [
|
||||
|
||||
<!ENTITY prefix "Views">
|
||||
<!ENTITY % version SYSTEM "../version.xml">
|
||||
%version;
|
||||
<!ENTITY % links SYSTEM "../link-entities.xml">
|
||||
%links;
|
||||
<!ENTITY % parts SYSTEM "../part-entities.xml">
|
||||
%parts;
|
||||
<!ENTITY options SYSTEM "../options.xml">
|
||||
]>
|
||||
|
||||
<spec>
|
||||
<!--
|
||||
*************************************************************************
|
||||
* FRONT MATTER *
|
||||
*************************************************************************
|
||||
-->
|
||||
&options;
|
||||
|
||||
<header>
|
||||
<title>Document Object Model (DOM) Level 2 Views Specification</title>
|
||||
<version>1.0</version> <w3c-designation>&doc.prefix;-&doc.date;
|
||||
</w3c-designation> <w3c-doctype>W3C Recommendation</w3c-doctype> <pubdate>
|
||||
<day>&date.day;</day> <month>&date.month;</month> <year>&date.year;</year>
|
||||
</pubdate>
|
||||
<publoc> <loc href="&this.url;">&this.url;</loc>
|
||||
&ps.loc;
|
||||
&pdf.loc;
|
||||
&txt.loc;
|
||||
&zip.loc;
|
||||
</publoc>
|
||||
<latestloc> <loc href="&latest.url;">&latest.url;</loc> </latestloc>
|
||||
<prevlocs>
|
||||
&prev.locs;
|
||||
</prevlocs>
|
||||
<authlist>
|
||||
<author role="editor"> <name>Arnaud Le Hors</name>
|
||||
<affiliation>W3C team contact until October 1999, then IBM</affiliation>
|
||||
</author>
|
||||
<author role="editor"> <name>Laurence Cable</name>
|
||||
<affiliation>Sun Microsystems</affiliation> </author>
|
||||
</authlist>
|
||||
<!--
|
||||
******************************************************
|
||||
* DOCUMENT ABSTRACT *
|
||||
******************************************************
|
||||
-->
|
||||
<abstract id="id-abstract">
|
||||
|
||||
<p>This specification defines the Document Object Model Level 2 Views, a platform-
|
||||
and language-neutral interface that allows programs and scripts to dynamically
|
||||
access and update the content of a representation of a document. The Document
|
||||
Object Model Level 2 Views builds on the Document Object Model Level 2 Core
|
||||
<bibref ref='DOMCore'/>.</p>
|
||||
|
||||
</abstract>
|
||||
|
||||
&status;
|
||||
|
||||
<sourcedesc>
|
||||
<p>Created in electronic form.</p>
|
||||
</sourcedesc>
|
||||
<langusage>
|
||||
<language id="en">English</language>
|
||||
</langusage>
|
||||
<revisiondesc>
|
||||
<p>$Revision$</p>
|
||||
</revisiondesc>
|
||||
<?GENERATE-TOC?>
|
||||
</header>
|
||||
<front>
|
||||
&toc;
|
||||
©right;
|
||||
</front>
|
||||
|
||||
<body>
|
||||
&views;
|
||||
</body>
|
||||
<!--
|
||||
*************************************************************************
|
||||
* BACK MATTER *
|
||||
*************************************************************************
|
||||
-->
|
||||
<back>
|
||||
|
||||
<div1 role="idl" id="idl">
|
||||
<head>IDL Definitions</head>
|
||||
|
||||
<p>This appendix contains the complete OMG IDL <bibref ref='OMGIDL'/> for
|
||||
the Level 2 Document Object Model Views definitions.</p>
|
||||
|
||||
<p>The IDL files are also available as: <loc
|
||||
href="idl.zip">&this.url;/idl.zip</loc></p>
|
||||
|
||||
<!--
|
||||
******************************************************
|
||||
| Views OMG IDL DEFINITIONS |
|
||||
******************************************************
|
||||
-->
|
||||
<?GENERATE-IDL Views views dom.w3c.org dom?>
|
||||
</div1>
|
||||
|
||||
<div1 role="java-binding" id="java-binding">
|
||||
<head>Java Language Binding</head>
|
||||
|
||||
<p>This appendix contains the complete Java Language <bibref ref='Java'/>
|
||||
binding for the Level 2 Document Object Model Views.</p>
|
||||
|
||||
<p>The Java files are also available as <loc
|
||||
href="java-binding.zip">&this.url;/java-binding.zip</loc></p>
|
||||
|
||||
<!--
|
||||
******************************************************
|
||||
| Views JAVA BINDINGS |
|
||||
******************************************************
|
||||
-->
|
||||
<?GENERATE-JAVA Views org.w3c.dom views?>
|
||||
</div1>
|
||||
<div1 role="ecma-binding" id="ecma-binding">
|
||||
<head>ECMAScript Language Binding</head>
|
||||
|
||||
<p>This appendix contains the complete ECMAScript <bibref
|
||||
ref='ECMAScript'/> binding for the Level 2 Document Object Model Views
|
||||
definitions.</p>
|
||||
|
||||
<note>
|
||||
<p>
|
||||
Exceptions handling is only supported by ECMAScript implementation
|
||||
conformant with the Standard ECMA-262 3rd. Edition (<bibref
|
||||
ref="ECMAScript"/>).
|
||||
</p>
|
||||
</note>
|
||||
|
||||
<!--
|
||||
******************************************************
|
||||
| Views ECMASCRIPT BINDINGS |
|
||||
******************************************************
|
||||
-->
|
||||
<?GENERATE-ECMA Views?>
|
||||
</div1>
|
||||
&contributors;
|
||||
&references;
|
||||
&index;
|
||||
</back>
|
||||
</spec>
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- $Id$ -->
|
||||
<div1 id="Views">
|
||||
<head>Document Object Model Views</head>
|
||||
<orglist role="editors">
|
||||
<member>
|
||||
<name>Arnaud Le Hors</name>
|
||||
<affiliation>IBM</affiliation>
|
||||
</member>
|
||||
<member>
|
||||
<name>Laurence Cable</name>
|
||||
<affiliation>Sun Microsystems</affiliation>
|
||||
</member>
|
||||
</orglist>
|
||||
<?GENERATE-MINI-TOC?>
|
||||
|
||||
<div2 id='Views-intro'>
|
||||
<head>Introduction</head>
|
||||
|
||||
<p>A document may have one or more "views" associated with it, e.g., a
|
||||
computed view on a document after applying a CSS stylesheet, or multiple
|
||||
presentations (e.g., HTML Frame) of the same document in a client. That is,
|
||||
a view is some alternate representation of, or a presentation of, and
|
||||
associated with, a source document.</p>
|
||||
<p>A view may be static, reflecting the state of the document when
|
||||
the view was created, or dynamic, reflecting changes in the target
|
||||
document as they occur, subsequent to the view being created. This
|
||||
Level of the DOM specification makes no statement about these behaviors.</p>
|
||||
|
||||
<p>This section defines an <code>AbstractView</code> interface which
|
||||
provides a base interface from which all such views shall derive. It
|
||||
defines an attribute which references the target document of the
|
||||
<code>AbstractView</code>. The only semantics of the <code>AbstractView</code>
|
||||
defined here create an association between a view and its target document.</p>
|
||||
|
||||
<p>There are no subinterfaces of <code>AbstractView</code> defined in the DOM
|
||||
Level 2.</p>
|
||||
|
||||
<p>However, <code>AbstractView</code> is defined in and used in this Level
|
||||
in two places:</p>
|
||||
<ulist>
|
||||
<item><p>A Document may implement a <code>DocumentView</code> that has a default view
|
||||
attribute associated with it. This default view is typically dependent on
|
||||
the implementation (e.g., the browser frame rendering the document). The
|
||||
default view can be used in order to identify and/or associate a view with
|
||||
its target document (by testing object equality on the
|
||||
<code>AbstractView</code> or obtaining the <code>DocumentView</code>
|
||||
attribute).</p></item>
|
||||
|
||||
<item><p>A <code>UIEvent</code> typically occurs upon a view of a Document
|
||||
(e.g., a mouse click on a browser frame rendering a particular Document
|
||||
instance). A <code>UIEvent</code> has an <code>AbstractView</code>
|
||||
associated with it which identifies both the particular
|
||||
(implementation-dependent) view in which the event occurs, and
|
||||
the target document the <code>UIEvent</code> is related to.</p></item></ulist>
|
||||
|
||||
<p>
|
||||
The interfaces found within this section are not mandatory. A DOM
|
||||
application may use the <code>hasFeature(feature, version)</code> method
|
||||
of the <code>DOMImplementation</code> interface with parameter values
|
||||
"Views" and "2.0" (respectively) to determine whether or not this module
|
||||
is supported by the implementation. In order to fully support this
|
||||
module, an implementation must also support the "Core" feature defined
|
||||
defined in the Document Object Model Level 2 Core specification <bibref
|
||||
ref="DOMCore"/>. Please refer to additional information about <xspecref
|
||||
href='&core.latest.url;/introduction.html#ID-Conformance'>conformance in
|
||||
the DOM Level 2 Core specification</xspecref>.
|
||||
</p>
|
||||
|
||||
</div2>
|
||||
|
||||
<div2 id='Views-Interfaces'>
|
||||
<head>Interfaces</head>
|
||||
|
||||
<definitions>
|
||||
<interface name="AbstractView" id="Views-AbstractView"
|
||||
since="DOM Level 2">
|
||||
<descr>
|
||||
<p>A base interface that all views shall derive from.</p>
|
||||
</descr>
|
||||
<attribute id="Views-AbstractView-document" type="DocumentView" name="document" readonly="yes">
|
||||
<descr>
|
||||
<p>The source <code>DocumentView</code> of which this is an
|
||||
<code>AbstractView</code>.</p>
|
||||
</descr>
|
||||
</attribute>
|
||||
</interface>
|
||||
|
||||
<interface name="DocumentView" id="Views-DocumentView"
|
||||
since="DOM Level 2">
|
||||
<descr>
|
||||
<p>The <code>DocumentView</code> interface is implemented by
|
||||
<code>Document</code> objects in DOM implementations supporting DOM
|
||||
Views. It provides an attribute to retrieve the default view of a
|
||||
document.</p>
|
||||
</descr>
|
||||
<attribute id="Views-DocumentView-defaultView" type="AbstractView" name="defaultView" readonly="yes">
|
||||
<descr>
|
||||
<p>The default <code>AbstractView</code> for this
|
||||
<code>Document</code>, or <code>null</code> if none
|
||||
available.</p>
|
||||
</descr>
|
||||
</attribute>
|
||||
</interface>
|
||||
</definitions>
|
||||
</div2>
|
||||
</div1>
|
||||
Reference in new issue
Block a user