You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by le...@locus.apache.org on 2000/12/21 01:34:01 UTC

cvs commit: xml-xerces/java/src/org/apache/html/dom HTMLAnchorElementImpl.java HTMLAppletElementImpl.java HTMLAreaElementImpl.java HTMLBRElementImpl.java HTMLBaseElementImpl.java HTMLBaseFontElementImpl.java HTMLBodyElementImpl.java HTMLBuilder.java HTMLButtonElementImpl.java HTMLCollectionImpl.java HTMLDListElementImpl.java HTMLDirectoryElementImpl.java HTMLDivElementImpl.java HTMLElementImpl.java HTMLFieldSetElementImpl.java HTMLFontElementImpl.java HTMLFormControl.java HTMLFormElementImpl.java HTMLFrameElementImpl.java HTMLFrameSetElementImpl.java HTMLHRElementImpl.java HTMLHeadElementImpl.java HTMLHeadingElementImpl.java HTMLHtmlElementImpl.java HTMLIFrameElementImpl.java HTMLImageElementImpl.java HTMLInputElementImpl.java HTMLIsIndexElementImpl.java HTMLLIElementImpl.java HTMLLabelElementImpl.java HTMLLegendElementImpl.java HTMLLinkElementImpl.java HTMLMapElementImpl.java HTMLMenuElementImpl.java HTMLMetaElementImpl.java HTMLModElementImpl.java HTMLOListElementImpl.java HTMLObjectElementImpl.java HTMLOptGroupElementImpl.java HTMLOptionElementImpl.java HTMLParagraphElementImpl.java HTMLParamElementImpl.java HTMLPreElementImpl.java HTMLQuoteElementImpl.java HTMLScriptElementImpl.java HTMLSelectElementImpl.java HTMLStyleElementImpl.java HTMLTableCaptionElementImpl.java HTMLTableCellElementImpl.java HTMLTableColElementImpl.java HTMLTableElementImpl.java HTMLTableRowElementImpl.java HTMLTableSectionElementImpl.java HTMLTextAreaElementImpl.java HTMLTitleElementImpl.java HTMLUListElementImpl.java

lehors      00/12/20 16:33:59

  Modified:    java/src/org/apache/html/dom HTMLAnchorElementImpl.java
                        HTMLAppletElementImpl.java HTMLAreaElementImpl.java
                        HTMLBRElementImpl.java HTMLBaseElementImpl.java
                        HTMLBaseFontElementImpl.java
                        HTMLBodyElementImpl.java HTMLBuilder.java
                        HTMLButtonElementImpl.java HTMLCollectionImpl.java
                        HTMLDListElementImpl.java
                        HTMLDirectoryElementImpl.java
                        HTMLDivElementImpl.java HTMLElementImpl.java
                        HTMLFieldSetElementImpl.java
                        HTMLFontElementImpl.java HTMLFormControl.java
                        HTMLFormElementImpl.java HTMLFrameElementImpl.java
                        HTMLFrameSetElementImpl.java HTMLHRElementImpl.java
                        HTMLHeadElementImpl.java
                        HTMLHeadingElementImpl.java
                        HTMLHtmlElementImpl.java HTMLIFrameElementImpl.java
                        HTMLImageElementImpl.java HTMLInputElementImpl.java
                        HTMLIsIndexElementImpl.java HTMLLIElementImpl.java
                        HTMLLabelElementImpl.java
                        HTMLLegendElementImpl.java HTMLLinkElementImpl.java
                        HTMLMapElementImpl.java HTMLMenuElementImpl.java
                        HTMLMetaElementImpl.java HTMLModElementImpl.java
                        HTMLOListElementImpl.java
                        HTMLObjectElementImpl.java
                        HTMLOptGroupElementImpl.java
                        HTMLOptionElementImpl.java
                        HTMLParagraphElementImpl.java
                        HTMLParamElementImpl.java HTMLPreElementImpl.java
                        HTMLQuoteElementImpl.java
                        HTMLScriptElementImpl.java
                        HTMLSelectElementImpl.java
                        HTMLStyleElementImpl.java
                        HTMLTableCaptionElementImpl.java
                        HTMLTableCellElementImpl.java
                        HTMLTableColElementImpl.java
                        HTMLTableElementImpl.java
                        HTMLTableRowElementImpl.java
                        HTMLTableSectionElementImpl.java
                        HTMLTextAreaElementImpl.java
                        HTMLTitleElementImpl.java HTMLUListElementImpl.java
  Log:
  removed bogus ^M characters
  
  Revision  Changes    Path
  1.3       +196 -196  xml-xerces/java/src/org/apache/html/dom/HTMLAnchorElementImpl.java
  
  Index: HTMLAnchorElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLAnchorElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLAnchorElementImpl.java	2000/02/10 04:00:08	1.2
  +++ HTMLAnchorElementImpl.java	2000/12/21 00:33:37	1.3
  @@ -54,199 +54,199 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:08 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLAnchorElement
  - * @see ElementImpl
  - */
  -public final class HTMLAnchorElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLAnchorElement
  -{
  -    
  -    
  -    public String getAccessKey()
  -    {
  -        String    accessKey;
  -        
  -        // Make sure that the access key is a single character.
  -        accessKey = getAttribute( "accesskey" );
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        return accessKey;
  -    }
  -    
  -    
  -    public void setAccessKey( String accessKey )
  -    {
  -        // Make sure that the access key is a single character.
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        setAttribute( "accesskey", accessKey );
  -    }
  -
  -    
  -    public String getCharset()
  -    {
  -        return getAttribute( "charset" );
  -    }
  -    
  -    
  -    public void setCharset( String charset )
  -    {
  -        setAttribute( "charset", charset );
  -    }
  -    
  -    
  -    public String getCoords()
  -    {
  -        return getAttribute( "coords" );
  -    }
  -    
  -    
  -    public void setCoords( String coords )
  -    {
  -        setAttribute( "coords", coords );
  -    }
  -  
  -  
  -    public String getHref()
  -    {
  -        return getAttribute( "href" );
  -    }
  -    
  -    
  -    public void setHref( String href )
  -    {
  -        setAttribute( "href", href );
  -    }
  -    
  -    
  -    public String getHreflang()
  -    {
  -        return getAttribute( "hreflang" );
  -    }
  -    
  -    
  -    public void setHreflang( String hreflang )
  -    {
  -        setAttribute( "hreflang", hreflang );
  -    }
  -  
  -  
  -    public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -    
  -    
  -    public String getRel()
  -    {
  -        return getAttribute( "rel" );
  -    }
  -    
  -    
  -    public void setRel( String rel )
  -    {
  -        setAttribute( "rel", rel );
  -    }
  -
  -    
  -    public String getRev()
  -    {
  -        return getAttribute( "rev" );
  -    }
  -    
  -    
  -    public void setRev( String rev )
  -    {
  -        setAttribute( "rev", rev );
  -    }
  -
  -
  -    public String getShape()
  -    {
  -        return capitalize( getAttribute( "shape" ) );
  -    }
  -    
  -    
  -    public void setShape( String shape )
  -    {
  -        setAttribute( "shape", shape );
  -    }
  -  
  -
  -    public int getTabIndex()
  -    {
  -        return this.getInteger( getAttribute( "tabindex" ) );
  -    }
  -    
  -    
  -    public void setTabIndex( int tabIndex )
  -    {
  -        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  -    }
  -
  -  
  -    public String getTarget()
  -    {
  -        return getAttribute( "target" );
  -    }
  -    
  -    
  -    public void setTarget( String target )
  -    {
  -        setAttribute( "target", target );
  -    }
  -    
  -    
  -    public String getType()
  -    {
  -        return getAttribute( "type" );
  -    }
  -    
  -    
  -    public void setType( String type )
  -    {
  -        setAttribute( "type", type );
  -    }
  -
  -    
  -    public void blur()
  -    {
  -        // No scripting in server-side DOM. This method is moot.
  -    }
  -    
  -    public void focus()
  -    {
  -        // No scripting in server-side DOM. This method is moot.
  -    }
  -  
  -  
  -      /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLAnchorElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:37 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLAnchorElement
  + * @see ElementImpl
  + */
  +public final class HTMLAnchorElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLAnchorElement
  +{
  +    
  +    
  +    public String getAccessKey()
  +    {
  +        String    accessKey;
  +        
  +        // Make sure that the access key is a single character.
  +        accessKey = getAttribute( "accesskey" );
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        return accessKey;
  +    }
  +    
  +    
  +    public void setAccessKey( String accessKey )
  +    {
  +        // Make sure that the access key is a single character.
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        setAttribute( "accesskey", accessKey );
  +    }
  +
  +    
  +    public String getCharset()
  +    {
  +        return getAttribute( "charset" );
  +    }
  +    
  +    
  +    public void setCharset( String charset )
  +    {
  +        setAttribute( "charset", charset );
  +    }
  +    
  +    
  +    public String getCoords()
  +    {
  +        return getAttribute( "coords" );
  +    }
  +    
  +    
  +    public void setCoords( String coords )
  +    {
  +        setAttribute( "coords", coords );
  +    }
  +  
  +  
  +    public String getHref()
  +    {
  +        return getAttribute( "href" );
  +    }
  +    
  +    
  +    public void setHref( String href )
  +    {
  +        setAttribute( "href", href );
  +    }
  +    
  +    
  +    public String getHreflang()
  +    {
  +        return getAttribute( "hreflang" );
  +    }
  +    
  +    
  +    public void setHreflang( String hreflang )
  +    {
  +        setAttribute( "hreflang", hreflang );
  +    }
  +  
  +  
  +    public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +    
  +    
  +    public String getRel()
  +    {
  +        return getAttribute( "rel" );
  +    }
  +    
  +    
  +    public void setRel( String rel )
  +    {
  +        setAttribute( "rel", rel );
  +    }
  +
  +    
  +    public String getRev()
  +    {
  +        return getAttribute( "rev" );
  +    }
  +    
  +    
  +    public void setRev( String rev )
  +    {
  +        setAttribute( "rev", rev );
  +    }
  +
  +
  +    public String getShape()
  +    {
  +        return capitalize( getAttribute( "shape" ) );
  +    }
  +    
  +    
  +    public void setShape( String shape )
  +    {
  +        setAttribute( "shape", shape );
  +    }
  +  
  +
  +    public int getTabIndex()
  +    {
  +        return this.getInteger( getAttribute( "tabindex" ) );
  +    }
  +    
  +    
  +    public void setTabIndex( int tabIndex )
  +    {
  +        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  +    }
  +
  +  
  +    public String getTarget()
  +    {
  +        return getAttribute( "target" );
  +    }
  +    
  +    
  +    public void setTarget( String target )
  +    {
  +        setAttribute( "target", target );
  +    }
  +    
  +    
  +    public String getType()
  +    {
  +        return getAttribute( "type" );
  +    }
  +    
  +    
  +    public void setType( String type )
  +    {
  +        setAttribute( "type", type );
  +    }
  +
  +    
  +    public void blur()
  +    {
  +        // No scripting in server-side DOM. This method is moot.
  +    }
  +    
  +    public void focus()
  +    {
  +        // No scripting in server-side DOM. This method is moot.
  +    }
  +  
  +  
  +      /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLAnchorElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +
  
  
  
  1.3       +163 -163  xml-xerces/java/src/org/apache/html/dom/HTMLAppletElementImpl.java
  
  Index: HTMLAppletElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLAppletElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLAppletElementImpl.java	2000/02/10 04:00:08	1.2
  +++ HTMLAppletElementImpl.java	2000/12/21 00:33:37	1.3
  @@ -54,166 +54,166 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:08 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLAppletElement
  - * @see HTMLElementImpl
  - */
  -public final class HTMLAppletElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLAppletElement
  -{
  -
  -    
  -    public String getAlign()
  -    {
  -        return getAttribute( "align" );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -  
  -  
  -    public String getAlt()
  -    {
  -        return getAttribute( "alt" );
  -    }
  -    
  -    
  -    public void setAlt( String alt )
  -    {
  -        setAttribute( "alt", alt );
  -    }
  -
  -    
  -    public String getArchive()
  -    {
  -        return getAttribute( "archive" );
  -    }
  -    
  -    
  -    public void setArchive( String archive )
  -    {
  -        setAttribute( "archive", archive );
  -    }
  -
  -
  -    public String getCode()
  -    {
  -        return getAttribute( "code" );
  -    }
  -    
  -    
  -    public void setCode( String code )
  -    {
  -        setAttribute( "code", code );
  -    }
  -
  -
  -    public String getCodeBase()
  -    {
  -        return getAttribute( "codebase" );
  -    }
  -    
  -    
  -    public void setCodeBase( String codeBase )
  -    {
  -        setAttribute( "codebase", codeBase );
  -    }
  -
  -
  -    public String getHeight()
  -    {
  -        return getAttribute( "height" );
  -    }
  -    
  -    
  -    public void setHeight( String height )
  -    {
  -        setAttribute( "height", height );
  -    }
  -
  -
  -    public String getHspace()
  -    {
  -        return getAttribute( "height" );
  -    }
  -    
  -    
  -    public void setHspace( String height )
  -    {
  -        setAttribute( "height", height );
  -    }
  -
  -
  -    public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -
  -
  -    public String getObject()
  -    {
  -        return getAttribute( "object" );
  -    }
  -    
  -    
  -    public void setObject( String object )
  -    {
  -        setAttribute( "object", object );
  -    }
  -
  -
  -    public String getVspace()
  -    {
  -        return getAttribute( "vspace" );
  -    }
  -    
  -    
  -    public void setVspace( String vspace )
  -    {
  -        setAttribute( "vspace", vspace );
  -    }
  -
  -
  -    public String getWidth()
  -    {
  -        return getAttribute( "width" );
  -    }
  -    
  -    
  -    public void setWidth( String width )
  -    {
  -        setAttribute( "width", width );
  -    }
  -
  -
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLAppletElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -    
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:37 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLAppletElement
  + * @see HTMLElementImpl
  + */
  +public final class HTMLAppletElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLAppletElement
  +{
  +
  +    
  +    public String getAlign()
  +    {
  +        return getAttribute( "align" );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +  
  +  
  +    public String getAlt()
  +    {
  +        return getAttribute( "alt" );
  +    }
  +    
  +    
  +    public void setAlt( String alt )
  +    {
  +        setAttribute( "alt", alt );
  +    }
  +
  +    
  +    public String getArchive()
  +    {
  +        return getAttribute( "archive" );
  +    }
  +    
  +    
  +    public void setArchive( String archive )
  +    {
  +        setAttribute( "archive", archive );
  +    }
  +
  +
  +    public String getCode()
  +    {
  +        return getAttribute( "code" );
  +    }
  +    
  +    
  +    public void setCode( String code )
  +    {
  +        setAttribute( "code", code );
  +    }
  +
  +
  +    public String getCodeBase()
  +    {
  +        return getAttribute( "codebase" );
  +    }
  +    
  +    
  +    public void setCodeBase( String codeBase )
  +    {
  +        setAttribute( "codebase", codeBase );
  +    }
  +
  +
  +    public String getHeight()
  +    {
  +        return getAttribute( "height" );
  +    }
  +    
  +    
  +    public void setHeight( String height )
  +    {
  +        setAttribute( "height", height );
  +    }
  +
  +
  +    public String getHspace()
  +    {
  +        return getAttribute( "height" );
  +    }
  +    
  +    
  +    public void setHspace( String height )
  +    {
  +        setAttribute( "height", height );
  +    }
  +
  +
  +    public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +
  +
  +    public String getObject()
  +    {
  +        return getAttribute( "object" );
  +    }
  +    
  +    
  +    public void setObject( String object )
  +    {
  +        setAttribute( "object", object );
  +    }
  +
  +
  +    public String getVspace()
  +    {
  +        return getAttribute( "vspace" );
  +    }
  +    
  +    
  +    public void setVspace( String vspace )
  +    {
  +        setAttribute( "vspace", vspace );
  +    }
  +
  +
  +    public String getWidth()
  +    {
  +        return getAttribute( "width" );
  +    }
  +    
  +    
  +    public void setWidth( String width )
  +    {
  +        setAttribute( "width", width );
  +    }
  +
  +
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLAppletElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +    
  +}
  +
  
  
  
  1.3       +135 -135  xml-xerces/java/src/org/apache/html/dom/HTMLAreaElementImpl.java
  
  Index: HTMLAreaElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLAreaElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLAreaElementImpl.java	2000/02/10 04:00:08	1.2
  +++ HTMLAreaElementImpl.java	2000/12/21 00:33:37	1.3
  @@ -54,138 +54,138 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:08 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLAreaElement
  - * @see ElementImpl
  - */
  -public final class HTMLAreaElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLAreaElement
  -{
  -    
  -    
  -    public String getAccessKey()
  -    {
  -        String    accessKey;
  -        
  -        // Make sure that the access key is a single character.
  -        accessKey = getAttribute( "accesskey" );
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        return accessKey;
  -    }
  -    
  -    
  -    public void setAccessKey( String accessKey )
  -    {
  -        // Make sure that the access key is a single character.
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        setAttribute( "accesskey", accessKey );
  -    }
  -
  -    
  -    public String getAlt()
  -    {
  -        return getAttribute( "alt" );
  -    }
  -    
  -    
  -    public void setAlt( String alt )
  -    {
  -        setAttribute( "alt", alt );
  -    }
  -    
  -    public String getCoords()
  -    {
  -        return getAttribute( "coords" );
  -    }
  -    
  -    
  -    public void setCoords( String coords )
  -    {
  -        setAttribute( "coords", coords );
  -    }
  -  
  -  
  -    public String getHref()
  -    {
  -        return getAttribute( "href" );
  -    }
  -    
  -    
  -    public void setHref( String href )
  -    {
  -        setAttribute( "href", href );
  -    }
  -
  -    
  -    public boolean getNoHref()
  -    {
  -        return getBinary( "href" );
  -    }
  -    
  -    
  -    public void setNoHref( boolean noHref )
  -    {
  -        setAttribute( "nohref", noHref );
  -    }
  -    
  -    
  -    public String getShape()
  -    {
  -        return capitalize( getAttribute( "shape" ) );
  -    }
  -    
  -    
  -    public void setShape( String shape )
  -    {
  -        setAttribute( "shape", shape );
  -    }
  -
  -    
  -    public int getTabIndex()
  -    {
  -        return getInteger( getAttribute( "tabindex" ) );
  -    }
  -    
  -    
  -    public void setTabIndex( int tabIndex )
  -    {
  -        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  -    }
  -
  -    
  -    public String getTarget()
  -    {
  -        return getAttribute( "target" );
  -    }
  -    
  -    
  -    public void setTarget( String target )
  -    {
  -        setAttribute( "target", target );
  -    }
  -    
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLAreaElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -    
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:37 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLAreaElement
  + * @see ElementImpl
  + */
  +public final class HTMLAreaElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLAreaElement
  +{
  +    
  +    
  +    public String getAccessKey()
  +    {
  +        String    accessKey;
  +        
  +        // Make sure that the access key is a single character.
  +        accessKey = getAttribute( "accesskey" );
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        return accessKey;
  +    }
  +    
  +    
  +    public void setAccessKey( String accessKey )
  +    {
  +        // Make sure that the access key is a single character.
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        setAttribute( "accesskey", accessKey );
  +    }
  +
  +    
  +    public String getAlt()
  +    {
  +        return getAttribute( "alt" );
  +    }
  +    
  +    
  +    public void setAlt( String alt )
  +    {
  +        setAttribute( "alt", alt );
  +    }
  +    
  +    public String getCoords()
  +    {
  +        return getAttribute( "coords" );
  +    }
  +    
  +    
  +    public void setCoords( String coords )
  +    {
  +        setAttribute( "coords", coords );
  +    }
  +  
  +  
  +    public String getHref()
  +    {
  +        return getAttribute( "href" );
  +    }
  +    
  +    
  +    public void setHref( String href )
  +    {
  +        setAttribute( "href", href );
  +    }
  +
  +    
  +    public boolean getNoHref()
  +    {
  +        return getBinary( "href" );
  +    }
  +    
  +    
  +    public void setNoHref( boolean noHref )
  +    {
  +        setAttribute( "nohref", noHref );
  +    }
  +    
  +    
  +    public String getShape()
  +    {
  +        return capitalize( getAttribute( "shape" ) );
  +    }
  +    
  +    
  +    public void setShape( String shape )
  +    {
  +        setAttribute( "shape", shape );
  +    }
  +
  +    
  +    public int getTabIndex()
  +    {
  +        return getInteger( getAttribute( "tabindex" ) );
  +    }
  +    
  +    
  +    public void setTabIndex( int tabIndex )
  +    {
  +        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  +    }
  +
  +    
  +    public String getTarget()
  +    {
  +        return getAttribute( "target" );
  +    }
  +    
  +    
  +    public void setTarget( String target )
  +    {
  +        setAttribute( "target", target );
  +    }
  +    
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLAreaElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +    
  +}
  +
  
  
  
  1.3       +44 -44    xml-xerces/java/src/org/apache/html/dom/HTMLBRElementImpl.java
  
  Index: HTMLBRElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLBRElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLBRElementImpl.java	2000/02/10 04:00:09	1.2
  +++ HTMLBRElementImpl.java	2000/12/21 00:33:38	1.3
  @@ -54,47 +54,47 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:09 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLBRElement
  - * @see ElementImpl
  - */
  -public final class HTMLBRElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLBRElement
  -{
  -
  -    
  -    public String getClear()
  -    {
  -        return capitalize( getAttribute( "clear" ) );
  -    }
  -    
  -    
  -    public void setClear( String clear )
  -    {
  -        setAttribute( "clear", clear );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLBRElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:38 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLBRElement
  + * @see ElementImpl
  + */
  +public final class HTMLBRElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLBRElement
  +{
  +
  +    
  +    public String getClear()
  +    {
  +        return capitalize( getAttribute( "clear" ) );
  +    }
  +    
  +    
  +    public void setClear( String clear )
  +    {
  +        setAttribute( "clear", clear );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLBRElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +55 -55    xml-xerces/java/src/org/apache/html/dom/HTMLBaseElementImpl.java
  
  Index: HTMLBaseElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLBaseElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLBaseElementImpl.java	2000/02/10 04:00:08	1.2
  +++ HTMLBaseElementImpl.java	2000/12/21 00:33:38	1.3
  @@ -54,58 +54,58 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:08 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLBaseElement
  - * @see ElementImpl
  - */
  -public final class HTMLBaseElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLBaseElement
  -{
  -
  -    
  -    public String getHref()
  -    {
  -        return getAttribute( "href" );
  -    }
  -    
  -    
  -    public void setHref( String href )
  -    {
  -        setAttribute( "href", href );
  -    }
  -    
  -    public String getTarget()
  -    {
  -        return getAttribute( "target" );
  -    }
  -    
  -    
  -    public void setTarget( String target )
  -    {
  -        setAttribute( "target", target );
  -    }
  -
  -
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLBaseElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:38 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLBaseElement
  + * @see ElementImpl
  + */
  +public final class HTMLBaseElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLBaseElement
  +{
  +
  +    
  +    public String getHref()
  +    {
  +        return getAttribute( "href" );
  +    }
  +    
  +    
  +    public void setHref( String href )
  +    {
  +        setAttribute( "href", href );
  +    }
  +    
  +    public String getTarget()
  +    {
  +        return getAttribute( "target" );
  +    }
  +    
  +    
  +    public void setTarget( String target )
  +    {
  +        setAttribute( "target", target );
  +    }
  +
  +
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLBaseElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +68 -68    xml-xerces/java/src/org/apache/html/dom/HTMLBaseFontElementImpl.java
  
  Index: HTMLBaseFontElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLBaseFontElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLBaseFontElementImpl.java	2000/02/10 04:00:09	1.2
  +++ HTMLBaseFontElementImpl.java	2000/12/21 00:33:38	1.3
  @@ -54,71 +54,71 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:09 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLBaseFontElement
  - * @see ElementImpl
  - */
  -public final class HTMLBaseFontElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLBaseFontElement
  -{
  -    
  -    
  -    public String getColor()
  -    {
  -        return capitalize( getAttribute( "color" ) );
  -    }
  -    
  -    
  -    public void setColor( String color )
  -    {
  -        setAttribute( "color", color );
  -    }
  -    
  -    
  -    public String getFace()
  -    {
  -        return capitalize( getAttribute( "face" ) );
  -    }
  -    
  -    
  -    public void setFace( String face )
  -    {
  -        setAttribute( "face", face );
  -    }
  -    
  -    
  -    public String getSize()
  -    {
  -        return getAttribute( "size" );
  -    }
  -    
  -    
  -    public void setSize( String size )
  -    {
  -        setAttribute( "size", size );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLBaseFontElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:38 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLBaseFontElement
  + * @see ElementImpl
  + */
  +public final class HTMLBaseFontElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLBaseFontElement
  +{
  +    
  +    
  +    public String getColor()
  +    {
  +        return capitalize( getAttribute( "color" ) );
  +    }
  +    
  +    
  +    public void setColor( String color )
  +    {
  +        setAttribute( "color", color );
  +    }
  +    
  +    
  +    public String getFace()
  +    {
  +        return capitalize( getAttribute( "face" ) );
  +    }
  +    
  +    
  +    public void setFace( String face )
  +    {
  +        setAttribute( "face", face );
  +    }
  +    
  +    
  +    public String getSize()
  +    {
  +        return getAttribute( "size" );
  +    }
  +    
  +    
  +    public void setSize( String size )
  +    {
  +        setAttribute( "size", size );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLBaseFontElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +103 -103  xml-xerces/java/src/org/apache/html/dom/HTMLBodyElementImpl.java
  
  Index: HTMLBodyElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLBodyElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLBodyElementImpl.java	2000/02/10 04:00:09	1.2
  +++ HTMLBodyElementImpl.java	2000/12/21 00:33:38	1.3
  @@ -54,106 +54,106 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:09 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLBodyElement
  - * @see ElementImpl
  - */
  -public final class HTMLBodyElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLBodyElement
  -{
  -    
  -    public String getALink()
  -    {
  -        return getAttribute( "alink" );
  -    }
  -
  -    
  -    public void setALink(String aLink)
  -    {
  -        setAttribute( "alink", aLink );
  -    }
  -    
  -  
  -    public String getBackground()
  -    {
  -        return getAttribute( "background" );
  -    }
  -    
  -  
  -    public void setBackground( String background )
  -    {
  -        setAttribute( "background", background );
  -    }
  -    
  -  
  -    public String getBgColor()
  -    {
  -        return getAttribute( "bgcolor" );
  -    }
  -    
  -    
  -    public void setBgColor(String bgColor)
  -    {
  -        setAttribute( "bgcolor", bgColor );
  -    }
  -    
  -  
  -    public String getLink()
  -    {
  -        return getAttribute( "link" );
  -    }
  -  
  -    
  -    public void setLink(String link)
  -    {
  -        setAttribute( "link", link );
  -    }
  -    
  -  
  -    public String getText()
  -    {
  -        return getAttribute( "text" );
  -    }
  -    
  -  
  -    public void setText(String text)
  -    {
  -        setAttribute( "text", text );
  -    }
  -    
  -  
  -    public String getVLink()
  -    {
  -        return getAttribute( "vlink" );
  -    }
  -  
  -    
  -    public void  setVLink(String vLink)
  -    {
  -        setAttribute( "vlink", vLink );
  -    }
  -  
  -    
  -      /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLBodyElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:38 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLBodyElement
  + * @see ElementImpl
  + */
  +public final class HTMLBodyElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLBodyElement
  +{
  +    
  +    public String getALink()
  +    {
  +        return getAttribute( "alink" );
  +    }
  +
  +    
  +    public void setALink(String aLink)
  +    {
  +        setAttribute( "alink", aLink );
  +    }
  +    
  +  
  +    public String getBackground()
  +    {
  +        return getAttribute( "background" );
  +    }
  +    
  +  
  +    public void setBackground( String background )
  +    {
  +        setAttribute( "background", background );
  +    }
  +    
  +  
  +    public String getBgColor()
  +    {
  +        return getAttribute( "bgcolor" );
  +    }
  +    
  +    
  +    public void setBgColor(String bgColor)
  +    {
  +        setAttribute( "bgcolor", bgColor );
  +    }
  +    
  +  
  +    public String getLink()
  +    {
  +        return getAttribute( "link" );
  +    }
  +  
  +    
  +    public void setLink(String link)
  +    {
  +        setAttribute( "link", link );
  +    }
  +    
  +  
  +    public String getText()
  +    {
  +        return getAttribute( "text" );
  +    }
  +    
  +  
  +    public void setText(String text)
  +    {
  +        setAttribute( "text", text );
  +    }
  +    
  +  
  +    public String getVLink()
  +    {
  +        return getAttribute( "vlink" );
  +    }
  +  
  +    
  +    public void  setVLink(String vLink)
  +    {
  +        setAttribute( "vlink", vLink );
  +    }
  +  
  +    
  +      /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLBodyElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +
  
  
  
  1.4       +220 -220  xml-xerces/java/src/org/apache/html/dom/HTMLBuilder.java
  
  Index: HTMLBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLBuilder.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- HTMLBuilder.java	2000/02/10 04:00:09	1.3
  +++ HTMLBuilder.java	2000/12/21 00:33:38	1.4
  @@ -54,223 +54,223 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import java.util.Vector;
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -import org.xml.sax.*;
  -import org.apache.xerces.dom.TextImpl;
  -import org.apache.xerces.dom.ElementImpl;
  -import org.apache.xerces.dom.ProcessingInstructionImpl;
  -
  -
  -/**
  - * This is a SAX document handler that is used to build an HTML document.
  - * It can build a document from any SAX parser, but is specifically tuned
  - * for working with the OpenXML HTML parser.
  - * 
  - * 
  - * @version $Revision: 1.3 $ $Date: 2000/02/10 04:00:09 $
  - * @author <a href="mailto:arkin@openxml.org">Assaf Arkin</a>
  - */
  -public class HTMLBuilder
  -    implements DocumentHandler
  -{
  -
  -
  -    /**
  -     * The document that is being built.
  -     */
  -    protected HTMLDocumentImpl    _document;
  -    
  -    
  -    /**
  -     * The current node in the document into which elements, text and
  -     * other nodes will be inserted. This starts as the document iself
  -     * and reflects each element that is currently being parsed.
  -     */
  -    protected ElementImpl        _current;
  -    
  -    /**
  -     * A reference to the current locator, this is generally the parser
  -     * itself. The locator is used to locate errors and identify the
  -     * source locations of elements.
  -     */
  -    private Locator         _locator;
  -
  -
  -    /**
  -     * Applies only to whitespace appearing between element tags in element content,
  -     * as per the SAX definition, and true by default.
  -     */
  -    private boolean         _ignoreWhitespace = true;
  -
  -
  -    /**
  -     * Indicates whether finished building a document. If so, can start building
  -     * another document. Must be initially true to get the first document processed.
  -     */
  -    private boolean         _done = true;
  -
  -
  -    /**    
  -     * The document is only created the same time as the document element, however, certain
  -     * nodes may precede the document element (comment and PI), and they are accumulated
  -     * in this vector.
  -     */
  -    protected Vector         _preRootNodes;
  -
  -    
  -    public void startDocument()
  -        throws SAXException
  -    {
  -        if ( ! _done )
  -	    throw new SAXException( "HTM001 State error: startDocument fired twice on one builder." );
  -	_document = null;
  -	_done = false;
  -    }
  -
  -
  -    public void endDocument()
  -        throws SAXException
  -    {
  -        if ( _document == null )
  -            throw new SAXException( "HTM002 State error: document never started or missing document element." );
  -	if ( _current != null )
  -	    throw new SAXException( "HTM003 State error: document ended before end of document element." );
  -        _current = null;
  -	_done = true;
  -    }
  -
  -
  -    public synchronized void startElement( String tagName, AttributeList attrList )
  -        throws SAXException
  -    {
  -        ElementImpl elem;
  -        int         i;
  -        
  -	if ( tagName == null )
  -	    throw new SAXException( "HTM004 Argument 'tagName' is null." );
  -
  -	// If this is the root element, this is the time to create a new document,
  -	// because only know we know the document element name and namespace URI.
  -	if ( _document == null )
  -	{
  -	    // No need to create the element explicitly.
  -	    _document = new HTMLDocumentImpl();
  -	    elem = (ElementImpl) _document.getDocumentElement();
  -	    _current = elem;
  -	    if ( _current == null )
  -		throw new SAXException( "HTM005 State error: Document.getDocumentElement returns null." );
  -
  -	    // Insert nodes (comment and PI) that appear before the root element.
  -	    if ( _preRootNodes != null )
  -	    {
  -		for ( i = _preRootNodes.size() ; i-- > 0 ; )
  -		    _document.insertBefore( (Node) _preRootNodes.elementAt( i ), elem );
  -		_preRootNodes = null;
  -	    }
  -	     
  -	}
  -	else
  -	{
  -	    // This is a state error, indicates that document has been parsed in full,
  -	    // or that there are two root elements.
  -	    if ( _current == null )
  -		throw new SAXException( "HTM006 State error: startElement called after end of document element." );
  -	    elem = (ElementImpl) _document.createElement( tagName );
  -	    _current.appendChild( elem );
  -	    _current = elem;
  -	}
  -
  -	// Add the attributes (specified and not-specified) to this element.
  -        if ( attrList != null )
  -        {
  -            for ( i = 0 ; i < attrList.getLength() ; ++ i )
  -                elem.setAttribute( attrList.getName( i ), attrList.getValue( i ) );
  -        }
  -    }
  -
  -    
  -    public void endElement( String tagName )
  -        throws SAXException
  -    {
  -
  -        if ( _current == null )
  -            throw new SAXException( "HTM007 State error: endElement called with no current node." );
  -	if ( ! _current.getNodeName().equals( tagName ) )
  -	    throw new SAXException( "HTM008 State error: mismatch in closing tag name " + tagName + "\n" + tagName);
  -
  -	// Move up to the parent element. When you reach the top (closing the root element).
  -	// the parent is document and current is null.
  -	if ( _current.getParentNode() == _current.getOwnerDocument() )
  -	    _current = null;
  -	else
  -	    _current = (ElementImpl) _current.getParentNode();
  -    }
  -
  -
  -    public void characters( String text )
  -        throws SAXException
  -    {
  -	if ( _current == null )
  -            throw new SAXException( "HTM009 State error: character data found outside of root element." );
  -	_current.appendChild( new TextImpl( _document, text ) );
  -    }
  -
  -    
  -    public void characters( char[] text, int start, int length )
  -        throws SAXException
  -    {
  -	if ( _current == null )
  -            throw new SAXException( "HTM010 State error: character data found outside of root element." );
  -	_current.appendChild( new TextImpl( _document, new String( text, start, length ) ) );
  -    }
  -    
  -    
  -    public void ignorableWhitespace( char[] text, int start, int length )
  -        throws SAXException
  -    {
  -        Node    node;
  -        
  -        if ( ! _ignoreWhitespace )
  -	    _current.appendChild( new TextImpl( _document, new String( text, start, length ) ) );
  -     }
  -    
  -    
  -    public void processingInstruction( String target, String instruction )
  -        throws SAXException
  -    {
  -        Node    node;
  -        
  -	// Processing instruction may appear before the document element (in fact, before the
  -	// document has been created, or after the document element has been closed.
  -        if ( _current == null && _document == null )
  -	{
  -	    if ( _preRootNodes == null )
  -		_preRootNodes = new Vector();
  -	    _preRootNodes.addElement( new ProcessingInstructionImpl( null, target, instruction ) );
  -	}
  -	else
  -        if ( _current == null && _document != null )
  -	    _document.appendChild( new ProcessingInstructionImpl( _document, target, instruction ) );
  -	else
  -	    _current.appendChild( new ProcessingInstructionImpl( _document, target, instruction ) );
  -    }
  -    
  -    
  -    public HTMLDocument getHTMLDocument()
  -    {
  -        return (HTMLDocument) _document;
  -    }
  -
  -    
  -    public void setDocumentLocator( Locator locator )
  -    {
  -        _locator = locator;
  -    }
  -
  -
  -}
  +package org.apache.html.dom;
  +
  +
  +import java.util.Vector;
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +import org.xml.sax.*;
  +import org.apache.xerces.dom.TextImpl;
  +import org.apache.xerces.dom.ElementImpl;
  +import org.apache.xerces.dom.ProcessingInstructionImpl;
  +
  +
  +/**
  + * This is a SAX document handler that is used to build an HTML document.
  + * It can build a document from any SAX parser, but is specifically tuned
  + * for working with the OpenXML HTML parser.
  + * 
  + * 
  + * @version $Revision: 1.4 $ $Date: 2000/12/21 00:33:38 $
  + * @author <a href="mailto:arkin@openxml.org">Assaf Arkin</a>
  + */
  +public class HTMLBuilder
  +    implements DocumentHandler
  +{
  +
  +
  +    /**
  +     * The document that is being built.
  +     */
  +    protected HTMLDocumentImpl    _document;
  +    
  +    
  +    /**
  +     * The current node in the document into which elements, text and
  +     * other nodes will be inserted. This starts as the document iself
  +     * and reflects each element that is currently being parsed.
  +     */
  +    protected ElementImpl        _current;
  +    
  +    /**
  +     * A reference to the current locator, this is generally the parser
  +     * itself. The locator is used to locate errors and identify the
  +     * source locations of elements.
  +     */
  +    private Locator         _locator;
  +
  +
  +    /**
  +     * Applies only to whitespace appearing between element tags in element content,
  +     * as per the SAX definition, and true by default.
  +     */
  +    private boolean         _ignoreWhitespace = true;
  +
  +
  +    /**
  +     * Indicates whether finished building a document. If so, can start building
  +     * another document. Must be initially true to get the first document processed.
  +     */
  +    private boolean         _done = true;
  +
  +
  +    /**    
  +     * The document is only created the same time as the document element, however, certain
  +     * nodes may precede the document element (comment and PI), and they are accumulated
  +     * in this vector.
  +     */
  +    protected Vector         _preRootNodes;
  +
  +    
  +    public void startDocument()
  +        throws SAXException
  +    {
  +        if ( ! _done )
  +	    throw new SAXException( "HTM001 State error: startDocument fired twice on one builder." );
  +	_document = null;
  +	_done = false;
  +    }
  +
  +
  +    public void endDocument()
  +        throws SAXException
  +    {
  +        if ( _document == null )
  +            throw new SAXException( "HTM002 State error: document never started or missing document element." );
  +	if ( _current != null )
  +	    throw new SAXException( "HTM003 State error: document ended before end of document element." );
  +        _current = null;
  +	_done = true;
  +    }
  +
  +
  +    public synchronized void startElement( String tagName, AttributeList attrList )
  +        throws SAXException
  +    {
  +        ElementImpl elem;
  +        int         i;
  +        
  +	if ( tagName == null )
  +	    throw new SAXException( "HTM004 Argument 'tagName' is null." );
  +
  +	// If this is the root element, this is the time to create a new document,
  +	// because only know we know the document element name and namespace URI.
  +	if ( _document == null )
  +	{
  +	    // No need to create the element explicitly.
  +	    _document = new HTMLDocumentImpl();
  +	    elem = (ElementImpl) _document.getDocumentElement();
  +	    _current = elem;
  +	    if ( _current == null )
  +		throw new SAXException( "HTM005 State error: Document.getDocumentElement returns null." );
  +
  +	    // Insert nodes (comment and PI) that appear before the root element.
  +	    if ( _preRootNodes != null )
  +	    {
  +		for ( i = _preRootNodes.size() ; i-- > 0 ; )
  +		    _document.insertBefore( (Node) _preRootNodes.elementAt( i ), elem );
  +		_preRootNodes = null;
  +	    }
  +	     
  +	}
  +	else
  +	{
  +	    // This is a state error, indicates that document has been parsed in full,
  +	    // or that there are two root elements.
  +	    if ( _current == null )
  +		throw new SAXException( "HTM006 State error: startElement called after end of document element." );
  +	    elem = (ElementImpl) _document.createElement( tagName );
  +	    _current.appendChild( elem );
  +	    _current = elem;
  +	}
  +
  +	// Add the attributes (specified and not-specified) to this element.
  +        if ( attrList != null )
  +        {
  +            for ( i = 0 ; i < attrList.getLength() ; ++ i )
  +                elem.setAttribute( attrList.getName( i ), attrList.getValue( i ) );
  +        }
  +    }
  +
  +    
  +    public void endElement( String tagName )
  +        throws SAXException
  +    {
  +
  +        if ( _current == null )
  +            throw new SAXException( "HTM007 State error: endElement called with no current node." );
  +	if ( ! _current.getNodeName().equals( tagName ) )
  +	    throw new SAXException( "HTM008 State error: mismatch in closing tag name " + tagName + "\n" + tagName);
  +
  +	// Move up to the parent element. When you reach the top (closing the root element).
  +	// the parent is document and current is null.
  +	if ( _current.getParentNode() == _current.getOwnerDocument() )
  +	    _current = null;
  +	else
  +	    _current = (ElementImpl) _current.getParentNode();
  +    }
  +
  +
  +    public void characters( String text )
  +        throws SAXException
  +    {
  +	if ( _current == null )
  +            throw new SAXException( "HTM009 State error: character data found outside of root element." );
  +	_current.appendChild( new TextImpl( _document, text ) );
  +    }
  +
  +    
  +    public void characters( char[] text, int start, int length )
  +        throws SAXException
  +    {
  +	if ( _current == null )
  +            throw new SAXException( "HTM010 State error: character data found outside of root element." );
  +	_current.appendChild( new TextImpl( _document, new String( text, start, length ) ) );
  +    }
  +    
  +    
  +    public void ignorableWhitespace( char[] text, int start, int length )
  +        throws SAXException
  +    {
  +        Node    node;
  +        
  +        if ( ! _ignoreWhitespace )
  +	    _current.appendChild( new TextImpl( _document, new String( text, start, length ) ) );
  +     }
  +    
  +    
  +    public void processingInstruction( String target, String instruction )
  +        throws SAXException
  +    {
  +        Node    node;
  +        
  +	// Processing instruction may appear before the document element (in fact, before the
  +	// document has been created, or after the document element has been closed.
  +        if ( _current == null && _document == null )
  +	{
  +	    if ( _preRootNodes == null )
  +		_preRootNodes = new Vector();
  +	    _preRootNodes.addElement( new ProcessingInstructionImpl( null, target, instruction ) );
  +	}
  +	else
  +        if ( _current == null && _document != null )
  +	    _document.appendChild( new ProcessingInstructionImpl( _document, target, instruction ) );
  +	else
  +	    _current.appendChild( new ProcessingInstructionImpl( _document, target, instruction ) );
  +    }
  +    
  +    
  +    public HTMLDocument getHTMLDocument()
  +    {
  +        return (HTMLDocument) _document;
  +    }
  +
  +    
  +    public void setDocumentLocator( Locator locator )
  +    {
  +        _locator = locator;
  +    }
  +
  +
  +}
  
  
  
  1.3       +114 -114  xml-xerces/java/src/org/apache/html/dom/HTMLButtonElementImpl.java
  
  Index: HTMLButtonElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLButtonElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLButtonElementImpl.java	2000/02/10 04:00:09	1.2
  +++ HTMLButtonElementImpl.java	2000/12/21 00:33:38	1.3
  @@ -54,117 +54,117 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:09 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLButtonElement
  - * @see ElementImpl
  - */
  -public final class HTMLButtonElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLButtonElement, HTMLFormControl
  -{
  -
  -    
  -      public String getAccessKey()
  -    {
  -        String    accessKey;
  -        
  -        // Make sure that the access key is a single character.
  -        accessKey = getAttribute( "accesskey" );
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        return accessKey;
  -    }
  -    
  -    
  -    public void setAccessKey( String accessKey )
  -    {
  -        // Make sure that the access key is a single character.
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        setAttribute( "accesskey", accessKey );
  -    }
  -
  -    
  -    public boolean getDisabled()
  -    {
  -        return getBinary( "disabled" );
  -    }
  -    
  -    
  -    public void setDisabled( boolean disabled )
  -    {
  -        setAttribute( "disabled", disabled );
  -    }
  -
  -
  -    public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -
  -    
  -    public int getTabIndex()
  -    {
  -        try
  -        {
  -            return Integer.parseInt( getAttribute( "tabindex" ) );
  -        }
  -        catch ( NumberFormatException except )
  -        {
  -            return 0;
  -        }
  -    }
  -    
  -    
  -    public void setTabIndex( int tabIndex )
  -    {
  -        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  -    }
  -
  -    
  -    public String getType()
  -    {
  -        return capitalize( getAttribute( "type" ) );
  -    }
  -
  -    
  -      public String getValue()
  -    {
  -        return getAttribute( "value" );
  -    }
  -    
  -    
  -    public void setValue( String value )
  -    {
  -        setAttribute( "value", value );
  -    }
  -    
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLButtonElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -  
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:38 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLButtonElement
  + * @see ElementImpl
  + */
  +public final class HTMLButtonElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLButtonElement, HTMLFormControl
  +{
  +
  +    
  +      public String getAccessKey()
  +    {
  +        String    accessKey;
  +        
  +        // Make sure that the access key is a single character.
  +        accessKey = getAttribute( "accesskey" );
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        return accessKey;
  +    }
  +    
  +    
  +    public void setAccessKey( String accessKey )
  +    {
  +        // Make sure that the access key is a single character.
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        setAttribute( "accesskey", accessKey );
  +    }
  +
  +    
  +    public boolean getDisabled()
  +    {
  +        return getBinary( "disabled" );
  +    }
  +    
  +    
  +    public void setDisabled( boolean disabled )
  +    {
  +        setAttribute( "disabled", disabled );
  +    }
  +
  +
  +    public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +
  +    
  +    public int getTabIndex()
  +    {
  +        try
  +        {
  +            return Integer.parseInt( getAttribute( "tabindex" ) );
  +        }
  +        catch ( NumberFormatException except )
  +        {
  +            return 0;
  +        }
  +    }
  +    
  +    
  +    public void setTabIndex( int tabIndex )
  +    {
  +        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  +    }
  +
  +    
  +    public String getType()
  +    {
  +        return capitalize( getAttribute( "type" ) );
  +    }
  +
  +    
  +      public String getValue()
  +    {
  +        return getAttribute( "value" );
  +    }
  +    
  +    
  +    public void setValue( String value )
  +    {
  +        setAttribute( "value", value );
  +    }
  +    
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLButtonElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +  
  +  
  +}
  +
  
  
  
  1.5       +504 -504  xml-xerces/java/src/org/apache/html/dom/HTMLCollectionImpl.java
  
  Index: HTMLCollectionImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLCollectionImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HTMLCollectionImpl.java	2000/02/16 00:45:44	1.4
  +++ HTMLCollectionImpl.java	2000/12/21 00:33:39	1.5
  @@ -54,507 +54,507 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * Implements {@link org.w3c.dom.html.HTMLCollection} to traverse any named
  - * elements on a {@link org.w3c.dom.html.HTMLDocument}. The elements type to
  - * look for is identified in the constructor by code. This collection is not
  - * optimized for traversing large trees.
  - * <p>
  - * The collection has to meet two requirements: it has to be live, and it has
  - * to traverse depth first and always return results in that order. As such,
  - * using an object container (such as {@link java.util.Vector}) is expensive on
  - * insert/remove operations. Instead, the collection has been implemented using
  - * three traversing functions. As a result, operations on large documents will
  - * result in traversal of the entire document tree and consume a considerable
  - * amount of time.
  - * <p>
  - * Note that synchronization on the traversed document cannot be achieved.
  - * The document itself cannot be locked, and locking each traversed node is
  - * likely to lead to a dead lock condition. Therefore, there is a chance of the
  - * document being changed as results are fetched; in all likelihood, the results
  - * might be out dated, but not erroneous.
  - * 
  - * 
  - * @version $Revision: 1.4 $ $Date: 2000/02/16 00:45:44 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLCollection
  - */
  -final class HTMLCollectionImpl
  -    implements HTMLCollection
  -{
  -    
  -
  -    /**
  -     * Request collection of all anchors in document: &lt;A&gt; elements that
  -     * have a <code>name</code> attribute.
  -     */
  -    static final short        ANCHOR = 1;
  -    
  -    
  -    /**
  -     * Request collection of all forms in document: &lt;FORM&gt; elements.
  -     */
  -    static final short        FORM = 2;
  -    
  -    
  -    /**
  -     * Request collection of all images in document: &lt;IMAGE&gt; elements.
  -     */
  -    static final short        IMAGE = 3;
  -    
  -    
  -    /**
  -     * Request collection of all Applets in document: &lt;APPLET&gt; and
  -     * &lt;OBJECT&gt; elements (&lt;OBJECT&gt; must contain an Applet).
  -     */
  -    static final short        APPLET = 4;
  -    
  -    
  -    /**
  -     * Request collection of all links in document: &lt;A&gt; and &lt;AREA&gt;
  -     * elements (must have a <code>href</code> attribute).
  -     */
  -    static final short        LINK = 5;
  -    
  -    
  -    /**
  -     * Request collection of all options in selection: &lt;OPTION&gt; elments in
  -     * &lt;SELECT&gt; or &lt;OPTGROUP&gt;.
  -     */
  -    static final short        OPTION = 6;
  -    
  -    
  -    /**
  -     * Request collection of all rows in table: &lt;TR&gt; elements in table or
  -     * table section.
  -     */
  -    static final short        ROW = 7;
  -
  -    
  -    /**
  -     * Request collection of all form elements: &lt;INPUT&gt;, &lt;BUTTON&gt;,
  -     * &lt;SELECT&gt;, &lt;TEXT&gt; and &lt;TEXTAREA&gt; elements inside form
  -     * &lt;FORM&gt;.
  -     */
  -    static final short        ELEMENT = 8;
  -    
  -    
  -    /**
  -     * Request collection of all areas in map: &lt;AREA&gt; element in &lt;MAP&gt;
  -     * (non recursive).
  -     */
  -    static final short        AREA = -1;
  -    
  -
  -    /**
  -     * Request collection of all table bodies in table: &lt;TBODY&gt; element in
  -     * table &lt;TABLE&gt; (non recursive).
  -     */
  -    static final short        TBODY = -2;
  -
  -    
  -    /**
  -     * Request collection of all cells in row: &lt;TD&gt; elements in &lt;TR&gt;
  -     * (non recursive).
  -     */
  -    static final short        CELL = -3;
  -
  -    
  -    /**
  -     * Indicates what this collection is looking for. Holds one of the enumerated
  -     * values and used by {@link #collectionMatch}. Set by the constructor and
  -     * determine the collection's use for its life time.
  -     */
  -    private short            _lookingFor;
  -    
  -    
  -    /**
  -     * This is the top level element underneath which the collection exists.
  -     */
  -    private Element            _topLevel;
  -
  -
  -    /**
  -     * Construct a new collection that retrieves element of the specific type
  -     * (<code>lookingFor</code>) from the specific document portion
  -     * (<code>topLevel</code>).
  -     * 
  -     * @param topLevel The element underneath which the collection exists
  -     * @param lookingFor Code indicating what elements to look for
  -     */
  -    HTMLCollectionImpl( HTMLElement topLevel, short lookingFor )
  -    {
  -        if ( topLevel == null )
  -            throw new NullPointerException( "HTM011 Argument 'topLevel' is null." );
  -        _topLevel = topLevel;
  -       _lookingFor = lookingFor;
  -    }
  -  
  -  
  -    /**
  -     * Returns the length of the collection. This method might traverse the
  -     * entire document tree.
  -     * 
  -     * @return Length of the collection
  -     */
  -    public final int getLength()
  -    {
  -        // Call recursive function on top-level element.
  -        return getLength( _topLevel );
  -    }
  -
  -
  -    /**
  -     * Retrieves the indexed node from the collection. Nodes are numbered in
  -     * tree order - depth-first traversal order. This method might traverse
  -     * the entire document tree.
  -     * 
  -     * @param index The index of the node to return
  -     * @return The specified node or null if no such node found
  -     */
  -    public final Node item( int index )
  -    {
  -        if ( index < 0 )
  -            throw new IllegalArgumentException( "HTM012 Argument 'index' is negative." );
  -        // Call recursive function on top-level element.
  -        return item( _topLevel, new CollectionIndex( index ) );
  -    }
  -    
  -    
  -    /**
  -     * Retrieves the named node from the collection. The name is matched case
  -     * sensitive against the <TT>id</TT> attribute of each element in the
  -     * collection, returning the first match. The tree is traversed in
  -     * depth-first order. This method might traverse the entire document tree.
  -     * 
  -     * @param name The name of the node to return
  -     * @return The specified node or null if no such node found
  -     */
  -    public final Node namedItem( String name )
  -    {
  -        if ( name == null )
  -            throw new NullPointerException( "HTM013 Argument 'name' is null." );
  -        // Call recursive function on top-level element.
  -        return namedItem( _topLevel, name );
  -    }
  -    
  -    
  -    /**
  -     * Recursive function returns the number of elements of a particular type
  -     * that exist under the top level element. This is a recursive function
  -     * and the top level element is passed along.
  -     * 
  -     * @param topLevel Top level element from which to scan
  -     * @return Number of elements
  -     */
  -    private int getLength( Element topLevel )
  -    {
  -        int        length;
  -        Node    node;
  -    
  -        synchronized ( topLevel )
  -        {
  -            // Always count from zero and traverse all the childs of the
  -            // current element in the order they appear.
  -            length = 0;
  -            node = topLevel.getFirstChild();
  -            while ( node != null )
  -            {
  -                // If a particular node is an element (could be HTML or XML),
  -		// do two things: if it's the one we're looking for, count
  -		// another matched element; at any rate, traverse it's
  -		// children as well.
  -                if ( node instanceof Element )
  -                {
  -                    if ( collectionMatch( (Element) node, null ) )
  -                        ++ length;
  -                    else if ( recurse() )
  -                        length += getLength( (Element) node );
  -                }
  -                node = node.getNextSibling(); 
  -            }
  -        }
  -        return length;
  -    }
  -    
  -        
  -    /**
  -     * Recursive function returns the numbered element of a particular type
  -     * that exist under the top level element. This is a recursive function
  -     * and the top level element is passed along.
  -     * <p>
  -     * Note that this function must call itself with an index and get back both
  -     * the element (if one was found) and the new index which is decremeneted
  -     * for any like element found. Since integers are only passed by value,
  -     * this function makes use of a separate class ({@link CollectionIndex})
  -     * to hold that index.
  -     * 
  -     * @param topLevel Top level element from which to scan
  -     * @param index The index of the item to retreive
  -     * @return Number of elements
  -     * @see CollectionIndex
  -     */
  -    private Node item( Element topLevel, CollectionIndex index )
  -    {
  -        Node    node;
  -        Node    result;
  -
  -        synchronized ( topLevel )
  -        {
  -            // Traverse all the childs of the current element in the order
  -	    // they appear. Count from the index backwards until you reach
  -	    // matching element with an index of zero. Return that element.
  -            node = topLevel.getFirstChild();
  -            while ( node != null )
  -            {
  -                // If a particular node is an element (could be HTML or XML),
  -		// do two things: if it's the one we're looking for, decrease
  -		// the index and if zero, return this node; at any rate,
  -		// traverse it's children as well.
  -                if ( node instanceof Element )
  -                {
  -                    if ( collectionMatch( (Element) node, null ) )
  -                    {
  -                        if ( index.isZero() )
  -                            return node;
  -                        index.decrement();
  -                    } else if ( recurse() )
  -                    {
  -                        result = item( (Element) node, index );
  -                        if ( result != null )
  -                            return result;
  -                    }
  -                }
  -                node = node.getNextSibling(); 
  -            }
  -        }
  -        return null;
  -    }
  -    
  -    
  -    /**
  -     * Recursive function returns an element of a particular type with the
  -     * specified name (<TT>id</TT> attribute).
  -     * 
  -     * @param topLevel Top level element from which to scan
  -     * @param name The named element to look for
  -     * @return The first named element found
  -     */
  -    private  Node namedItem( Element topLevel, String name )
  -    {
  -        Node    node;
  -        Node    result;
  -
  -        synchronized ( topLevel )
  -        {
  -            // Traverse all the childs of the current element in the order
  -	    // they appear.
  -            node = topLevel.getFirstChild();
  -            while ( node != null )
  -            {
  -                // If a particular node is an element (could be HTML or XML),
  -                // do two things: if it's the one we're looking for, and the
  -		// name (id attribute) attribute is the one we're looking for,
  -		// return this element; otherwise, traverse it's children.
  -                if ( node instanceof Element )
  -                {
  -                    if ( collectionMatch( (Element) node, name ) )
  -                        return node;
  -                    else if ( recurse() )
  -                    {
  -                        result = namedItem( (Element) node, name );
  -                        if ( result != null )
  -                            return result;
  -                    }
  -                }
  -                node = node.getNextSibling(); 
  -            }
  -            return node;
  -        }
  -    }
  -    
  -    
  -    /**
  -     * Returns true if scanning methods should iterate through the collection.
  -     * When looking for elements in the document, recursing is needed to traverse
  -     * the full document tree. When looking inside a specific element (e.g. for a
  -     * cell inside a row), recursing can lead to erroneous results.
  -     * 
  -     * @return True if methods should recurse to traverse entire tree
  -     */
  -    protected boolean recurse()
  -    {
  -        return _lookingFor > 0;
  -    }
  -    
  -
  -    /**
  -     * Determines if current element matches based on what we're looking for.
  -     * The element is passed along with an optional identifier name. If the
  -     * element is the one we're looking for, return true. If the name is also
  -     * specified, the name must match the <code>id</code> attribute
  -     * (match <code>name</code> first for anchors).
  -     * 
  -     * @param elem The current element
  -     * @param name The identifier name or null
  -     * @return The element matches what we're looking for
  -     */
  -    protected boolean collectionMatch( Element elem, String name )
  -    {
  -        boolean    match;
  -        
  -        synchronized ( elem )
  -        {
  -            // Begin with no matching. Depending on what we're looking for,
  -            // attempt to match based on the element type. This is the quickest
  -            // way to match involving only a cast. Do the expensive string
  -            // comparison later on.
  -            match = false;
  -            switch ( _lookingFor )
  -            {
  -            case ANCHOR:
  -                // Anchor is an <A> element with a 'name' attribute. Otherwise, it's
  -                // just a link.
  -                match = ( elem instanceof HTMLAnchorElement ) &&
  -                        elem.getAttribute( "name" ).length() > 0;
  -                break;
  -            case FORM:
  -                // Any <FORM> element.
  -                match = ( elem instanceof HTMLFormElement );
  -                break;
  -            case IMAGE:
  -                // Any <IMG> element. <OBJECT> elements with images are not returned.
  -                match = ( elem instanceof HTMLImageElement );
  -                break;
  -            case APPLET:
  -                // Any <APPLET> element, and any <OBJECT> element which represents an
  -                // Applet. This is determined by 'codetype' attribute being
  -                // 'application/java' or 'classid' attribute starting with 'java:'.
  -                match = ( elem instanceof HTMLAppletElement ) ||
  -                        ( elem instanceof HTMLObjectElement &&
  -                          ( "application/java".equals( elem.getAttribute( "codetype" ) ) ||
  -                            elem.getAttribute( "classid" ).startsWith( "java:" ) ) );
  -                break;
  -            case ELEMENT:
  -                // All form elements implement HTMLFormControl for easy identification.
  -                match = ( elem instanceof HTMLFormControl );
  -                break;
  -            case LINK:
  -                // Any <A> element, and any <AREA> elements with an 'href' attribute.
  -                match = ( ( elem instanceof HTMLAnchorElement ||
  -                            elem instanceof HTMLAreaElement ) &&
  -                          elem.getAttribute( "href" ).length() > 0 );
  -                break;
  -            case AREA:
  -                // Any <AREA> element.
  -                match = ( elem instanceof HTMLAreaElement );
  -                break;
  -            case OPTION:
  -                // Any <OPTION> element.
  -                match = ( elem instanceof HTMLOptionElement );
  -                break;
  -            case ROW:
  -                // Any <TR> element.
  -                match = ( elem instanceof HTMLTableRowElement );
  -                break;
  -            case TBODY:
  -                // Any <TBODY> element (one of three table section types).
  -                match = ( elem instanceof HTMLTableSectionElement &&
  -                          elem.getTagName().equals( "tbody" ) );
  -                break;
  -            case CELL:
  -                // Any <TD> element.
  -                match = ( elem instanceof HTMLTableCellElement );
  -                break;
  -            }
  -        
  -            // If element type was matched and a name was specified, must also match
  -            // the name against either the 'id' or the 'name' attribute. The 'name'
  -            // attribute is relevant only for <A> elements for backward compatibility.
  -            if ( match && name != null )
  -            {
  -                // If an anchor and 'name' attribute matches, return true. Otherwise,
  -                // try 'id' attribute.
  -                if ( elem instanceof HTMLAnchorElement &&
  -                     name.equals( elem.getAttribute( "name" ) ) )
  -                    return true;
  -                match = name.equals( elem.getAttribute( "id" ) );
  -            }
  -        }
  -        return match;
  -    }
  -
  -    
  -}
  -
  -
  -/**
  - * {@link CollectionImpl#item} must traverse down the tree and decrement the
  - * index until it matches an element who's index is zero. Since integers are
  - * passed by value, this class servers to pass the index into each recursion
  - * by reference. It encompasses all the operations that need be performed on
  - * the index, although direct access is possible.
  - * 
  - * @see CollectionImpl#item
  - */
  -class CollectionIndex
  -{
  -    
  -    
  -    /**
  -     * Returns the current index.
  -     * 
  -     * @return Current index
  -     */
  -    int getIndex()
  -    {
  -        return _index;
  -    }
  -    
  -    
  -    /**
  -     * Decrements the index by one.
  -     */
  -    void decrement()
  -    {
  -        -- _index;
  -    }
  -    
  -    
  -    /**
  -     * Returns true if index is zero (or negative).
  -     * 
  -     * @return True if index is zero
  -     */
  -    boolean isZero()
  -    {
  -        return _index <= 0;
  -    }
  -    
  -    
  -    /**
  -     * Constructs a new index with the specified initial value. The index will
  -     * then be decremeneted until it reaches zero.
  -     * 
  -     * @param index The initial value
  -     */
  -    CollectionIndex( int index )
  -    {
  -        _index = index;
  -    }
  -    
  -    
  -    /**
  -     * Holds the actual value that is passed by reference using this class.
  -     */
  -    private int        _index;
  -    
  -
  -}
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * Implements {@link org.w3c.dom.html.HTMLCollection} to traverse any named
  + * elements on a {@link org.w3c.dom.html.HTMLDocument}. The elements type to
  + * look for is identified in the constructor by code. This collection is not
  + * optimized for traversing large trees.
  + * <p>
  + * The collection has to meet two requirements: it has to be live, and it has
  + * to traverse depth first and always return results in that order. As such,
  + * using an object container (such as {@link java.util.Vector}) is expensive on
  + * insert/remove operations. Instead, the collection has been implemented using
  + * three traversing functions. As a result, operations on large documents will
  + * result in traversal of the entire document tree and consume a considerable
  + * amount of time.
  + * <p>
  + * Note that synchronization on the traversed document cannot be achieved.
  + * The document itself cannot be locked, and locking each traversed node is
  + * likely to lead to a dead lock condition. Therefore, there is a chance of the
  + * document being changed as results are fetched; in all likelihood, the results
  + * might be out dated, but not erroneous.
  + * 
  + * 
  + * @version $Revision: 1.5 $ $Date: 2000/12/21 00:33:39 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLCollection
  + */
  +final class HTMLCollectionImpl
  +    implements HTMLCollection
  +{
  +    
  +
  +    /**
  +     * Request collection of all anchors in document: &lt;A&gt; elements that
  +     * have a <code>name</code> attribute.
  +     */
  +    static final short        ANCHOR = 1;
  +    
  +    
  +    /**
  +     * Request collection of all forms in document: &lt;FORM&gt; elements.
  +     */
  +    static final short        FORM = 2;
  +    
  +    
  +    /**
  +     * Request collection of all images in document: &lt;IMAGE&gt; elements.
  +     */
  +    static final short        IMAGE = 3;
  +    
  +    
  +    /**
  +     * Request collection of all Applets in document: &lt;APPLET&gt; and
  +     * &lt;OBJECT&gt; elements (&lt;OBJECT&gt; must contain an Applet).
  +     */
  +    static final short        APPLET = 4;
  +    
  +    
  +    /**
  +     * Request collection of all links in document: &lt;A&gt; and &lt;AREA&gt;
  +     * elements (must have a <code>href</code> attribute).
  +     */
  +    static final short        LINK = 5;
  +    
  +    
  +    /**
  +     * Request collection of all options in selection: &lt;OPTION&gt; elments in
  +     * &lt;SELECT&gt; or &lt;OPTGROUP&gt;.
  +     */
  +    static final short        OPTION = 6;
  +    
  +    
  +    /**
  +     * Request collection of all rows in table: &lt;TR&gt; elements in table or
  +     * table section.
  +     */
  +    static final short        ROW = 7;
  +
  +    
  +    /**
  +     * Request collection of all form elements: &lt;INPUT&gt;, &lt;BUTTON&gt;,
  +     * &lt;SELECT&gt;, &lt;TEXT&gt; and &lt;TEXTAREA&gt; elements inside form
  +     * &lt;FORM&gt;.
  +     */
  +    static final short        ELEMENT = 8;
  +    
  +    
  +    /**
  +     * Request collection of all areas in map: &lt;AREA&gt; element in &lt;MAP&gt;
  +     * (non recursive).
  +     */
  +    static final short        AREA = -1;
  +    
  +
  +    /**
  +     * Request collection of all table bodies in table: &lt;TBODY&gt; element in
  +     * table &lt;TABLE&gt; (non recursive).
  +     */
  +    static final short        TBODY = -2;
  +
  +    
  +    /**
  +     * Request collection of all cells in row: &lt;TD&gt; elements in &lt;TR&gt;
  +     * (non recursive).
  +     */
  +    static final short        CELL = -3;
  +
  +    
  +    /**
  +     * Indicates what this collection is looking for. Holds one of the enumerated
  +     * values and used by {@link #collectionMatch}. Set by the constructor and
  +     * determine the collection's use for its life time.
  +     */
  +    private short            _lookingFor;
  +    
  +    
  +    /**
  +     * This is the top level element underneath which the collection exists.
  +     */
  +    private Element            _topLevel;
  +
  +
  +    /**
  +     * Construct a new collection that retrieves element of the specific type
  +     * (<code>lookingFor</code>) from the specific document portion
  +     * (<code>topLevel</code>).
  +     * 
  +     * @param topLevel The element underneath which the collection exists
  +     * @param lookingFor Code indicating what elements to look for
  +     */
  +    HTMLCollectionImpl( HTMLElement topLevel, short lookingFor )
  +    {
  +        if ( topLevel == null )
  +            throw new NullPointerException( "HTM011 Argument 'topLevel' is null." );
  +        _topLevel = topLevel;
  +       _lookingFor = lookingFor;
  +    }
  +  
  +  
  +    /**
  +     * Returns the length of the collection. This method might traverse the
  +     * entire document tree.
  +     * 
  +     * @return Length of the collection
  +     */
  +    public final int getLength()
  +    {
  +        // Call recursive function on top-level element.
  +        return getLength( _topLevel );
  +    }
  +
  +
  +    /**
  +     * Retrieves the indexed node from the collection. Nodes are numbered in
  +     * tree order - depth-first traversal order. This method might traverse
  +     * the entire document tree.
  +     * 
  +     * @param index The index of the node to return
  +     * @return The specified node or null if no such node found
  +     */
  +    public final Node item( int index )
  +    {
  +        if ( index < 0 )
  +            throw new IllegalArgumentException( "HTM012 Argument 'index' is negative." );
  +        // Call recursive function on top-level element.
  +        return item( _topLevel, new CollectionIndex( index ) );
  +    }
  +    
  +    
  +    /**
  +     * Retrieves the named node from the collection. The name is matched case
  +     * sensitive against the <TT>id</TT> attribute of each element in the
  +     * collection, returning the first match. The tree is traversed in
  +     * depth-first order. This method might traverse the entire document tree.
  +     * 
  +     * @param name The name of the node to return
  +     * @return The specified node or null if no such node found
  +     */
  +    public final Node namedItem( String name )
  +    {
  +        if ( name == null )
  +            throw new NullPointerException( "HTM013 Argument 'name' is null." );
  +        // Call recursive function on top-level element.
  +        return namedItem( _topLevel, name );
  +    }
  +    
  +    
  +    /**
  +     * Recursive function returns the number of elements of a particular type
  +     * that exist under the top level element. This is a recursive function
  +     * and the top level element is passed along.
  +     * 
  +     * @param topLevel Top level element from which to scan
  +     * @return Number of elements
  +     */
  +    private int getLength( Element topLevel )
  +    {
  +        int        length;
  +        Node    node;
  +    
  +        synchronized ( topLevel )
  +        {
  +            // Always count from zero and traverse all the childs of the
  +            // current element in the order they appear.
  +            length = 0;
  +            node = topLevel.getFirstChild();
  +            while ( node != null )
  +            {
  +                // If a particular node is an element (could be HTML or XML),
  +		// do two things: if it's the one we're looking for, count
  +		// another matched element; at any rate, traverse it's
  +		// children as well.
  +                if ( node instanceof Element )
  +                {
  +                    if ( collectionMatch( (Element) node, null ) )
  +                        ++ length;
  +                    else if ( recurse() )
  +                        length += getLength( (Element) node );
  +                }
  +                node = node.getNextSibling(); 
  +            }
  +        }
  +        return length;
  +    }
  +    
  +        
  +    /**
  +     * Recursive function returns the numbered element of a particular type
  +     * that exist under the top level element. This is a recursive function
  +     * and the top level element is passed along.
  +     * <p>
  +     * Note that this function must call itself with an index and get back both
  +     * the element (if one was found) and the new index which is decremeneted
  +     * for any like element found. Since integers are only passed by value,
  +     * this function makes use of a separate class ({@link CollectionIndex})
  +     * to hold that index.
  +     * 
  +     * @param topLevel Top level element from which to scan
  +     * @param index The index of the item to retreive
  +     * @return Number of elements
  +     * @see CollectionIndex
  +     */
  +    private Node item( Element topLevel, CollectionIndex index )
  +    {
  +        Node    node;
  +        Node    result;
  +
  +        synchronized ( topLevel )
  +        {
  +            // Traverse all the childs of the current element in the order
  +	    // they appear. Count from the index backwards until you reach
  +	    // matching element with an index of zero. Return that element.
  +            node = topLevel.getFirstChild();
  +            while ( node != null )
  +            {
  +                // If a particular node is an element (could be HTML or XML),
  +		// do two things: if it's the one we're looking for, decrease
  +		// the index and if zero, return this node; at any rate,
  +		// traverse it's children as well.
  +                if ( node instanceof Element )
  +                {
  +                    if ( collectionMatch( (Element) node, null ) )
  +                    {
  +                        if ( index.isZero() )
  +                            return node;
  +                        index.decrement();
  +                    } else if ( recurse() )
  +                    {
  +                        result = item( (Element) node, index );
  +                        if ( result != null )
  +                            return result;
  +                    }
  +                }
  +                node = node.getNextSibling(); 
  +            }
  +        }
  +        return null;
  +    }
  +    
  +    
  +    /**
  +     * Recursive function returns an element of a particular type with the
  +     * specified name (<TT>id</TT> attribute).
  +     * 
  +     * @param topLevel Top level element from which to scan
  +     * @param name The named element to look for
  +     * @return The first named element found
  +     */
  +    private  Node namedItem( Element topLevel, String name )
  +    {
  +        Node    node;
  +        Node    result;
  +
  +        synchronized ( topLevel )
  +        {
  +            // Traverse all the childs of the current element in the order
  +	    // they appear.
  +            node = topLevel.getFirstChild();
  +            while ( node != null )
  +            {
  +                // If a particular node is an element (could be HTML or XML),
  +                // do two things: if it's the one we're looking for, and the
  +		// name (id attribute) attribute is the one we're looking for,
  +		// return this element; otherwise, traverse it's children.
  +                if ( node instanceof Element )
  +                {
  +                    if ( collectionMatch( (Element) node, name ) )
  +                        return node;
  +                    else if ( recurse() )
  +                    {
  +                        result = namedItem( (Element) node, name );
  +                        if ( result != null )
  +                            return result;
  +                    }
  +                }
  +                node = node.getNextSibling(); 
  +            }
  +            return node;
  +        }
  +    }
  +    
  +    
  +    /**
  +     * Returns true if scanning methods should iterate through the collection.
  +     * When looking for elements in the document, recursing is needed to traverse
  +     * the full document tree. When looking inside a specific element (e.g. for a
  +     * cell inside a row), recursing can lead to erroneous results.
  +     * 
  +     * @return True if methods should recurse to traverse entire tree
  +     */
  +    protected boolean recurse()
  +    {
  +        return _lookingFor > 0;
  +    }
  +    
  +
  +    /**
  +     * Determines if current element matches based on what we're looking for.
  +     * The element is passed along with an optional identifier name. If the
  +     * element is the one we're looking for, return true. If the name is also
  +     * specified, the name must match the <code>id</code> attribute
  +     * (match <code>name</code> first for anchors).
  +     * 
  +     * @param elem The current element
  +     * @param name The identifier name or null
  +     * @return The element matches what we're looking for
  +     */
  +    protected boolean collectionMatch( Element elem, String name )
  +    {
  +        boolean    match;
  +        
  +        synchronized ( elem )
  +        {
  +            // Begin with no matching. Depending on what we're looking for,
  +            // attempt to match based on the element type. This is the quickest
  +            // way to match involving only a cast. Do the expensive string
  +            // comparison later on.
  +            match = false;
  +            switch ( _lookingFor )
  +            {
  +            case ANCHOR:
  +                // Anchor is an <A> element with a 'name' attribute. Otherwise, it's
  +                // just a link.
  +                match = ( elem instanceof HTMLAnchorElement ) &&
  +                        elem.getAttribute( "name" ).length() > 0;
  +                break;
  +            case FORM:
  +                // Any <FORM> element.
  +                match = ( elem instanceof HTMLFormElement );
  +                break;
  +            case IMAGE:
  +                // Any <IMG> element. <OBJECT> elements with images are not returned.
  +                match = ( elem instanceof HTMLImageElement );
  +                break;
  +            case APPLET:
  +                // Any <APPLET> element, and any <OBJECT> element which represents an
  +                // Applet. This is determined by 'codetype' attribute being
  +                // 'application/java' or 'classid' attribute starting with 'java:'.
  +                match = ( elem instanceof HTMLAppletElement ) ||
  +                        ( elem instanceof HTMLObjectElement &&
  +                          ( "application/java".equals( elem.getAttribute( "codetype" ) ) ||
  +                            elem.getAttribute( "classid" ).startsWith( "java:" ) ) );
  +                break;
  +            case ELEMENT:
  +                // All form elements implement HTMLFormControl for easy identification.
  +                match = ( elem instanceof HTMLFormControl );
  +                break;
  +            case LINK:
  +                // Any <A> element, and any <AREA> elements with an 'href' attribute.
  +                match = ( ( elem instanceof HTMLAnchorElement ||
  +                            elem instanceof HTMLAreaElement ) &&
  +                          elem.getAttribute( "href" ).length() > 0 );
  +                break;
  +            case AREA:
  +                // Any <AREA> element.
  +                match = ( elem instanceof HTMLAreaElement );
  +                break;
  +            case OPTION:
  +                // Any <OPTION> element.
  +                match = ( elem instanceof HTMLOptionElement );
  +                break;
  +            case ROW:
  +                // Any <TR> element.
  +                match = ( elem instanceof HTMLTableRowElement );
  +                break;
  +            case TBODY:
  +                // Any <TBODY> element (one of three table section types).
  +                match = ( elem instanceof HTMLTableSectionElement &&
  +                          elem.getTagName().equals( "tbody" ) );
  +                break;
  +            case CELL:
  +                // Any <TD> element.
  +                match = ( elem instanceof HTMLTableCellElement );
  +                break;
  +            }
  +        
  +            // If element type was matched and a name was specified, must also match
  +            // the name against either the 'id' or the 'name' attribute. The 'name'
  +            // attribute is relevant only for <A> elements for backward compatibility.
  +            if ( match && name != null )
  +            {
  +                // If an anchor and 'name' attribute matches, return true. Otherwise,
  +                // try 'id' attribute.
  +                if ( elem instanceof HTMLAnchorElement &&
  +                     name.equals( elem.getAttribute( "name" ) ) )
  +                    return true;
  +                match = name.equals( elem.getAttribute( "id" ) );
  +            }
  +        }
  +        return match;
  +    }
  +
  +    
  +}
  +
  +
  +/**
  + * {@link CollectionImpl#item} must traverse down the tree and decrement the
  + * index until it matches an element who's index is zero. Since integers are
  + * passed by value, this class servers to pass the index into each recursion
  + * by reference. It encompasses all the operations that need be performed on
  + * the index, although direct access is possible.
  + * 
  + * @see CollectionImpl#item
  + */
  +class CollectionIndex
  +{
  +    
  +    
  +    /**
  +     * Returns the current index.
  +     * 
  +     * @return Current index
  +     */
  +    int getIndex()
  +    {
  +        return _index;
  +    }
  +    
  +    
  +    /**
  +     * Decrements the index by one.
  +     */
  +    void decrement()
  +    {
  +        -- _index;
  +    }
  +    
  +    
  +    /**
  +     * Returns true if index is zero (or negative).
  +     * 
  +     * @return True if index is zero
  +     */
  +    boolean isZero()
  +    {
  +        return _index <= 0;
  +    }
  +    
  +    
  +    /**
  +     * Constructs a new index with the specified initial value. The index will
  +     * then be decremeneted until it reaches zero.
  +     * 
  +     * @param index The initial value
  +     */
  +    CollectionIndex( int index )
  +    {
  +        _index = index;
  +    }
  +    
  +    
  +    /**
  +     * Holds the actual value that is passed by reference using this class.
  +     */
  +    private int        _index;
  +    
  +
  +}
  
  
  
  1.3       +44 -44    xml-xerces/java/src/org/apache/html/dom/HTMLDListElementImpl.java
  
  Index: HTMLDListElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLDListElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLDListElementImpl.java	2000/02/10 04:00:09	1.2
  +++ HTMLDListElementImpl.java	2000/12/21 00:33:39	1.3
  @@ -54,47 +54,47 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:09 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLDListElement
  - * @see ElementImpl
  - */
  -public final class HTMLDListElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLDListElement
  -{
  -    
  -    
  -    public boolean getCompact()
  -    {
  -        return getBinary( "compact" );
  -    }
  -    
  -    
  -    public void setCompact( boolean compact )
  -    {
  -        setAttribute( "compact", compact );
  -    }
  -  
  -    
  -      /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLDListElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -    
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:39 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLDListElement
  + * @see ElementImpl
  + */
  +public final class HTMLDListElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLDListElement
  +{
  +    
  +    
  +    public boolean getCompact()
  +    {
  +        return getBinary( "compact" );
  +    }
  +    
  +    
  +    public void setCompact( boolean compact )
  +    {
  +        setAttribute( "compact", compact );
  +    }
  +  
  +    
  +      /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLDListElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +    
  +}
  +
  
  
  
  1.3       +44 -44    xml-xerces/java/src/org/apache/html/dom/HTMLDirectoryElementImpl.java
  
  Index: HTMLDirectoryElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLDirectoryElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLDirectoryElementImpl.java	2000/02/10 04:00:09	1.2
  +++ HTMLDirectoryElementImpl.java	2000/12/21 00:33:39	1.3
  @@ -54,47 +54,47 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:09 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLDirectoryElement
  - * @see ElementImpl
  - */
  -public final class HTMLDirectoryElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLDirectoryElement
  -{
  -    
  -    
  -    public boolean getCompact()
  -    {
  -        return getBinary( "compact" );
  -    }
  -    
  -    
  -    public void setCompact( boolean compact )
  -    {
  -        setAttribute( "compact", compact );
  -    }
  -  
  -
  -      /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLDirectoryElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:39 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLDirectoryElement
  + * @see ElementImpl
  + */
  +public final class HTMLDirectoryElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLDirectoryElement
  +{
  +    
  +    
  +    public boolean getCompact()
  +    {
  +        return getBinary( "compact" );
  +    }
  +    
  +    
  +    public void setCompact( boolean compact )
  +    {
  +        setAttribute( "compact", compact );
  +    }
  +  
  +
  +      /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLDirectoryElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +43 -43    xml-xerces/java/src/org/apache/html/dom/HTMLDivElementImpl.java
  
  Index: HTMLDivElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLDivElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLDivElementImpl.java	2000/02/10 04:00:09	1.2
  +++ HTMLDivElementImpl.java	2000/12/21 00:33:40	1.3
  @@ -54,46 +54,46 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:09 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLDivElement
  - * @see ElementImpl
  - */
  -public final class HTMLDivElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLDivElement
  -{
  -    
  -    
  -    public String getAlign()
  -    {
  -        return capitalize( getAttribute( "align" ) );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -  
  -    
  -      /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLDivElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -    
  -}
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:40 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLDivElement
  + * @see ElementImpl
  + */
  +public final class HTMLDivElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLDivElement
  +{
  +    
  +    
  +    public String getAlign()
  +    {
  +        return capitalize( getAttribute( "align" ) );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +  
  +    
  +      /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLDivElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +    
  +}
  
  
  
  1.4       +284 -284  xml-xerces/java/src/org/apache/html/dom/HTMLElementImpl.java
  
  Index: HTMLElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLElementImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- HTMLElementImpl.java	2000/02/10 04:00:09	1.3
  +++ HTMLElementImpl.java	2000/12/21 00:33:40	1.4
  @@ -54,287 +54,287 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -import org.apache.xerces.dom.ElementImpl;
  -
  -
  -/**
  - * Implements an HTML-specific element, an {@link org.w3c.dom.Element} that
  - * will only appear inside HTML documents. This element extends {@link
  - * org.apache.xerces.dom.ElementImpl} by adding methods for directly
  - * manipulating HTML-specific attributes. All HTML elements gain access to
  - * the <code>id</code>, <code>title</code>, <code>lang</code>,
  - * <code>dir</code> and <code>class</code> attributes. Other elements
  - * add their own specific attributes.
  - * 
  - * 
  - * @version $Revision: 1.3 $ $Date: 2000/02/10 04:00:09 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLElement
  - */
  -public class HTMLElementImpl
  -    extends ElementImpl
  -    implements HTMLElement
  -{
  -
  -
  -    /**
  -     * Constructor required owner document and element tag name. Will be called
  -     * by the constructor of specific element types but with a known tag name.
  -     * Assures that the owner document is an HTML element.
  -     * 
  -     * @param owner The owner HTML document
  -     * @param tagName The element's tag name
  -     */
  -    HTMLElementImpl( HTMLDocumentImpl owner, String tagName )
  -    {
  -        super( owner, tagName.toUpperCase() );
  -    }
  -    
  -    
  -    public String getId()
  -    {
  -        return getAttribute( "id" );
  -    }
  -    
  -    
  -    public void setId( String id )
  -    {
  -        setAttribute( "id", id );
  -    }
  -    
  -    
  -    public String getTitle()
  -    {
  -        return getAttribute( "title" );
  -    }
  -    
  -    
  -    public void setTitle( String title )
  -    {
  -        setAttribute( "title", title );
  -    }
  -    
  -    
  -    public String getLang()
  -    {
  -        return getAttribute( "lang" );
  -    }
  -    
  -    
  -    public void setLang( String lang )
  -    {
  -        setAttribute( "lang", lang );
  -    }
  -    
  -    
  -    public String getDir()
  -    {
  -        return getAttribute( "dir" );
  -    }
  -    
  -    
  -    public void setDir( String dir )
  -    {
  -        setAttribute( "dir", dir );
  -    }
  -
  -    
  -    public String getClassName()
  -    {
  -        return getAttribute( "class" );
  -    }
  -
  -    
  -    public void setClassName( String className )
  -    {
  -        setAttribute( "class", className );
  -    }
  -    
  -    
  -    /**
  -     * Convenience method used to translate an attribute value into an integer
  -     * value. Returns the integer value or zero if the attribute is not a
  -     * valid numeric string.
  -     * 
  -     * @param value The value of the attribute
  -     * @return The integer value, or zero if not a valid numeric string
  -     */
  -    int getInteger( String value )
  -    {
  -        try
  -        {
  -            return Integer.parseInt( value );
  -        }
  -        catch ( NumberFormatException except )
  -        {
  -            return 0;
  -        }
  -    }
  -    
  -    
  -    /**
  -     * Convenience method used to translate an attribute value into a boolean
  -     * value. If the attribute has an associated value (even an empty string),
  -     * it is set and true is returned. If the attribute does not exist, false
  -     * is returend.
  -     * 
  -     * @param value The value of the attribute
  -     * @return True or false depending on whether the attribute has been set
  -     */
  -    boolean getBinary( String name )
  -    {
  -        return ( getAttributeNode( name ) != null );
  -    }
  -    
  -    
  -    /**
  -     * Convenience method used to set a boolean attribute. If the value is true,
  -     * the attribute is set to an empty string. If the value is false, the attribute
  -     * is removed. HTML 4.0 understands empty strings as set attributes.
  -     * 
  -     * @param name The name of the attribute
  -     * @param value The value of the attribute
  -     */
  -    void setAttribute( String name, boolean value )
  -    {
  -        if ( value )
  -            setAttribute( name, name );
  -        else
  -            removeAttribute( name );
  -    }
  -
  -
  -    public Attr getAttributeNode( String attrName )
  -    {
  -	return super.getAttributeNode( attrName.toLowerCase() );
  -    }
  -
  -
  -    public Attr getAttributeNodeNS( String namespaceURI,
  -				    String localName )
  -    {
  -	if ( namespaceURI != null && namespaceURI.length() > 0 )
  -	    return super.getAttributeNodeNS( namespaceURI, localName );
  -	else
  -	    return super.getAttributeNode( localName.toLowerCase() );
  -    }
  -    
  -    
  -    public String getAttribute( String attrName )
  -    {
  -	return super.getAttribute( attrName.toLowerCase() );
  -    }
  -
  -
  -    public String getAttributeNS( String namespaceURI,
  -				  String localName )
  -    {
  -	if ( namespaceURI != null && namespaceURI.length() > 0 )
  -	    return super.getAttributeNS( namespaceURI, localName );
  -	else
  -	    return super.getAttribute( localName.toLowerCase() );
  -    }
  -
  -
  -    public final NodeList getElementsByTagName( String tagName )
  -    {
  -	return super.getElementsByTagName( tagName.toUpperCase() );
  -    }
  -
  -
  -    public final NodeList getElementsByTagNameNS( String namespaceURI,
  -					          String localName )
  -    {
  -	if ( namespaceURI != null && namespaceURI.length() > 0 )
  -	    return super.getElementsByTagNameNS( namespaceURI, localName.toUpperCase() );
  -	else
  -	    return super.getElementsByTagName( localName.toUpperCase() );
  -    } 
  -
  -
  -    /**
  -     * Convenience method used to capitalize a one-off attribute value before it
  -     * is returned. For example, the align values "LEFT" and "left" will both
  -     * return as "Left".
  -     * 
  -     * @param value The value of the attribute
  -     * @return The capitalized value
  -     */
  -    String capitalize( String value )
  -    {
  -        char[]    chars;
  -        int        i;
  -        
  -        // Convert string to charactares. Convert the first one to upper case,
  -        // the other characters to lower case, and return the converted string.
  -        chars = value.toCharArray();
  -        if ( chars.length > 0 )
  -        {
  -            chars[ 0 ] = Character.toUpperCase( chars[ 0 ] );
  -            for ( i = 1 ; i < chars.length ; ++i )
  -                chars[ i ] = Character.toLowerCase( chars[ i ] );
  -            return String.valueOf( chars );
  -        }
  -        return value;
  -    }
  -    
  -
  -    /**
  -     * Convenience method used to capitalize a one-off attribute value before it
  -     * is returned. For example, the align values "LEFT" and "left" will both
  -     * return as "Left".
  -     * 
  -     * @param name The name of the attribute
  -     * @return The capitalized value
  -     */
  -    String getCapitalized( String name )
  -    {
  -        String    value;
  -        char[]    chars;
  -        int        i;
  -        
  -        value = getAttribute( name );
  -        if ( value != null )
  -        {
  -            // Convert string to charactares. Convert the first one to upper case,
  -            // the other characters to lower case, and return the converted string.
  -            chars = value.toCharArray();
  -            if ( chars.length > 0 )
  -            {
  -                chars[ 0 ] = Character.toUpperCase( chars[ 0 ] );
  -                for ( i = 1 ; i < chars.length ; ++i )
  -                    chars[ i ] = Character.toLowerCase( chars[ i ] );
  -                return String.valueOf( chars );
  -            }
  -        }
  -        return value;
  -    }
  -
  -    
  -    /**
  -     * Convenience method returns the form in which this form element is contained.
  -     * This method is exposed for form elements through the DOM API, but other
  -     * elements have no access to it through the API.
  -     */
  -    public HTMLFormElement getForm()
  -    {
  -        Node    parent;
  -        
  -        parent = getParentNode(); 
  -        while ( parent != null )
  -        {
  -            if ( parent instanceof HTMLFormElement )
  -                return (HTMLFormElement) parent;
  -            parent = parent.getParentNode();
  -        }
  -        return null;
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +import org.apache.xerces.dom.ElementImpl;
  +
  +
  +/**
  + * Implements an HTML-specific element, an {@link org.w3c.dom.Element} that
  + * will only appear inside HTML documents. This element extends {@link
  + * org.apache.xerces.dom.ElementImpl} by adding methods for directly
  + * manipulating HTML-specific attributes. All HTML elements gain access to
  + * the <code>id</code>, <code>title</code>, <code>lang</code>,
  + * <code>dir</code> and <code>class</code> attributes. Other elements
  + * add their own specific attributes.
  + * 
  + * 
  + * @version $Revision: 1.4 $ $Date: 2000/12/21 00:33:40 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLElement
  + */
  +public class HTMLElementImpl
  +    extends ElementImpl
  +    implements HTMLElement
  +{
  +
  +
  +    /**
  +     * Constructor required owner document and element tag name. Will be called
  +     * by the constructor of specific element types but with a known tag name.
  +     * Assures that the owner document is an HTML element.
  +     * 
  +     * @param owner The owner HTML document
  +     * @param tagName The element's tag name
  +     */
  +    HTMLElementImpl( HTMLDocumentImpl owner, String tagName )
  +    {
  +        super( owner, tagName.toUpperCase() );
  +    }
  +    
  +    
  +    public String getId()
  +    {
  +        return getAttribute( "id" );
  +    }
  +    
  +    
  +    public void setId( String id )
  +    {
  +        setAttribute( "id", id );
  +    }
  +    
  +    
  +    public String getTitle()
  +    {
  +        return getAttribute( "title" );
  +    }
  +    
  +    
  +    public void setTitle( String title )
  +    {
  +        setAttribute( "title", title );
  +    }
  +    
  +    
  +    public String getLang()
  +    {
  +        return getAttribute( "lang" );
  +    }
  +    
  +    
  +    public void setLang( String lang )
  +    {
  +        setAttribute( "lang", lang );
  +    }
  +    
  +    
  +    public String getDir()
  +    {
  +        return getAttribute( "dir" );
  +    }
  +    
  +    
  +    public void setDir( String dir )
  +    {
  +        setAttribute( "dir", dir );
  +    }
  +
  +    
  +    public String getClassName()
  +    {
  +        return getAttribute( "class" );
  +    }
  +
  +    
  +    public void setClassName( String className )
  +    {
  +        setAttribute( "class", className );
  +    }
  +    
  +    
  +    /**
  +     * Convenience method used to translate an attribute value into an integer
  +     * value. Returns the integer value or zero if the attribute is not a
  +     * valid numeric string.
  +     * 
  +     * @param value The value of the attribute
  +     * @return The integer value, or zero if not a valid numeric string
  +     */
  +    int getInteger( String value )
  +    {
  +        try
  +        {
  +            return Integer.parseInt( value );
  +        }
  +        catch ( NumberFormatException except )
  +        {
  +            return 0;
  +        }
  +    }
  +    
  +    
  +    /**
  +     * Convenience method used to translate an attribute value into a boolean
  +     * value. If the attribute has an associated value (even an empty string),
  +     * it is set and true is returned. If the attribute does not exist, false
  +     * is returend.
  +     * 
  +     * @param value The value of the attribute
  +     * @return True or false depending on whether the attribute has been set
  +     */
  +    boolean getBinary( String name )
  +    {
  +        return ( getAttributeNode( name ) != null );
  +    }
  +    
  +    
  +    /**
  +     * Convenience method used to set a boolean attribute. If the value is true,
  +     * the attribute is set to an empty string. If the value is false, the attribute
  +     * is removed. HTML 4.0 understands empty strings as set attributes.
  +     * 
  +     * @param name The name of the attribute
  +     * @param value The value of the attribute
  +     */
  +    void setAttribute( String name, boolean value )
  +    {
  +        if ( value )
  +            setAttribute( name, name );
  +        else
  +            removeAttribute( name );
  +    }
  +
  +
  +    public Attr getAttributeNode( String attrName )
  +    {
  +	return super.getAttributeNode( attrName.toLowerCase() );
  +    }
  +
  +
  +    public Attr getAttributeNodeNS( String namespaceURI,
  +				    String localName )
  +    {
  +	if ( namespaceURI != null && namespaceURI.length() > 0 )
  +	    return super.getAttributeNodeNS( namespaceURI, localName );
  +	else
  +	    return super.getAttributeNode( localName.toLowerCase() );
  +    }
  +    
  +    
  +    public String getAttribute( String attrName )
  +    {
  +	return super.getAttribute( attrName.toLowerCase() );
  +    }
  +
  +
  +    public String getAttributeNS( String namespaceURI,
  +				  String localName )
  +    {
  +	if ( namespaceURI != null && namespaceURI.length() > 0 )
  +	    return super.getAttributeNS( namespaceURI, localName );
  +	else
  +	    return super.getAttribute( localName.toLowerCase() );
  +    }
  +
  +
  +    public final NodeList getElementsByTagName( String tagName )
  +    {
  +	return super.getElementsByTagName( tagName.toUpperCase() );
  +    }
  +
  +
  +    public final NodeList getElementsByTagNameNS( String namespaceURI,
  +					          String localName )
  +    {
  +	if ( namespaceURI != null && namespaceURI.length() > 0 )
  +	    return super.getElementsByTagNameNS( namespaceURI, localName.toUpperCase() );
  +	else
  +	    return super.getElementsByTagName( localName.toUpperCase() );
  +    } 
  +
  +
  +    /**
  +     * Convenience method used to capitalize a one-off attribute value before it
  +     * is returned. For example, the align values "LEFT" and "left" will both
  +     * return as "Left".
  +     * 
  +     * @param value The value of the attribute
  +     * @return The capitalized value
  +     */
  +    String capitalize( String value )
  +    {
  +        char[]    chars;
  +        int        i;
  +        
  +        // Convert string to charactares. Convert the first one to upper case,
  +        // the other characters to lower case, and return the converted string.
  +        chars = value.toCharArray();
  +        if ( chars.length > 0 )
  +        {
  +            chars[ 0 ] = Character.toUpperCase( chars[ 0 ] );
  +            for ( i = 1 ; i < chars.length ; ++i )
  +                chars[ i ] = Character.toLowerCase( chars[ i ] );
  +            return String.valueOf( chars );
  +        }
  +        return value;
  +    }
  +    
  +
  +    /**
  +     * Convenience method used to capitalize a one-off attribute value before it
  +     * is returned. For example, the align values "LEFT" and "left" will both
  +     * return as "Left".
  +     * 
  +     * @param name The name of the attribute
  +     * @return The capitalized value
  +     */
  +    String getCapitalized( String name )
  +    {
  +        String    value;
  +        char[]    chars;
  +        int        i;
  +        
  +        value = getAttribute( name );
  +        if ( value != null )
  +        {
  +            // Convert string to charactares. Convert the first one to upper case,
  +            // the other characters to lower case, and return the converted string.
  +            chars = value.toCharArray();
  +            if ( chars.length > 0 )
  +            {
  +                chars[ 0 ] = Character.toUpperCase( chars[ 0 ] );
  +                for ( i = 1 ; i < chars.length ; ++i )
  +                    chars[ i ] = Character.toLowerCase( chars[ i ] );
  +                return String.valueOf( chars );
  +            }
  +        }
  +        return value;
  +    }
  +
  +    
  +    /**
  +     * Convenience method returns the form in which this form element is contained.
  +     * This method is exposed for form elements through the DOM API, but other
  +     * elements have no access to it through the API.
  +     */
  +    public HTMLFormElement getForm()
  +    {
  +        Node    parent;
  +        
  +        parent = getParentNode(); 
  +        while ( parent != null )
  +        {
  +            if ( parent instanceof HTMLFormElement )
  +                return (HTMLFormElement) parent;
  +            parent = parent.getParentNode();
  +        }
  +        return null;
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +32 -32    xml-xerces/java/src/org/apache/html/dom/HTMLFieldSetElementImpl.java
  
  Index: HTMLFieldSetElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLFieldSetElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLFieldSetElementImpl.java	2000/02/10 04:00:09	1.2
  +++ HTMLFieldSetElementImpl.java	2000/12/21 00:33:40	1.3
  @@ -54,35 +54,35 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:09 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLFieldSetElement
  - * @see ElementImpl
  - */
  -public final class HTMLFieldSetElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLFieldSetElement, HTMLFormControl
  -{
  -
  -
  -      /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLFieldSetElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -  
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:40 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLFieldSetElement
  + * @see ElementImpl
  + */
  +public final class HTMLFieldSetElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLFieldSetElement, HTMLFormControl
  +{
  +
  +
  +      /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLFieldSetElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +  
  +
  +}
  +
  
  
  
  1.3       +62 -62    xml-xerces/java/src/org/apache/html/dom/HTMLFontElementImpl.java
  
  Index: HTMLFontElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLFontElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLFontElementImpl.java	2000/02/10 04:00:10	1.2
  +++ HTMLFontElementImpl.java	2000/12/21 00:33:40	1.3
  @@ -54,65 +54,65 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLFontElement
  - * @see ElementImpl
  - */
  -public final class HTMLFontElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLFontElement
  -{
  -
  -    
  -    public String getColor()
  -    {
  -        return capitalize( getAttribute( "color" ) );
  -    }
  -    
  -    
  -    public void setColor( String color )
  -    {
  -        setAttribute( "color", color );
  -    }
  -    
  -    
  -    public String getFace()
  -    {
  -        return capitalize( getAttribute( "face" ) );
  -    }
  -    
  -    
  -    public void setFace( String face )
  -    {
  -        setAttribute( "face", face );
  -    }
  -    
  -    
  -    public String getSize()
  -    {
  -        return getAttribute( "size" );
  -    }
  -    
  -    
  -    public void setSize( String size )
  -    {
  -        setAttribute( "size", size );
  -    }
  -
  -    
  -    public HTMLFontElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -  
  -
  -}
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:40 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLFontElement
  + * @see ElementImpl
  + */
  +public final class HTMLFontElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLFontElement
  +{
  +
  +    
  +    public String getColor()
  +    {
  +        return capitalize( getAttribute( "color" ) );
  +    }
  +    
  +    
  +    public void setColor( String color )
  +    {
  +        setAttribute( "color", color );
  +    }
  +    
  +    
  +    public String getFace()
  +    {
  +        return capitalize( getAttribute( "face" ) );
  +    }
  +    
  +    
  +    public void setFace( String face )
  +    {
  +        setAttribute( "face", face );
  +    }
  +    
  +    
  +    public String getSize()
  +    {
  +        return getAttribute( "size" );
  +    }
  +    
  +    
  +    public void setSize( String size )
  +    {
  +        setAttribute( "size", size );
  +    }
  +
  +    
  +    public HTMLFontElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +  
  +
  +}
  
  
  
  1.3       +14 -14    xml-xerces/java/src/org/apache/html/dom/HTMLFormControl.java
  
  Index: HTMLFormControl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLFormControl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLFormControl.java	2000/02/10 04:00:10	1.2
  +++ HTMLFormControl.java	2000/12/21 00:33:40	1.3
  @@ -54,17 +54,17 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -/**
  - * Identifies control in a form, so they may be collected in a form elements
  - * collection. All form control elements implement this empty interface.
  - * 
  - * 
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - */
  -public interface HTMLFormControl
  -{
  -}
  +package org.apache.html.dom;
  +
  +
  +/**
  + * Identifies control in a form, so they may be collected in a form elements
  + * collection. All form control elements implement this empty interface.
  + * 
  + * 
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:40 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + */
  +public interface HTMLFormControl
  +{
  +}
  
  
  
  1.3       +135 -135  xml-xerces/java/src/org/apache/html/dom/HTMLFormElementImpl.java
  
  Index: HTMLFormElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLFormElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLFormElementImpl.java	2000/02/10 04:00:10	1.2
  +++ HTMLFormElementImpl.java	2000/12/21 00:33:40	1.3
  @@ -54,138 +54,138 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLFormElement
  - * @see ElementImpl
  - */
  -public final class HTMLFormElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLFormElement
  -{
  -
  -    
  -    public HTMLCollection getElements()
  -    {
  -        if ( _elements == null )
  -            _elements = new HTMLCollectionImpl( this, HTMLCollectionImpl.ELEMENT );
  -        return _elements;
  -    }
  -  
  -
  -    public int getLength()
  -    {
  -        return getElements().getLength();
  -    }
  -  
  -  
  -    public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -
  -    
  -    public String getAcceptCharset()
  -    {
  -        return getAttribute( "accept-charset" );
  -    }
  -    
  -    
  -    public void setAcceptCharset( String acceptCharset )
  -    {
  -        setAttribute( "accept-charset", acceptCharset );
  -    }
  -
  -  
  -      public String getAction()
  -    {
  -        return getAttribute( "action" );
  -    }
  -    
  -    
  -    public void setAction( String action )
  -    {
  -        setAttribute( "action", action );
  -    }
  -  
  -  
  -      public String getEnctype()
  -    {
  -        return getAttribute( "enctype" );
  -    }
  -    
  -    
  -    public void setEnctype( String enctype )
  -    {
  -        setAttribute( "enctype", enctype );
  -    }
  -
  -    
  -      public String getMethod()
  -    {
  -        return capitalize( getAttribute( "method" ) );
  -    }
  -    
  -    
  -    public void setMethod( String method )
  -    {
  -        setAttribute( "method", method );
  -    }
  -  
  -  
  -    public String getTarget()
  -    {
  -        return getAttribute( "target" );
  -    }
  -    
  -    
  -    public void setTarget( String target )
  -    {
  -        setAttribute( "target", target );
  -    }
  -
  -    
  -    public void submit()
  -    {
  -        // No scripting in server-side DOM. This method is moot.
  -    }
  -
  -    
  -    public void reset()
  -    {
  -        // No scripting in server-side DOM. This method is moot.
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLFormElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -  
  -    
  -    /**
  -     * Collection of all elements contained in this FORM.
  -     */
  -    private HTMLCollectionImpl    _elements;
  -    
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:40 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLFormElement
  + * @see ElementImpl
  + */
  +public final class HTMLFormElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLFormElement
  +{
  +
  +    
  +    public HTMLCollection getElements()
  +    {
  +        if ( _elements == null )
  +            _elements = new HTMLCollectionImpl( this, HTMLCollectionImpl.ELEMENT );
  +        return _elements;
  +    }
  +  
  +
  +    public int getLength()
  +    {
  +        return getElements().getLength();
  +    }
  +  
  +  
  +    public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +
  +    
  +    public String getAcceptCharset()
  +    {
  +        return getAttribute( "accept-charset" );
  +    }
  +    
  +    
  +    public void setAcceptCharset( String acceptCharset )
  +    {
  +        setAttribute( "accept-charset", acceptCharset );
  +    }
  +
  +  
  +      public String getAction()
  +    {
  +        return getAttribute( "action" );
  +    }
  +    
  +    
  +    public void setAction( String action )
  +    {
  +        setAttribute( "action", action );
  +    }
  +  
  +  
  +      public String getEnctype()
  +    {
  +        return getAttribute( "enctype" );
  +    }
  +    
  +    
  +    public void setEnctype( String enctype )
  +    {
  +        setAttribute( "enctype", enctype );
  +    }
  +
  +    
  +      public String getMethod()
  +    {
  +        return capitalize( getAttribute( "method" ) );
  +    }
  +    
  +    
  +    public void setMethod( String method )
  +    {
  +        setAttribute( "method", method );
  +    }
  +  
  +  
  +    public String getTarget()
  +    {
  +        return getAttribute( "target" );
  +    }
  +    
  +    
  +    public void setTarget( String target )
  +    {
  +        setAttribute( "target", target );
  +    }
  +
  +    
  +    public void submit()
  +    {
  +        // No scripting in server-side DOM. This method is moot.
  +    }
  +
  +    
  +    public void reset()
  +    {
  +        // No scripting in server-side DOM. This method is moot.
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLFormElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +  
  +    
  +    /**
  +     * Collection of all elements contained in this FORM.
  +     */
  +    private HTMLCollectionImpl    _elements;
  +    
  +}
  +
  
  
  
  1.3       +128 -128  xml-xerces/java/src/org/apache/html/dom/HTMLFrameElementImpl.java
  
  Index: HTMLFrameElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLFrameElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLFrameElementImpl.java	2000/02/10 04:00:10	1.2
  +++ HTMLFrameElementImpl.java	2000/12/21 00:33:40	1.3
  @@ -54,131 +54,131 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLFrameElement
  - * @see ElementImpl
  - */
  -public final class HTMLFrameElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLFrameElement
  -{
  -
  -    
  -    public String getFrameBorder()
  -    {
  -        return getAttribute( "frameborder" );
  -    }
  -    
  -    
  -    public void setFrameBorder( String frameBorder )
  -    {
  -        setAttribute( "frameborder", frameBorder );
  -    }
  -  
  -  
  -    public String getLongDesc()
  -    {
  -        return getAttribute( "longdesc" );
  -    }
  -    
  -    
  -    public void setLongDesc( String longDesc )
  -    {
  -        setAttribute( "longdesc", longDesc );
  -    }
  -  
  -  
  -    public String getMarginHeight()
  -    {
  -        return getAttribute( "marginheight" );
  -    }
  -    
  -    
  -    public void setMarginHeight( String marginHeight )
  -    {
  -        setAttribute( "marginheight", marginHeight );
  -    }
  -  
  -  
  -    public String getMarginWidth()
  -    {
  -        return getAttribute( "marginwidth" );
  -    }
  -    
  -    
  -    public void setMarginWidth( String marginWidth )
  -    {
  -        setAttribute( "marginwidth", marginWidth );
  -    }
  -  
  -  
  -    public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -
  -    
  -    public boolean getNoResize()
  -    {
  -        return getBinary( "noresize" );
  -    }
  -    
  -    
  -    public void setNoResize( boolean noResize )
  -    {
  -        setAttribute( "noresize", noResize );
  -    }
  -
  -    
  -    public String getScrolling()
  -    {
  -        return capitalize( getAttribute( "scrolling" ) );
  -    }
  -    
  -    
  -    public void setScrolling( String scrolling )
  -    {
  -        setAttribute( "scrolling", scrolling );
  -    }
  -  
  -  
  -    public String getSrc()
  -    {
  -        return getAttribute( "src" );
  -    }
  -    
  -    
  -    public void setSrc( String src )
  -    {
  -        setAttribute( "src", src );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLFrameElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -  
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:40 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLFrameElement
  + * @see ElementImpl
  + */
  +public final class HTMLFrameElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLFrameElement
  +{
  +
  +    
  +    public String getFrameBorder()
  +    {
  +        return getAttribute( "frameborder" );
  +    }
  +    
  +    
  +    public void setFrameBorder( String frameBorder )
  +    {
  +        setAttribute( "frameborder", frameBorder );
  +    }
  +  
  +  
  +    public String getLongDesc()
  +    {
  +        return getAttribute( "longdesc" );
  +    }
  +    
  +    
  +    public void setLongDesc( String longDesc )
  +    {
  +        setAttribute( "longdesc", longDesc );
  +    }
  +  
  +  
  +    public String getMarginHeight()
  +    {
  +        return getAttribute( "marginheight" );
  +    }
  +    
  +    
  +    public void setMarginHeight( String marginHeight )
  +    {
  +        setAttribute( "marginheight", marginHeight );
  +    }
  +  
  +  
  +    public String getMarginWidth()
  +    {
  +        return getAttribute( "marginwidth" );
  +    }
  +    
  +    
  +    public void setMarginWidth( String marginWidth )
  +    {
  +        setAttribute( "marginwidth", marginWidth );
  +    }
  +  
  +  
  +    public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +
  +    
  +    public boolean getNoResize()
  +    {
  +        return getBinary( "noresize" );
  +    }
  +    
  +    
  +    public void setNoResize( boolean noResize )
  +    {
  +        setAttribute( "noresize", noResize );
  +    }
  +
  +    
  +    public String getScrolling()
  +    {
  +        return capitalize( getAttribute( "scrolling" ) );
  +    }
  +    
  +    
  +    public void setScrolling( String scrolling )
  +    {
  +        setAttribute( "scrolling", scrolling );
  +    }
  +  
  +  
  +    public String getSrc()
  +    {
  +        return getAttribute( "src" );
  +    }
  +    
  +    
  +    public void setSrc( String src )
  +    {
  +        setAttribute( "src", src );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLFrameElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +  
  +
  +}
  +
  
  
  
  1.3       +56 -56    xml-xerces/java/src/org/apache/html/dom/HTMLFrameSetElementImpl.java
  
  Index: HTMLFrameSetElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLFrameSetElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLFrameSetElementImpl.java	2000/02/10 04:00:10	1.2
  +++ HTMLFrameSetElementImpl.java	2000/12/21 00:33:41	1.3
  @@ -54,59 +54,59 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLFrameSetElement
  - * @see ElementImpl
  - */
  -public final class HTMLFrameSetElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLFrameSetElement
  -{
  -
  -    
  -    public String getCols()
  -    {
  -        return getAttribute( "cols" );
  -    }
  -    
  -    
  -    public void setCols( String cols )
  -    {
  -        setAttribute( "cols", cols );
  -    }
  -
  -    
  -    public String getRows()
  -    {
  -        return getAttribute( "rows" );
  -    }
  -    
  -    
  -    public void setRows( String rows )
  -    {
  -        setAttribute( "rows", rows );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLFrameSetElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -  
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:41 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLFrameSetElement
  + * @see ElementImpl
  + */
  +public final class HTMLFrameSetElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLFrameSetElement
  +{
  +
  +    
  +    public String getCols()
  +    {
  +        return getAttribute( "cols" );
  +    }
  +    
  +    
  +    public void setCols( String cols )
  +    {
  +        setAttribute( "cols", cols );
  +    }
  +
  +    
  +    public String getRows()
  +    {
  +        return getAttribute( "rows" );
  +    }
  +    
  +    
  +    public void setRows( String rows )
  +    {
  +        setAttribute( "rows", rows );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLFrameSetElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +  
  +
  +}
  +
  
  
  
  1.3       +80 -80    xml-xerces/java/src/org/apache/html/dom/HTMLHRElementImpl.java
  
  Index: HTMLHRElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLHRElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLHRElementImpl.java	2000/02/10 04:00:10	1.2
  +++ HTMLHRElementImpl.java	2000/12/21 00:33:41	1.3
  @@ -54,83 +54,83 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLHRElement
  - * @see ElementImpl
  - */
  -public final class HTMLHRElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLHRElement
  -{
  -
  -    
  -    public String getAlign()
  -    {
  -        return capitalize( getAttribute( "align" ) );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -  
  -    
  -    public boolean getNoShade()
  -    {
  -        return getBinary( "noshade" );
  -    }
  -    
  -    
  -    public void setNoShade( boolean noShade )
  -    {
  -        setAttribute( "noshade", noShade );
  -    }
  -
  -    
  -    public String getSize()
  -    {
  -        return getAttribute( "size" );
  -    }
  -    
  -    
  -    public void setSize( String size )
  -    {
  -        setAttribute( "size", size );
  -    }
  -  
  -  
  -      public String getWidth()
  -    {
  -        return getAttribute( "width" );
  -    }
  -    
  -    
  -    public void setWidth( String width )
  -    {
  -        setAttribute( "width", width );
  -    }
  -    
  -
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLHRElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:41 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLHRElement
  + * @see ElementImpl
  + */
  +public final class HTMLHRElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLHRElement
  +{
  +
  +    
  +    public String getAlign()
  +    {
  +        return capitalize( getAttribute( "align" ) );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +  
  +    
  +    public boolean getNoShade()
  +    {
  +        return getBinary( "noshade" );
  +    }
  +    
  +    
  +    public void setNoShade( boolean noShade )
  +    {
  +        setAttribute( "noshade", noShade );
  +    }
  +
  +    
  +    public String getSize()
  +    {
  +        return getAttribute( "size" );
  +    }
  +    
  +    
  +    public void setSize( String size )
  +    {
  +        setAttribute( "size", size );
  +    }
  +  
  +  
  +      public String getWidth()
  +    {
  +        return getAttribute( "width" );
  +    }
  +    
  +    
  +    public void setWidth( String width )
  +    {
  +        setAttribute( "width", width );
  +    }
  +    
  +
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLHRElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +44 -44    xml-xerces/java/src/org/apache/html/dom/HTMLHeadElementImpl.java
  
  Index: HTMLHeadElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLHeadElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLHeadElementImpl.java	2000/02/10 04:00:10	1.2
  +++ HTMLHeadElementImpl.java	2000/12/21 00:33:41	1.3
  @@ -54,47 +54,47 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLHeadElement
  - * @see ElementImpl
  - */
  -public final class HTMLHeadElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLHeadElement
  -{
  -
  -    
  -    public String getProfile()
  -    {
  -        return getAttribute( "profile" );
  -    }
  -    
  -    
  -    public void setProfile( String profile )
  -    {
  -        setAttribute( "profile", profile );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLHeadElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:41 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLHeadElement
  + * @see ElementImpl
  + */
  +public final class HTMLHeadElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLHeadElement
  +{
  +
  +    
  +    public String getProfile()
  +    {
  +        return getAttribute( "profile" );
  +    }
  +    
  +    
  +    public void setProfile( String profile )
  +    {
  +        setAttribute( "profile", profile );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLHeadElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +44 -44    xml-xerces/java/src/org/apache/html/dom/HTMLHeadingElementImpl.java
  
  Index: HTMLHeadingElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLHeadingElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLHeadingElementImpl.java	2000/02/10 04:00:10	1.2
  +++ HTMLHeadingElementImpl.java	2000/12/21 00:33:41	1.3
  @@ -54,47 +54,47 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLHeadingElement
  - * @see ElementImpl
  - */
  -public final class HTMLHeadingElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLHeadingElement
  -{
  -
  -    
  -    public String getAlign()
  -    {
  -        return getCapitalized( "align" );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -  
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLHeadingElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:41 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLHeadingElement
  + * @see ElementImpl
  + */
  +public final class HTMLHeadingElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLHeadingElement
  +{
  +
  +    
  +    public String getAlign()
  +    {
  +        return getCapitalized( "align" );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +  
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLHeadingElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +44 -44    xml-xerces/java/src/org/apache/html/dom/HTMLHtmlElementImpl.java
  
  Index: HTMLHtmlElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLHtmlElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLHtmlElementImpl.java	2000/02/10 04:00:10	1.2
  +++ HTMLHtmlElementImpl.java	2000/12/21 00:33:41	1.3
  @@ -54,47 +54,47 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLHtmlElement
  - * @see ElementImpl
  - */
  -public final class HTMLHtmlElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLHtmlElement
  -{
  -
  -    
  -    public String getVersion()
  -    {
  -        return capitalize( getAttribute( "version" ) );
  -    }
  -    
  -    
  -    public void setVersion( String version )
  -    {
  -        setAttribute( "version", version );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLHtmlElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:41 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLHtmlElement
  + * @see ElementImpl
  + */
  +public final class HTMLHtmlElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLHtmlElement
  +{
  +
  +    
  +    public String getVersion()
  +    {
  +        return capitalize( getAttribute( "version" ) );
  +    }
  +    
  +    
  +    public void setVersion( String version )
  +    {
  +        setAttribute( "version", version );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLHtmlElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +151 -151  xml-xerces/java/src/org/apache/html/dom/HTMLIFrameElementImpl.java
  
  Index: HTMLIFrameElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLIFrameElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLIFrameElementImpl.java	2000/02/10 04:00:10	1.2
  +++ HTMLIFrameElementImpl.java	2000/12/21 00:33:41	1.3
  @@ -54,154 +54,154 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLIFrameElement
  - * @see ElementImpl
  - */
  -public final class HTMLIFrameElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLIFrameElement
  -{
  -
  -    
  -    public String getAlign()
  -    {
  -        return capitalize( getAttribute( "align" ) );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -  
  -    
  -    public String getFrameBorder()
  -    {
  -        return getAttribute( "frameborder" );
  -    }
  -    
  -    
  -    public void setFrameBorder( String frameBorder )
  -    {
  -        setAttribute( "frameborder", frameBorder );
  -    }
  -
  -    
  -    public String getHeight()
  -    {
  -        return getAttribute( "height" );
  -    }
  -    
  -    
  -    public void setHeight( String height )
  -    {
  -        setAttribute( "height", height );
  -    }
  -  
  -    public String getLongDesc()
  -    {
  -        return getAttribute( "longdesc" );
  -    }
  -    
  -    
  -    public void setLongDesc( String longDesc )
  -    {
  -        setAttribute( "longdesc", longDesc );
  -    }
  -  
  -  
  -    public String getMarginHeight()
  -    {
  -        return getAttribute( "marginheight" );
  -    }
  -    
  -    
  -    public void setMarginHeight( String marginHeight )
  -    {
  -        setAttribute( "marginheight", marginHeight );
  -    }
  -  
  -  
  -    public String getMarginWidth()
  -    {
  -        return getAttribute( "marginwidth" );
  -    }
  -    
  -    
  -    public void setMarginWidth( String marginWidth )
  -    {
  -        setAttribute( "marginwidth", marginWidth );
  -    }
  -
  -  
  -      public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -
  -    
  -    public String getScrolling()
  -    {
  -        return capitalize( getAttribute( "scrolling" ) );
  -    }
  -    
  -    
  -    public void setScrolling( String scrolling )
  -    {
  -        setAttribute( "scrolling", scrolling );
  -    }
  -    
  -  
  -       public String getSrc()
  -    {
  -        return getAttribute( "src" );
  -    }
  -    
  -    
  -    public void setSrc( String src )
  -    {
  -        setAttribute( "src", src );
  -    }
  -
  -
  -      public String getWidth()
  -    {
  -        return getAttribute( "width" );
  -    }
  -    
  -    
  -    public void setWidth( String width )
  -    {
  -        setAttribute( "width", width );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLIFrameElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:41 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLIFrameElement
  + * @see ElementImpl
  + */
  +public final class HTMLIFrameElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLIFrameElement
  +{
  +
  +    
  +    public String getAlign()
  +    {
  +        return capitalize( getAttribute( "align" ) );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +  
  +    
  +    public String getFrameBorder()
  +    {
  +        return getAttribute( "frameborder" );
  +    }
  +    
  +    
  +    public void setFrameBorder( String frameBorder )
  +    {
  +        setAttribute( "frameborder", frameBorder );
  +    }
  +
  +    
  +    public String getHeight()
  +    {
  +        return getAttribute( "height" );
  +    }
  +    
  +    
  +    public void setHeight( String height )
  +    {
  +        setAttribute( "height", height );
  +    }
  +  
  +    public String getLongDesc()
  +    {
  +        return getAttribute( "longdesc" );
  +    }
  +    
  +    
  +    public void setLongDesc( String longDesc )
  +    {
  +        setAttribute( "longdesc", longDesc );
  +    }
  +  
  +  
  +    public String getMarginHeight()
  +    {
  +        return getAttribute( "marginheight" );
  +    }
  +    
  +    
  +    public void setMarginHeight( String marginHeight )
  +    {
  +        setAttribute( "marginheight", marginHeight );
  +    }
  +  
  +  
  +    public String getMarginWidth()
  +    {
  +        return getAttribute( "marginwidth" );
  +    }
  +    
  +    
  +    public void setMarginWidth( String marginWidth )
  +    {
  +        setAttribute( "marginwidth", marginWidth );
  +    }
  +
  +  
  +      public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +
  +    
  +    public String getScrolling()
  +    {
  +        return capitalize( getAttribute( "scrolling" ) );
  +    }
  +    
  +    
  +    public void setScrolling( String scrolling )
  +    {
  +        setAttribute( "scrolling", scrolling );
  +    }
  +    
  +  
  +       public String getSrc()
  +    {
  +        return getAttribute( "src" );
  +    }
  +    
  +    
  +    public void setSrc( String src )
  +    {
  +        setAttribute( "src", src );
  +    }
  +
  +
  +      public String getWidth()
  +    {
  +        return getAttribute( "width" );
  +    }
  +    
  +    
  +    public void setWidth( String width )
  +    {
  +        setAttribute( "width", width );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLIFrameElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +188 -188  xml-xerces/java/src/org/apache/html/dom/HTMLImageElementImpl.java
  
  Index: HTMLImageElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLImageElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLImageElementImpl.java	2000/02/10 04:00:10	1.2
  +++ HTMLImageElementImpl.java	2000/12/21 00:33:42	1.3
  @@ -54,191 +54,191 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLImageElement
  - * @see ElementImpl
  - */
  -public final class HTMLImageElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLImageElement
  -{
  -
  -    
  -       public String getLowSrc()
  -    {
  -        return getAttribute( "lowsrc" );
  -    }
  -    
  -    
  -    public void setLowSrc( String lowSrc )
  -    {
  -        setAttribute( "lowsrc", lowSrc );
  -    }
  -
  -  
  -       public String getSrc()
  -    {
  -        return getAttribute( "src" );
  -    }
  -    
  -    
  -    public void setSrc( String src )
  -    {
  -        setAttribute( "src", src );
  -    }
  -
  -    
  -      public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -
  -    
  -    public String getAlign()
  -    {
  -        return capitalize( getAttribute( "align" ) );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -  
  -    
  -    public String getAlt()
  -    {
  -        return getAttribute( "alt" );
  -    }
  -    
  -    
  -    public void setAlt( String alt )
  -    {
  -        setAttribute( "alt", alt );
  -    }
  -
  -    
  -    public String getBorder()
  -    {
  -        return getAttribute( "border" );
  -    }
  -    
  -    
  -    public void setBorder( String border )
  -    {
  -        setAttribute( "border", border );
  -    }
  -
  -  
  -      public String getHeight()
  -    {
  -        return getAttribute( "height" );
  -    }
  -    
  -    
  -    public void setHeight( String height )
  -    {
  -        setAttribute( "height", height );
  -    }
  -
  -    
  -    public String getHspace()
  -    {
  -        return getAttribute( "hspace" );
  -    }
  -    
  -    
  -    public void setHspace( String hspace )
  -    {
  -        setAttribute( "hspace", hspace );
  -    }
  -    
  -  
  -    public boolean getIsMap()
  -    {
  -        return getBinary( "ismap" );
  -    }
  -    
  -    
  -    public void setIsMap( boolean isMap )
  -    {
  -        setAttribute( "ismap", isMap );
  -    }
  -
  -    
  -    public String getLongDesc()
  -    {
  -        return getAttribute( "longdesc" );
  -    }
  -    
  -    
  -    public void setLongDesc( String longDesc )
  -    {
  -        setAttribute( "longdesc", longDesc );
  -    }
  -    
  -  
  -    public String getUseMap()
  -    {
  -        return getAttribute( "useMap" );
  -    }
  -    
  -    
  -    public void setUseMap( String useMap )
  -    {
  -        setAttribute( "useMap", useMap );
  -    }
  -    
  -
  -    public String getVspace()
  -    {
  -        return getAttribute( "vspace" );
  -    }
  -    
  -    
  -    public void setVspace( String vspace )
  -    {
  -        setAttribute( "vspace", vspace );
  -    }
  -
  -  
  -      public String getWidth()
  -    {
  -        return getAttribute( "width" );
  -    }
  -    
  -    
  -    public void setWidth( String width )
  -    {
  -        setAttribute( "width", width );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLImageElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:42 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLImageElement
  + * @see ElementImpl
  + */
  +public final class HTMLImageElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLImageElement
  +{
  +
  +    
  +       public String getLowSrc()
  +    {
  +        return getAttribute( "lowsrc" );
  +    }
  +    
  +    
  +    public void setLowSrc( String lowSrc )
  +    {
  +        setAttribute( "lowsrc", lowSrc );
  +    }
  +
  +  
  +       public String getSrc()
  +    {
  +        return getAttribute( "src" );
  +    }
  +    
  +    
  +    public void setSrc( String src )
  +    {
  +        setAttribute( "src", src );
  +    }
  +
  +    
  +      public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +
  +    
  +    public String getAlign()
  +    {
  +        return capitalize( getAttribute( "align" ) );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +  
  +    
  +    public String getAlt()
  +    {
  +        return getAttribute( "alt" );
  +    }
  +    
  +    
  +    public void setAlt( String alt )
  +    {
  +        setAttribute( "alt", alt );
  +    }
  +
  +    
  +    public String getBorder()
  +    {
  +        return getAttribute( "border" );
  +    }
  +    
  +    
  +    public void setBorder( String border )
  +    {
  +        setAttribute( "border", border );
  +    }
  +
  +  
  +      public String getHeight()
  +    {
  +        return getAttribute( "height" );
  +    }
  +    
  +    
  +    public void setHeight( String height )
  +    {
  +        setAttribute( "height", height );
  +    }
  +
  +    
  +    public String getHspace()
  +    {
  +        return getAttribute( "hspace" );
  +    }
  +    
  +    
  +    public void setHspace( String hspace )
  +    {
  +        setAttribute( "hspace", hspace );
  +    }
  +    
  +  
  +    public boolean getIsMap()
  +    {
  +        return getBinary( "ismap" );
  +    }
  +    
  +    
  +    public void setIsMap( boolean isMap )
  +    {
  +        setAttribute( "ismap", isMap );
  +    }
  +
  +    
  +    public String getLongDesc()
  +    {
  +        return getAttribute( "longdesc" );
  +    }
  +    
  +    
  +    public void setLongDesc( String longDesc )
  +    {
  +        setAttribute( "longdesc", longDesc );
  +    }
  +    
  +  
  +    public String getUseMap()
  +    {
  +        return getAttribute( "useMap" );
  +    }
  +    
  +    
  +    public void setUseMap( String useMap )
  +    {
  +        setAttribute( "useMap", useMap );
  +    }
  +    
  +
  +    public String getVspace()
  +    {
  +        return getAttribute( "vspace" );
  +    }
  +    
  +    
  +    public void setVspace( String vspace )
  +    {
  +        setAttribute( "vspace", vspace );
  +    }
  +
  +  
  +      public String getWidth()
  +    {
  +        return getAttribute( "width" );
  +    }
  +    
  +    
  +    public void setWidth( String width )
  +    {
  +        setAttribute( "width", width );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLImageElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +275 -275  xml-xerces/java/src/org/apache/html/dom/HTMLInputElementImpl.java
  
  Index: HTMLInputElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLInputElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLInputElementImpl.java	2000/02/10 04:00:10	1.2
  +++ HTMLInputElementImpl.java	2000/12/21 00:33:42	1.3
  @@ -54,278 +54,278 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLInputElement
  - * @see ElementImpl
  - */
  -public final class HTMLInputElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLInputElement, HTMLFormControl
  -{
  -    
  -    
  -    public String getDefaultValue()
  -    {
  -        // ! NOT FULLY IMPLEMENTED !
  -        return getAttribute( "defaultValue" );
  -    }
  -    
  -    
  -    public void setDefaultValue( String defaultValue )
  -    {
  -        // ! NOT FULLY IMPLEMENTED !
  -        setAttribute( "defaultValue", defaultValue );
  -    }
  -    
  -    
  -    public boolean getDefaultChecked()
  -    {
  -        // ! NOT FULLY IMPLEMENTED !
  -        return getBinary( "defaultChecked" );
  -    }
  -    
  -    
  -    public void setDefaultChecked( boolean defaultChecked )
  -    {
  -        // ! NOT FULLY IMPLEMENTED !
  -        setAttribute( "defaultChecked", defaultChecked );
  -    }
  -  
  -    
  -    public String getAccept()
  -    {
  -        return getAttribute( "accept" );
  -    }
  -    
  -    
  -    public void setAccept( String accept )
  -    {
  -        setAttribute( "accept", accept );
  -    }   
  -    
  -    
  -    public String getAccessKey()
  -    {
  -        String    accessKey;
  -        
  -        // Make sure that the access key is a single character.
  -        accessKey = getAttribute( "accesskey" );
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        return accessKey;
  -    }
  -    
  -    
  -    public void setAccessKey( String accessKey )
  -    {
  -        // Make sure that the access key is a single character.    
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        setAttribute( "accesskey", accessKey );
  -    }
  -    
  -    
  -    public String getAlign()
  -    {
  -        return capitalize( getAttribute( "align" ) );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -    
  -    
  -    public String getAlt()
  -    {
  -        return getAttribute( "alt" );
  -    }
  -    
  -    
  -    public void setAlt( String alt )
  -    {
  -        setAttribute( "alt", alt );
  -    }
  -    
  -    
  -    public boolean getChecked()
  -    {
  -        return getBinary( "checked" );
  -    }
  -    
  -    
  -    public void setChecked( boolean checked )
  -    {
  -        setAttribute( "checked", checked );
  -    }
  -  
  -    
  -    public boolean getDisabled()
  -    {
  -        return getBinary( "disabled" );
  -    }
  -    
  -    
  -    public void setDisabled( boolean disabled )
  -    {
  -        setAttribute( "disabled", disabled );
  -    }
  -    
  -    
  -    public int getMaxLength()
  -    {
  -        return getInteger( getAttribute( "maxlength" ) );
  -    }
  -    
  -    
  -    public void setMaxLength( int maxLength )
  -    {
  -        setAttribute( "maxlength", String.valueOf( maxLength ) );
  -    }
  -    
  -    
  -    public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -    
  -    
  -    public boolean getReadOnly()
  -    {
  -        return getBinary( "readonly" );
  -    }
  -    
  -    
  -    public void setReadOnly( boolean readOnly )
  -    {
  -        setAttribute( "readonly", readOnly );
  -    }
  -    
  -    
  -    public String getSize()
  -    {
  -        return getAttribute( "size" );
  -    }
  -    
  -    
  -    public void setSize( String size )
  -    {
  -        setAttribute( "size", size );
  -    }
  -    
  -    
  -    public String getSrc()
  -    {
  -        return getAttribute( "src" );
  -    }
  -    
  -    
  -    public void setSrc( String src )
  -    {
  -        setAttribute( "src", src );
  -    }
  -    
  -    
  -      public int getTabIndex()
  -    {
  -        try
  -        {
  -            return Integer.parseInt( getAttribute( "tabindex" ) );
  -        }
  -        catch ( NumberFormatException except )
  -        {
  -            return 0;
  -        }
  -    }
  -    
  -    
  -    public void setTabIndex( int tabIndex )
  -    {
  -        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  -    }
  -
  -  
  -    public String getType()
  -    {
  -        return getAttribute( "type" );
  -    }
  -    
  -    
  -    public String getUseMap()
  -    {
  -        return getAttribute( "useMap" );
  -    }
  -    
  -    
  -    public void setUseMap( String useMap )
  -    {
  -        setAttribute( "useMap", useMap );
  -    }
  -    
  -    
  -    public String getValue()
  -    {
  -        return getAttribute( "value" );
  -    }
  -    
  -    
  -    public void setValue( String value )
  -    {
  -        setAttribute( "value", value );
  -    }
  -    
  -    
  -    public void blur()
  -    {
  -        // No scripting in server-side DOM. This method is moot.
  -    }
  -    
  -    
  -    public void focus()
  -    {
  -        // No scripting in server-side DOM. This method is moot.
  -    }
  -    
  -    
  -    public void select()
  -    {
  -        // No scripting in server-side DOM. This method is moot.
  -    }
  -    
  -    
  -    public void click()
  -    {
  -        // No scripting in server-side DOM. This method is moot.
  -    }
  -
  -  
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLInputElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:42 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLInputElement
  + * @see ElementImpl
  + */
  +public final class HTMLInputElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLInputElement, HTMLFormControl
  +{
  +    
  +    
  +    public String getDefaultValue()
  +    {
  +        // ! NOT FULLY IMPLEMENTED !
  +        return getAttribute( "defaultValue" );
  +    }
  +    
  +    
  +    public void setDefaultValue( String defaultValue )
  +    {
  +        // ! NOT FULLY IMPLEMENTED !
  +        setAttribute( "defaultValue", defaultValue );
  +    }
  +    
  +    
  +    public boolean getDefaultChecked()
  +    {
  +        // ! NOT FULLY IMPLEMENTED !
  +        return getBinary( "defaultChecked" );
  +    }
  +    
  +    
  +    public void setDefaultChecked( boolean defaultChecked )
  +    {
  +        // ! NOT FULLY IMPLEMENTED !
  +        setAttribute( "defaultChecked", defaultChecked );
  +    }
  +  
  +    
  +    public String getAccept()
  +    {
  +        return getAttribute( "accept" );
  +    }
  +    
  +    
  +    public void setAccept( String accept )
  +    {
  +        setAttribute( "accept", accept );
  +    }   
  +    
  +    
  +    public String getAccessKey()
  +    {
  +        String    accessKey;
  +        
  +        // Make sure that the access key is a single character.
  +        accessKey = getAttribute( "accesskey" );
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        return accessKey;
  +    }
  +    
  +    
  +    public void setAccessKey( String accessKey )
  +    {
  +        // Make sure that the access key is a single character.    
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        setAttribute( "accesskey", accessKey );
  +    }
  +    
  +    
  +    public String getAlign()
  +    {
  +        return capitalize( getAttribute( "align" ) );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +    
  +    
  +    public String getAlt()
  +    {
  +        return getAttribute( "alt" );
  +    }
  +    
  +    
  +    public void setAlt( String alt )
  +    {
  +        setAttribute( "alt", alt );
  +    }
  +    
  +    
  +    public boolean getChecked()
  +    {
  +        return getBinary( "checked" );
  +    }
  +    
  +    
  +    public void setChecked( boolean checked )
  +    {
  +        setAttribute( "checked", checked );
  +    }
  +  
  +    
  +    public boolean getDisabled()
  +    {
  +        return getBinary( "disabled" );
  +    }
  +    
  +    
  +    public void setDisabled( boolean disabled )
  +    {
  +        setAttribute( "disabled", disabled );
  +    }
  +    
  +    
  +    public int getMaxLength()
  +    {
  +        return getInteger( getAttribute( "maxlength" ) );
  +    }
  +    
  +    
  +    public void setMaxLength( int maxLength )
  +    {
  +        setAttribute( "maxlength", String.valueOf( maxLength ) );
  +    }
  +    
  +    
  +    public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +    
  +    
  +    public boolean getReadOnly()
  +    {
  +        return getBinary( "readonly" );
  +    }
  +    
  +    
  +    public void setReadOnly( boolean readOnly )
  +    {
  +        setAttribute( "readonly", readOnly );
  +    }
  +    
  +    
  +    public String getSize()
  +    {
  +        return getAttribute( "size" );
  +    }
  +    
  +    
  +    public void setSize( String size )
  +    {
  +        setAttribute( "size", size );
  +    }
  +    
  +    
  +    public String getSrc()
  +    {
  +        return getAttribute( "src" );
  +    }
  +    
  +    
  +    public void setSrc( String src )
  +    {
  +        setAttribute( "src", src );
  +    }
  +    
  +    
  +      public int getTabIndex()
  +    {
  +        try
  +        {
  +            return Integer.parseInt( getAttribute( "tabindex" ) );
  +        }
  +        catch ( NumberFormatException except )
  +        {
  +            return 0;
  +        }
  +    }
  +    
  +    
  +    public void setTabIndex( int tabIndex )
  +    {
  +        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  +    }
  +
  +  
  +    public String getType()
  +    {
  +        return getAttribute( "type" );
  +    }
  +    
  +    
  +    public String getUseMap()
  +    {
  +        return getAttribute( "useMap" );
  +    }
  +    
  +    
  +    public void setUseMap( String useMap )
  +    {
  +        setAttribute( "useMap", useMap );
  +    }
  +    
  +    
  +    public String getValue()
  +    {
  +        return getAttribute( "value" );
  +    }
  +    
  +    
  +    public void setValue( String value )
  +    {
  +        setAttribute( "value", value );
  +    }
  +    
  +    
  +    public void blur()
  +    {
  +        // No scripting in server-side DOM. This method is moot.
  +    }
  +    
  +    
  +    public void focus()
  +    {
  +        // No scripting in server-side DOM. This method is moot.
  +    }
  +    
  +    
  +    public void select()
  +    {
  +        // No scripting in server-side DOM. This method is moot.
  +    }
  +    
  +    
  +    public void click()
  +    {
  +        // No scripting in server-side DOM. This method is moot.
  +    }
  +
  +  
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLInputElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  +
  
  
  
  1.3       +44 -44    xml-xerces/java/src/org/apache/html/dom/HTMLIsIndexElementImpl.java
  
  Index: HTMLIsIndexElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLIsIndexElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLIsIndexElementImpl.java	2000/02/10 04:00:10	1.2
  +++ HTMLIsIndexElementImpl.java	2000/12/21 00:33:42	1.3
  @@ -54,47 +54,47 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLIsIndexElement
  - * @see ElementImpl
  - */
  -public final class HTMLIsIndexElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLIsIndexElement
  -{
  -
  -    
  -    public String getPrompt()
  -    {
  -        return getAttribute( "prompt" );
  -    }
  -    
  -    
  -    public void setPrompt( String prompt )
  -    {
  -        setAttribute( "prompt", prompt );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLIsIndexElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:42 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLIsIndexElement
  + * @see ElementImpl
  + */
  +public final class HTMLIsIndexElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLIsIndexElement
  +{
  +
  +    
  +    public String getPrompt()
  +    {
  +        return getAttribute( "prompt" );
  +    }
  +    
  +    
  +    public void setPrompt( String prompt )
  +    {
  +        setAttribute( "prompt", prompt );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLIsIndexElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +56 -56    xml-xerces/java/src/org/apache/html/dom/HTMLLIElementImpl.java
  
  Index: HTMLLIElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLLIElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLLIElementImpl.java	2000/02/10 04:00:11	1.2
  +++ HTMLLIElementImpl.java	2000/12/21 00:33:42	1.3
  @@ -54,59 +54,59 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:11 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLLIElement
  - * @see ElementImpl
  - */
  -public final class HTMLLIElementImpl
  -    extends HTMLElementImpl
  -	    implements HTMLLIElement
  -{
  -
  -    
  -    public String getType()
  -    {
  -        return getAttribute( "type" );
  -    }
  -    
  -    
  -    public void setType( String type )
  -    {
  -        setAttribute( "type", type );
  -    }
  -        
  -
  -    public int getValue()
  -    {
  -        return getInteger( getAttribute( "value" ) );
  -    }
  -
  -    
  -    public void setValue( int value )
  -    {
  -        setAttribute( "value", String.valueOf( value ) );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLLIElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:42 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLLIElement
  + * @see ElementImpl
  + */
  +public final class HTMLLIElementImpl
  +    extends HTMLElementImpl
  +	    implements HTMLLIElement
  +{
  +
  +    
  +    public String getType()
  +    {
  +        return getAttribute( "type" );
  +    }
  +    
  +    
  +    public void setType( String type )
  +    {
  +        setAttribute( "type", type );
  +    }
  +        
  +
  +    public int getValue()
  +    {
  +        return getInteger( getAttribute( "value" ) );
  +    }
  +
  +    
  +    public void setValue( int value )
  +    {
  +        setAttribute( "value", String.valueOf( value ) );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLLIElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +65 -65    xml-xerces/java/src/org/apache/html/dom/HTMLLabelElementImpl.java
  
  Index: HTMLLabelElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLLabelElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLLabelElementImpl.java	2000/02/10 04:00:10	1.2
  +++ HTMLLabelElementImpl.java	2000/12/21 00:33:42	1.3
  @@ -54,68 +54,68 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:10 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLLabelElement
  - * @see ElementImpl
  - */
  -public final class HTMLLabelElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLLabelElement, HTMLFormControl
  -{
  -
  -    
  -    public String getAccessKey()
  -    {
  -        String    accessKey;
  -        
  -        // Make sure that the access key is a single character.
  -        accessKey = getAttribute( "accesskey" );
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        return accessKey;
  -    }
  -    
  -    
  -    public void setAccessKey( String accessKey )
  -    {
  -        // Make sure that the access key is a single character.
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        setAttribute( "accesskey", accessKey );
  -    }
  -
  -    
  -       public String getHtmlFor()
  -    {
  -        return getAttribute( "for" );
  -    }
  -    
  -    
  -    public void setHtmlFor( String htmlFor )
  -    {
  -        setAttribute( "for", htmlFor );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLLabelElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:42 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLLabelElement
  + * @see ElementImpl
  + */
  +public final class HTMLLabelElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLLabelElement, HTMLFormControl
  +{
  +
  +    
  +    public String getAccessKey()
  +    {
  +        String    accessKey;
  +        
  +        // Make sure that the access key is a single character.
  +        accessKey = getAttribute( "accesskey" );
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        return accessKey;
  +    }
  +    
  +    
  +    public void setAccessKey( String accessKey )
  +    {
  +        // Make sure that the access key is a single character.
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        setAttribute( "accesskey", accessKey );
  +    }
  +
  +    
  +       public String getHtmlFor()
  +    {
  +        return getAttribute( "for" );
  +    }
  +    
  +    
  +    public void setHtmlFor( String htmlFor )
  +    {
  +        setAttribute( "for", htmlFor );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLLabelElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +65 -65    xml-xerces/java/src/org/apache/html/dom/HTMLLegendElementImpl.java
  
  Index: HTMLLegendElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLLegendElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLLegendElementImpl.java	2000/02/10 04:00:11	1.2
  +++ HTMLLegendElementImpl.java	2000/12/21 00:33:42	1.3
  @@ -54,68 +54,68 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:11 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLLegendElement
  - * @see ElementImpl
  - */
  -public final class HTMLLegendElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLLegendElement
  -{
  -
  -    
  -    public String getAccessKey()
  -    {
  -        String    accessKey;
  -        
  -        // Make sure that the access key is a single character.
  -        accessKey = getAttribute( "accesskey" );
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        return accessKey;
  -    }
  -    
  -    
  -    public void setAccessKey( String accessKey )
  -    {
  -        // Make sure that the access key is a single character.
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        setAttribute( "accesskey", accessKey );
  -    }
  -
  -    
  -    public String getAlign()
  -    {
  -        return getAttribute( "align" );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -  
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLLegendElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:42 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLLegendElement
  + * @see ElementImpl
  + */
  +public final class HTMLLegendElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLLegendElement
  +{
  +
  +    
  +    public String getAccessKey()
  +    {
  +        String    accessKey;
  +        
  +        // Make sure that the access key is a single character.
  +        accessKey = getAttribute( "accesskey" );
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        return accessKey;
  +    }
  +    
  +    
  +    public void setAccessKey( String accessKey )
  +    {
  +        // Make sure that the access key is a single character.
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        setAttribute( "accesskey", accessKey );
  +    }
  +
  +    
  +    public String getAlign()
  +    {
  +        return getAttribute( "align" );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +  
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLLegendElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +140 -140  xml-xerces/java/src/org/apache/html/dom/HTMLLinkElementImpl.java
  
  Index: HTMLLinkElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLLinkElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLLinkElementImpl.java	2000/02/10 04:00:11	1.2
  +++ HTMLLinkElementImpl.java	2000/12/21 00:33:42	1.3
  @@ -54,143 +54,143 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:11 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLLinkElement
  - * @see ElementImpl
  - */
  -public final class HTMLLinkElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLLinkElement
  -{
  -
  -    
  -    public boolean getDisabled()
  -    {
  -        return getBinary( "disabled" );
  -    }
  -    
  -    
  -    public void setDisabled( boolean disabled )
  -    {
  -        setAttribute( "disabled", disabled );
  -    }
  -
  -    
  -    public String getCharset()
  -    {
  -        return getAttribute( "charset" );
  -    }
  -    
  -    
  -    public void setCharset( String charset )
  -    {
  -        setAttribute( "charset", charset );
  -    }
  -    
  -    
  -    public String getHref()
  -    {
  -        return getAttribute( "href" );
  -    }
  -    
  -    
  -    public void setHref( String href )
  -    {
  -        setAttribute( "href", href );
  -    }
  -    
  -    
  -    public String getHreflang()
  -    {
  -        return getAttribute( "hreflang" );
  -    }
  -    
  -    
  -    public void setHreflang( String hreflang )
  -    {
  -        setAttribute( "hreflang", hreflang );
  -    }
  -
  -    
  -    public String getMedia()
  -    {
  -        return getAttribute( "media" );
  -    }
  -    
  -    
  -    public void setMedia( String media )
  -    {
  -        setAttribute( "media", media );
  -    }
  -
  -  
  -    public String getRel()
  -    {
  -        return getAttribute( "rel" );
  -    }
  -    
  -    
  -    public void setRel( String rel )
  -    {
  -        setAttribute( "rel", rel );
  -    }
  -    
  -    
  -    public String getRev()
  -    {
  -        return getAttribute( "rev" );
  -    }
  -    
  -    
  -    public void setRev( String rev )
  -    {
  -        setAttribute( "rev", rev );
  -    }
  -
  -    
  -    public String getTarget()
  -    {
  -        return getAttribute( "target" );
  -    }
  -    
  -    
  -    public void setTarget( String target )
  -    {
  -        setAttribute( "target", target );
  -    }
  -  
  -  
  -    public String getType()
  -    {
  -        return getAttribute( "type" );
  -    }
  -    
  -    
  -    public void setType( String type )
  -    {
  -        setAttribute( "type", type );
  -    }
  -    
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLLinkElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:42 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLLinkElement
  + * @see ElementImpl
  + */
  +public final class HTMLLinkElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLLinkElement
  +{
  +
  +    
  +    public boolean getDisabled()
  +    {
  +        return getBinary( "disabled" );
  +    }
  +    
  +    
  +    public void setDisabled( boolean disabled )
  +    {
  +        setAttribute( "disabled", disabled );
  +    }
  +
  +    
  +    public String getCharset()
  +    {
  +        return getAttribute( "charset" );
  +    }
  +    
  +    
  +    public void setCharset( String charset )
  +    {
  +        setAttribute( "charset", charset );
  +    }
  +    
  +    
  +    public String getHref()
  +    {
  +        return getAttribute( "href" );
  +    }
  +    
  +    
  +    public void setHref( String href )
  +    {
  +        setAttribute( "href", href );
  +    }
  +    
  +    
  +    public String getHreflang()
  +    {
  +        return getAttribute( "hreflang" );
  +    }
  +    
  +    
  +    public void setHreflang( String hreflang )
  +    {
  +        setAttribute( "hreflang", hreflang );
  +    }
  +
  +    
  +    public String getMedia()
  +    {
  +        return getAttribute( "media" );
  +    }
  +    
  +    
  +    public void setMedia( String media )
  +    {
  +        setAttribute( "media", media );
  +    }
  +
  +  
  +    public String getRel()
  +    {
  +        return getAttribute( "rel" );
  +    }
  +    
  +    
  +    public void setRel( String rel )
  +    {
  +        setAttribute( "rel", rel );
  +    }
  +    
  +    
  +    public String getRev()
  +    {
  +        return getAttribute( "rev" );
  +    }
  +    
  +    
  +    public void setRev( String rev )
  +    {
  +        setAttribute( "rev", rev );
  +    }
  +
  +    
  +    public String getTarget()
  +    {
  +        return getAttribute( "target" );
  +    }
  +    
  +    
  +    public void setTarget( String target )
  +    {
  +        setAttribute( "target", target );
  +    }
  +  
  +  
  +    public String getType()
  +    {
  +        return getAttribute( "type" );
  +    }
  +    
  +    
  +    public void setType( String type )
  +    {
  +        setAttribute( "type", type );
  +    }
  +    
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLLinkElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +56 -56    xml-xerces/java/src/org/apache/html/dom/HTMLMapElementImpl.java
  
  Index: HTMLMapElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLMapElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLMapElementImpl.java	2000/02/10 04:00:11	1.2
  +++ HTMLMapElementImpl.java	2000/12/21 00:33:43	1.3
  @@ -54,59 +54,59 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:11 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLMapElement
  - * @see ElementImpl
  - */
  -public final class HTMLMapElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLMapElement
  -{
  -
  -    
  -    
  -    public HTMLCollection getAreas()
  -    {
  -        if ( _areas == null )
  -            _areas = new HTMLCollectionImpl( this, HTMLCollectionImpl.AREA );
  -        return _areas;
  -    }
  -    
  -  
  -      public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLMapElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -    
  -    
  -    private HTMLCollection    _areas;
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:43 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLMapElement
  + * @see ElementImpl
  + */
  +public final class HTMLMapElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLMapElement
  +{
  +
  +    
  +    
  +    public HTMLCollection getAreas()
  +    {
  +        if ( _areas == null )
  +            _areas = new HTMLCollectionImpl( this, HTMLCollectionImpl.AREA );
  +        return _areas;
  +    }
  +    
  +  
  +      public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLMapElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +    
  +    
  +    private HTMLCollection    _areas;
  +
  +
  +}
  +
  
  
  
  1.3       +44 -44    xml-xerces/java/src/org/apache/html/dom/HTMLMenuElementImpl.java
  
  Index: HTMLMenuElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLMenuElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLMenuElementImpl.java	2000/02/10 04:00:11	1.2
  +++ HTMLMenuElementImpl.java	2000/12/21 00:33:43	1.3
  @@ -54,47 +54,47 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:11 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLMenuElement
  - * @see ElementImpl
  - */
  -public final class HTMLMenuElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLMenuElement
  -{
  -
  -    
  -    public boolean getCompact()
  -    {
  -        return getBinary( "compact" );
  -    }
  -    
  -    
  -    public void setCompact( boolean compact )
  -    {
  -        setAttribute( "compact", compact );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLMenuElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:43 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLMenuElement
  + * @see ElementImpl
  + */
  +public final class HTMLMenuElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLMenuElement
  +{
  +
  +    
  +    public boolean getCompact()
  +    {
  +        return getBinary( "compact" );
  +    }
  +    
  +    
  +    public void setCompact( boolean compact )
  +    {
  +        setAttribute( "compact", compact );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLMenuElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +81 -81    xml-xerces/java/src/org/apache/html/dom/HTMLMetaElementImpl.java
  
  Index: HTMLMetaElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLMetaElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLMetaElementImpl.java	2000/02/10 04:00:11	1.2
  +++ HTMLMetaElementImpl.java	2000/12/21 00:33:43	1.3
  @@ -54,84 +54,84 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:11 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLMetaElement
  - * @see ElementImpl
  - */
  -public final class HTMLMetaElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLMetaElement
  -{
  -
  -    
  -    public String getContent()
  -    {
  -        return getAttribute( "content" );
  -    }
  -    
  -    
  -    public void setContent( String content )
  -    {
  -        setAttribute( "content", content );
  -    }
  -
  -    
  -    
  -      public String getHttpEquiv()
  -    {
  -        return getAttribute( "http-equiv" );
  -    }
  -    
  -    
  -    public void setHttpEquiv( String httpEquiv )
  -    {
  -        setAttribute( "http-equiv", httpEquiv );
  -    }
  -
  -  
  -      public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -
  -    
  -      public String getScheme()
  -    {
  -        return getAttribute( "scheme" );
  -    }
  -    
  -    
  -    public void setScheme( String scheme )
  -    {
  -        setAttribute( "scheme", scheme );
  -    }
  -    
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLMetaElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:43 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLMetaElement
  + * @see ElementImpl
  + */
  +public final class HTMLMetaElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLMetaElement
  +{
  +
  +    
  +    public String getContent()
  +    {
  +        return getAttribute( "content" );
  +    }
  +    
  +    
  +    public void setContent( String content )
  +    {
  +        setAttribute( "content", content );
  +    }
  +
  +    
  +    
  +      public String getHttpEquiv()
  +    {
  +        return getAttribute( "http-equiv" );
  +    }
  +    
  +    
  +    public void setHttpEquiv( String httpEquiv )
  +    {
  +        setAttribute( "http-equiv", httpEquiv );
  +    }
  +
  +  
  +      public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +
  +    
  +      public String getScheme()
  +    {
  +        return getAttribute( "scheme" );
  +    }
  +    
  +    
  +    public void setScheme( String scheme )
  +    {
  +        setAttribute( "scheme", scheme );
  +    }
  +    
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLMetaElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +57 -57    xml-xerces/java/src/org/apache/html/dom/HTMLModElementImpl.java
  
  Index: HTMLModElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLModElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLModElementImpl.java	2000/02/10 04:00:11	1.2
  +++ HTMLModElementImpl.java	2000/12/21 00:33:43	1.3
  @@ -54,60 +54,60 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:11 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLModElement
  - * @see ElementImpl
  - */
  -public final class HTMLModElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLModElement
  -{
  -
  -    
  -    
  -    public String getCite()
  -    {
  -        return getAttribute( "cite" );
  -    }
  -    
  -    
  -    public void setCite( String cite )
  -    {
  -        setAttribute( "cite", cite );
  -    }
  -    
  -    
  -      public String getDateTime()
  -    {
  -        return getAttribute( "datetime" );
  -    }
  -    
  -    
  -    public void setDateTime( String dateTime )
  -    {
  -        setAttribute( "datetime", dateTime );
  -    }
  -    
  -
  -    /**
  -     * Constructor requires owner document and tag name.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLModElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:43 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLModElement
  + * @see ElementImpl
  + */
  +public final class HTMLModElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLModElement
  +{
  +
  +    
  +    
  +    public String getCite()
  +    {
  +        return getAttribute( "cite" );
  +    }
  +    
  +    
  +    public void setCite( String cite )
  +    {
  +        setAttribute( "cite", cite );
  +    }
  +    
  +    
  +      public String getDateTime()
  +    {
  +        return getAttribute( "datetime" );
  +    }
  +    
  +    
  +    public void setDateTime( String dateTime )
  +    {
  +        setAttribute( "datetime", dateTime );
  +    }
  +    
  +
  +    /**
  +     * Constructor requires owner document and tag name.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLModElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +68 -68    xml-xerces/java/src/org/apache/html/dom/HTMLOListElementImpl.java
  
  Index: HTMLOListElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLOListElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLOListElementImpl.java	2000/02/10 04:00:11	1.2
  +++ HTMLOListElementImpl.java	2000/12/21 00:33:43	1.3
  @@ -54,71 +54,71 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:11 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLOListElement
  - * @see ElementImpl
  - */
  -public final class HTMLOListElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLOListElement
  -{
  -
  -    
  -    public boolean getCompact()
  -    {
  -        return getBinary( "compact" );
  -    }
  -    
  -    
  -    public void setCompact( boolean compact )
  -    {
  -        setAttribute( "compact", compact );
  -    }
  -    
  -    
  -      public int getStart()
  -    {
  -        return getInteger( getAttribute( "start" ) );
  -    }
  -    
  -    
  -    public void setStart( int start )
  -    {
  -        setAttribute( "start", String.valueOf( start ) );
  -    }
  -  
  -  
  -    public String getType()
  -    {
  -        return getAttribute( "type" );
  -    }
  -    
  -    
  -    public void setType( String type )
  -    {
  -        setAttribute( "type", type );
  -    }
  -        
  -        
  -      /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLOListElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:43 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLOListElement
  + * @see ElementImpl
  + */
  +public final class HTMLOListElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLOListElement
  +{
  +
  +    
  +    public boolean getCompact()
  +    {
  +        return getBinary( "compact" );
  +    }
  +    
  +    
  +    public void setCompact( boolean compact )
  +    {
  +        setAttribute( "compact", compact );
  +    }
  +    
  +    
  +      public int getStart()
  +    {
  +        return getInteger( getAttribute( "start" ) );
  +    }
  +    
  +    
  +    public void setStart( int start )
  +    {
  +        setAttribute( "start", String.valueOf( start ) );
  +    }
  +  
  +  
  +    public String getType()
  +    {
  +        return getAttribute( "type" );
  +    }
  +    
  +    
  +    public void setType( String type )
  +    {
  +        setAttribute( "type", type );
  +    }
  +        
  +        
  +      /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLOListElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +241 -241  xml-xerces/java/src/org/apache/html/dom/HTMLObjectElementImpl.java
  
  Index: HTMLObjectElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLObjectElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLObjectElementImpl.java	2000/02/10 04:00:11	1.2
  +++ HTMLObjectElementImpl.java	2000/12/21 00:33:43	1.3
  @@ -54,244 +54,244 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:11 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLObjectElement
  - * @see ElementImpl
  - */
  -public final class HTMLObjectElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLObjectElement, HTMLFormControl
  -{
  -    
  -    
  -
  -    public String getCode()
  -    {
  -        return getAttribute( "code" );
  -    }
  -    
  -    
  -    public void setCode( String code )
  -    {
  -        setAttribute( "code", code );
  -    }
  -
  -  
  -    public String getAlign()
  -    {
  -        return capitalize( getAttribute( "align" ) );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -  
  -    
  -    public String getArchive()
  -    {
  -        return getAttribute( "archive" );
  -    }
  -    
  -    
  -    public void setArchive( String archive )
  -    {
  -        setAttribute( "archive", archive );
  -    }
  -    
  -    public String getBorder()
  -    {
  -        return getAttribute( "border" );
  -    }
  -    
  -    
  -    public void setBorder( String border )
  -    {
  -        setAttribute( "border", border );
  -    }
  -
  -    
  -    public String getCodeBase()
  -    {
  -        return getAttribute( "codebase" );
  -    }
  -    
  -    
  -    public void setCodeBase( String codeBase )
  -    {
  -        setAttribute( "codebase", codeBase );
  -    }
  -
  -    
  -    public String getCodeType()
  -    {
  -        return getAttribute( "codetype" );
  -    }
  -    
  -    
  -    public void setCodeType( String codeType )
  -    {
  -        setAttribute( "codetype", codeType );
  -    }
  -
  -    
  -    public String getData()
  -    {
  -        return getAttribute( "data" );
  -    }
  -    
  -    
  -    public void setData( String data )
  -    {
  -        setAttribute( "data", data );
  -    }
  -
  -  
  -      public boolean getDeclare()
  -    {
  -        return getBinary( "declare" );
  -    }
  -    
  -    
  -    public void setDeclare( boolean declare )
  -    {
  -        setAttribute( "declare", declare );
  -    }
  -
  -    
  -    public String getHeight()
  -    {
  -        return getAttribute( "height" );
  -    }
  -    
  -    
  -    public void setHeight( String height )
  -    {
  -        setAttribute( "height", height );
  -    }
  -
  -    
  -    public String getHspace()
  -    {
  -        return getAttribute( "hspace" );
  -    }
  -    
  -    
  -    public void setHspace( String hspace )
  -    {
  -        setAttribute( "hspace", hspace );
  -    }
  -  
  -    public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -
  -    
  -    public String getStandby()
  -    {
  -        return getAttribute( "standby" );
  -    }
  -    
  -    
  -    public void setStandby( String standby )
  -    {
  -        setAttribute( "standby", standby );
  -    }
  -  
  -      public int getTabIndex()
  -    {
  -        try
  -        {
  -            return Integer.parseInt( getAttribute( "tabindex" ) );
  -        }
  -        catch ( NumberFormatException except )
  -        {
  -            return 0;
  -        }
  -    }
  -    
  -    
  -    public void setTabIndex( int tabIndex )
  -    {
  -        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  -    }
  -
  -    
  -    public String getType()
  -    {
  -        return getAttribute( "type" );
  -    }
  -    
  -    
  -    public void setType( String type )
  -    {
  -        setAttribute( "type", type );
  -    }
  -    
  -    
  -    public String getUseMap()
  -    {
  -        return getAttribute( "useMap" );
  -    }
  -    
  -    
  -    public void setUseMap( String useMap )
  -    {
  -        setAttribute( "useMap", useMap );
  -    }
  -    
  -    
  -    public String getVspace()
  -    {
  -        return getAttribute( "vspace" );
  -    }
  -    
  -    
  -    public void setVspace( String vspace )
  -    {
  -        setAttribute( "vspace", vspace );
  -    }
  -
  -  
  -    public String getWidth()
  -    {
  -        return getAttribute( "width" );
  -    }
  -    
  -    
  -    public void setWidth( String width )
  -    {
  -        setAttribute( "width", width );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLObjectElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:43 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLObjectElement
  + * @see ElementImpl
  + */
  +public final class HTMLObjectElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLObjectElement, HTMLFormControl
  +{
  +    
  +    
  +
  +    public String getCode()
  +    {
  +        return getAttribute( "code" );
  +    }
  +    
  +    
  +    public void setCode( String code )
  +    {
  +        setAttribute( "code", code );
  +    }
  +
  +  
  +    public String getAlign()
  +    {
  +        return capitalize( getAttribute( "align" ) );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +  
  +    
  +    public String getArchive()
  +    {
  +        return getAttribute( "archive" );
  +    }
  +    
  +    
  +    public void setArchive( String archive )
  +    {
  +        setAttribute( "archive", archive );
  +    }
  +    
  +    public String getBorder()
  +    {
  +        return getAttribute( "border" );
  +    }
  +    
  +    
  +    public void setBorder( String border )
  +    {
  +        setAttribute( "border", border );
  +    }
  +
  +    
  +    public String getCodeBase()
  +    {
  +        return getAttribute( "codebase" );
  +    }
  +    
  +    
  +    public void setCodeBase( String codeBase )
  +    {
  +        setAttribute( "codebase", codeBase );
  +    }
  +
  +    
  +    public String getCodeType()
  +    {
  +        return getAttribute( "codetype" );
  +    }
  +    
  +    
  +    public void setCodeType( String codeType )
  +    {
  +        setAttribute( "codetype", codeType );
  +    }
  +
  +    
  +    public String getData()
  +    {
  +        return getAttribute( "data" );
  +    }
  +    
  +    
  +    public void setData( String data )
  +    {
  +        setAttribute( "data", data );
  +    }
  +
  +  
  +      public boolean getDeclare()
  +    {
  +        return getBinary( "declare" );
  +    }
  +    
  +    
  +    public void setDeclare( boolean declare )
  +    {
  +        setAttribute( "declare", declare );
  +    }
  +
  +    
  +    public String getHeight()
  +    {
  +        return getAttribute( "height" );
  +    }
  +    
  +    
  +    public void setHeight( String height )
  +    {
  +        setAttribute( "height", height );
  +    }
  +
  +    
  +    public String getHspace()
  +    {
  +        return getAttribute( "hspace" );
  +    }
  +    
  +    
  +    public void setHspace( String hspace )
  +    {
  +        setAttribute( "hspace", hspace );
  +    }
  +  
  +    public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +
  +    
  +    public String getStandby()
  +    {
  +        return getAttribute( "standby" );
  +    }
  +    
  +    
  +    public void setStandby( String standby )
  +    {
  +        setAttribute( "standby", standby );
  +    }
  +  
  +      public int getTabIndex()
  +    {
  +        try
  +        {
  +            return Integer.parseInt( getAttribute( "tabindex" ) );
  +        }
  +        catch ( NumberFormatException except )
  +        {
  +            return 0;
  +        }
  +    }
  +    
  +    
  +    public void setTabIndex( int tabIndex )
  +    {
  +        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  +    }
  +
  +    
  +    public String getType()
  +    {
  +        return getAttribute( "type" );
  +    }
  +    
  +    
  +    public void setType( String type )
  +    {
  +        setAttribute( "type", type );
  +    }
  +    
  +    
  +    public String getUseMap()
  +    {
  +        return getAttribute( "useMap" );
  +    }
  +    
  +    
  +    public void setUseMap( String useMap )
  +    {
  +        setAttribute( "useMap", useMap );
  +    }
  +    
  +    
  +    public String getVspace()
  +    {
  +        return getAttribute( "vspace" );
  +    }
  +    
  +    
  +    public void setVspace( String vspace )
  +    {
  +        setAttribute( "vspace", vspace );
  +    }
  +
  +  
  +    public String getWidth()
  +    {
  +        return getAttribute( "width" );
  +    }
  +    
  +    
  +    public void setWidth( String width )
  +    {
  +        setAttribute( "width", width );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLObjectElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +56 -56    xml-xerces/java/src/org/apache/html/dom/HTMLOptGroupElementImpl.java
  
  Index: HTMLOptGroupElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLOptGroupElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLOptGroupElementImpl.java	2000/02/10 04:00:11	1.2
  +++ HTMLOptGroupElementImpl.java	2000/12/21 00:33:44	1.3
  @@ -54,59 +54,59 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:11 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLOptGroupElement
  - * @see ElementImpl
  - */
  -public final class HTMLOptGroupElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLOptGroupElement
  -{
  -
  -        
  -    public boolean getDisabled()
  -    {
  -        return getBinary( "disabled" );
  -    }
  -    
  -    
  -    public void setDisabled( boolean disabled )
  -    {
  -        setAttribute( "disabled", disabled );
  -    }
  -
  -    
  -      public String getLabel()
  -    {
  -        return capitalize( getAttribute( "label" ) );
  -    }
  -    
  -    
  -    public void setLabel( String label )
  -    {
  -        setAttribute( "label", label );
  -    }
  -
  -    
  -      /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLOptGroupElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:44 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLOptGroupElement
  + * @see ElementImpl
  + */
  +public final class HTMLOptGroupElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLOptGroupElement
  +{
  +
  +        
  +    public boolean getDisabled()
  +    {
  +        return getBinary( "disabled" );
  +    }
  +    
  +    
  +    public void setDisabled( boolean disabled )
  +    {
  +        setAttribute( "disabled", disabled );
  +    }
  +
  +    
  +      public String getLabel()
  +    {
  +        return capitalize( getAttribute( "label" ) );
  +    }
  +    
  +    
  +    public void setLabel( String label )
  +    {
  +        setAttribute( "label", label );
  +    }
  +
  +    
  +      /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLOptGroupElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +190 -190  xml-xerces/java/src/org/apache/html/dom/HTMLOptionElementImpl.java
  
  Index: HTMLOptionElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLOptionElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLOptionElementImpl.java	2000/02/10 04:00:11	1.2
  +++ HTMLOptionElementImpl.java	2000/12/21 00:33:44	1.3
  @@ -54,193 +54,193 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:11 $
  - * @author <a href="mailto:arkin@openxml.org">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLOptionElement
  - * @see ElementImpl
  - */
  -public final class HTMLOptionElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLOptionElement
  -{
  -
  -    
  -
  -    public boolean getDefaultSelected()
  -    {
  -        // ! NOT FULLY IMPLEMENTED !
  -        return getBinary( "default-selected" );
  -    }
  -    
  -    
  -    public void setDefaultSelected( boolean defaultSelected )
  -    {
  -        // ! NOT FULLY IMPLEMENTED !
  -        setAttribute( "default-selected", defaultSelected );
  -    }
  -
  -  
  -    public String getText()
  -    {
  -        Node    child;
  -        String    text;
  -        
  -        // Find the Text nodes contained within this element and return their
  -        // concatenated value. Required to go around comments, entities, etc.
  -        child = getFirstChild();
  -        text = "";
  -        while ( child != null )
  -        {
  -            if ( child instanceof Text )
  -                text = text + ( (Text) child ).getData();
  -            child = child.getNextSibling();
  -        }
  -        return text;
  -    }
  -    
  -    
  -    public void setText( String text )
  -    {
  -        Node    child;
  -        Node    next;
  -        
  -        // Delete all the nodes and replace them with a single Text node.
  -        // This is the only approach that can handle comments and other nodes.
  -        child = getFirstChild();
  -        while ( child != null )
  -        {
  -            next = child.getNextSibling();
  -            removeChild( child );
  -            child = next;
  -        }
  -        insertBefore( getOwnerDocument().createTextNode( text ), getFirstChild() );
  -    }
  -    
  -    
  -    public int getIndex()
  -    {
  -        Node        parent;
  -        NodeList    options;
  -        int            i;
  -        
  -        // Locate the parent SELECT. Note that this OPTION might be inside a
  -        // OPTGROUP inside the SELECT. Or it might not have a parent SELECT.
  -        // Everything is possible. If no parent is found, return -1.
  -        parent = getParentNode();
  -        while ( parent != null && ! ( parent instanceof HTMLSelectElement ) )
  -            parent = parent.getParentNode();
  -        if ( parent != null )
  -        {
  -            // Use getElementsByTagName() which creates a snapshot of all the
  -            // OPTION elements under the SELECT. Access to the returned NodeList
  -            // is very fast and the snapshot solves many synchronization problems.
  -            options = ( (HTMLElement) parent ).getElementsByTagName( "OPTION" );
  -            for ( i = 0 ; i < options.getLength() ; ++i )
  -                if ( options.item( i ) == this )
  -                    return i;
  -        }
  -        return -1;
  -    }
  -    
  -    
  -    public void setIndex( int index )
  -    {
  -        Node        parent;
  -        NodeList    options;
  -        Node        item;
  -        
  -        // Locate the parent SELECT. Note that this OPTION might be inside a
  -        // OPTGROUP inside the SELECT. Or it might not have a parent SELECT.
  -        // Everything is possible. If no parent is found, just return.
  -        parent = getParentNode();
  -        while ( parent != null && ! ( parent instanceof HTMLSelectElement ) )
  -            parent = parent.getParentNode();
  -        if ( parent != null )
  -        {
  -            // Use getElementsByTagName() which creates a snapshot of all the
  -            // OPTION elements under the SELECT. Access to the returned NodeList
  -            // is very fast and the snapshot solves many synchronization problems.
  -            // Make sure this OPTION is not replacing itself.
  -            options = ( (HTMLElement) parent ).getElementsByTagName( "OPTION" );
  -            if ( options.item( index ) != this )
  -            {
  -                // Remove this OPTION from its parent. Place this OPTION right
  -                // before indexed OPTION underneath it's direct parent (might
  -                // be an OPTGROUP).
  -                getParentNode().removeChild( this );
  -                item = options.item( index );
  -                item.getParentNode().insertBefore( this, item );
  -            }
  -        }
  -    }
  -  
  -  
  -    public boolean getDisabled()
  -    {
  -        return getBinary( "disabled" );
  -    }
  -    
  -    
  -    public void setDisabled( boolean disabled )
  -    {
  -        setAttribute( "disabled", disabled );
  -    }
  -
  -    
  -      public String getLabel()
  -    {
  -        return capitalize( getAttribute( "label" ) );
  -    }
  -    
  -    
  -    public void setLabel( String label )
  -    {
  -        setAttribute( "label", label );
  -    }
  -
  -    
  -    public boolean getSelected()
  -    {
  -        return getBinary( "selected" );
  -    }
  -  
  -  
  -    public void setSelected( boolean selected )
  -    {
  -        setAttribute( "selected", selected );
  -    }
  -    
  -        
  -    public String getValue()
  -    {
  -        return getAttribute( "value" );
  -    }
  -    
  -    
  -    public void setValue( String value )
  -    {
  -        setAttribute( "value", value );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLOptionElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:44 $
  + * @author <a href="mailto:arkin@openxml.org">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLOptionElement
  + * @see ElementImpl
  + */
  +public final class HTMLOptionElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLOptionElement
  +{
  +
  +    
  +
  +    public boolean getDefaultSelected()
  +    {
  +        // ! NOT FULLY IMPLEMENTED !
  +        return getBinary( "default-selected" );
  +    }
  +    
  +    
  +    public void setDefaultSelected( boolean defaultSelected )
  +    {
  +        // ! NOT FULLY IMPLEMENTED !
  +        setAttribute( "default-selected", defaultSelected );
  +    }
  +
  +  
  +    public String getText()
  +    {
  +        Node    child;
  +        String    text;
  +        
  +        // Find the Text nodes contained within this element and return their
  +        // concatenated value. Required to go around comments, entities, etc.
  +        child = getFirstChild();
  +        text = "";
  +        while ( child != null )
  +        {
  +            if ( child instanceof Text )
  +                text = text + ( (Text) child ).getData();
  +            child = child.getNextSibling();
  +        }
  +        return text;
  +    }
  +    
  +    
  +    public void setText( String text )
  +    {
  +        Node    child;
  +        Node    next;
  +        
  +        // Delete all the nodes and replace them with a single Text node.
  +        // This is the only approach that can handle comments and other nodes.
  +        child = getFirstChild();
  +        while ( child != null )
  +        {
  +            next = child.getNextSibling();
  +            removeChild( child );
  +            child = next;
  +        }
  +        insertBefore( getOwnerDocument().createTextNode( text ), getFirstChild() );
  +    }
  +    
  +    
  +    public int getIndex()
  +    {
  +        Node        parent;
  +        NodeList    options;
  +        int            i;
  +        
  +        // Locate the parent SELECT. Note that this OPTION might be inside a
  +        // OPTGROUP inside the SELECT. Or it might not have a parent SELECT.
  +        // Everything is possible. If no parent is found, return -1.
  +        parent = getParentNode();
  +        while ( parent != null && ! ( parent instanceof HTMLSelectElement ) )
  +            parent = parent.getParentNode();
  +        if ( parent != null )
  +        {
  +            // Use getElementsByTagName() which creates a snapshot of all the
  +            // OPTION elements under the SELECT. Access to the returned NodeList
  +            // is very fast and the snapshot solves many synchronization problems.
  +            options = ( (HTMLElement) parent ).getElementsByTagName( "OPTION" );
  +            for ( i = 0 ; i < options.getLength() ; ++i )
  +                if ( options.item( i ) == this )
  +                    return i;
  +        }
  +        return -1;
  +    }
  +    
  +    
  +    public void setIndex( int index )
  +    {
  +        Node        parent;
  +        NodeList    options;
  +        Node        item;
  +        
  +        // Locate the parent SELECT. Note that this OPTION might be inside a
  +        // OPTGROUP inside the SELECT. Or it might not have a parent SELECT.
  +        // Everything is possible. If no parent is found, just return.
  +        parent = getParentNode();
  +        while ( parent != null && ! ( parent instanceof HTMLSelectElement ) )
  +            parent = parent.getParentNode();
  +        if ( parent != null )
  +        {
  +            // Use getElementsByTagName() which creates a snapshot of all the
  +            // OPTION elements under the SELECT. Access to the returned NodeList
  +            // is very fast and the snapshot solves many synchronization problems.
  +            // Make sure this OPTION is not replacing itself.
  +            options = ( (HTMLElement) parent ).getElementsByTagName( "OPTION" );
  +            if ( options.item( index ) != this )
  +            {
  +                // Remove this OPTION from its parent. Place this OPTION right
  +                // before indexed OPTION underneath it's direct parent (might
  +                // be an OPTGROUP).
  +                getParentNode().removeChild( this );
  +                item = options.item( index );
  +                item.getParentNode().insertBefore( this, item );
  +            }
  +        }
  +    }
  +  
  +  
  +    public boolean getDisabled()
  +    {
  +        return getBinary( "disabled" );
  +    }
  +    
  +    
  +    public void setDisabled( boolean disabled )
  +    {
  +        setAttribute( "disabled", disabled );
  +    }
  +
  +    
  +      public String getLabel()
  +    {
  +        return capitalize( getAttribute( "label" ) );
  +    }
  +    
  +    
  +    public void setLabel( String label )
  +    {
  +        setAttribute( "label", label );
  +    }
  +
  +    
  +    public boolean getSelected()
  +    {
  +        return getBinary( "selected" );
  +    }
  +  
  +  
  +    public void setSelected( boolean selected )
  +    {
  +        setAttribute( "selected", selected );
  +    }
  +    
  +        
  +    public String getValue()
  +    {
  +        return getAttribute( "value" );
  +    }
  +    
  +    
  +    public void setValue( String value )
  +    {
  +        setAttribute( "value", value );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLOptionElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +}
  +
  
  
  
  1.3       +44 -44    xml-xerces/java/src/org/apache/html/dom/HTMLParagraphElementImpl.java
  
  Index: HTMLParagraphElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLParagraphElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLParagraphElementImpl.java	2000/02/10 04:00:11	1.2
  +++ HTMLParagraphElementImpl.java	2000/12/21 00:33:44	1.3
  @@ -54,47 +54,47 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:11 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLParagraphElement
  - * @see ElementImpl
  - */
  -public final class HTMLParagraphElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLParagraphElement
  -{
  -    
  -    
  -    public String getAlign()
  -    {
  -        return getAttribute( "align" );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -  
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLParagraphElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:44 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLParagraphElement
  + * @see ElementImpl
  + */
  +public final class HTMLParagraphElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLParagraphElement
  +{
  +    
  +    
  +    public String getAlign()
  +    {
  +        return getAttribute( "align" );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +  
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLParagraphElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +
  
  
  
  1.3       +80 -80    xml-xerces/java/src/org/apache/html/dom/HTMLParamElementImpl.java
  
  Index: HTMLParamElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLParamElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLParamElementImpl.java	2000/02/10 04:00:11	1.2
  +++ HTMLParamElementImpl.java	2000/12/21 00:33:44	1.3
  @@ -54,83 +54,83 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:11 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLParamElement
  - * @see ElementImpl
  - */
  -public final class HTMLParamElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLParamElement
  -{
  -    
  -    
  -    public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -  
  -  
  -    public String getType()
  -    {
  -        return getAttribute( "type" );
  -    }
  -    
  -    
  -    public void setType( String type )
  -    {
  -        setAttribute( "type", type );
  -    }
  -    
  -    
  -      public String getValue()
  -    {
  -        return getAttribute( "value" );
  -    }
  -    
  -    
  -    public void setValue( String value )
  -    {
  -        setAttribute( "value", value );
  -    }
  -
  -    
  -      public String getValueType()
  -    {
  -        return capitalize( getAttribute( "valuetype" ) );
  -    }
  -    
  -    
  -    public void setValueType( String valueType )
  -    {
  -        setAttribute( "valuetype", valueType );
  -    }
  -
  -
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLParamElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:44 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLParamElement
  + * @see ElementImpl
  + */
  +public final class HTMLParamElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLParamElement
  +{
  +    
  +    
  +    public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +  
  +  
  +    public String getType()
  +    {
  +        return getAttribute( "type" );
  +    }
  +    
  +    
  +    public void setType( String type )
  +    {
  +        setAttribute( "type", type );
  +    }
  +    
  +    
  +      public String getValue()
  +    {
  +        return getAttribute( "value" );
  +    }
  +    
  +    
  +    public void setValue( String value )
  +    {
  +        setAttribute( "value", value );
  +    }
  +
  +    
  +      public String getValueType()
  +    {
  +        return capitalize( getAttribute( "valuetype" ) );
  +    }
  +    
  +    
  +    public void setValueType( String valueType )
  +    {
  +        setAttribute( "valuetype", valueType );
  +    }
  +
  +
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLParamElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +
  
  
  
  1.3       +44 -44    xml-xerces/java/src/org/apache/html/dom/HTMLPreElementImpl.java
  
  Index: HTMLPreElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLPreElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLPreElementImpl.java	2000/02/10 04:00:12	1.2
  +++ HTMLPreElementImpl.java	2000/12/21 00:33:44	1.3
  @@ -54,47 +54,47 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:12 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLPreElement
  - * @see ElementImpl
  - */
  -public final class HTMLPreElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLPreElement
  -{
  -    
  -    
  -      public int getWidth()
  -    {
  -        return getInteger( getAttribute( "width" ) );
  -    }
  -    
  -    
  -    public void setWidth( int width )
  -    {
  -        setAttribute( "width", String.valueOf( width ) );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLPreElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:44 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLPreElement
  + * @see ElementImpl
  + */
  +public final class HTMLPreElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLPreElement
  +{
  +    
  +    
  +      public int getWidth()
  +    {
  +        return getInteger( getAttribute( "width" ) );
  +    }
  +    
  +    
  +    public void setWidth( int width )
  +    {
  +        setAttribute( "width", String.valueOf( width ) );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLPreElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +
  
  
  
  1.3       +44 -44    xml-xerces/java/src/org/apache/html/dom/HTMLQuoteElementImpl.java
  
  Index: HTMLQuoteElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLQuoteElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLQuoteElementImpl.java	2000/02/10 04:00:12	1.2
  +++ HTMLQuoteElementImpl.java	2000/12/21 00:33:44	1.3
  @@ -54,47 +54,47 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:12 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLQuoteElement
  - * @see ElementImpl
  - */
  -public final class HTMLQuoteElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLQuoteElement
  -{
  -    
  -    
  -    public String getCite()
  -    {
  -        return getAttribute( "cite" );
  -    }
  -    
  -    
  -    public void setCite( String cite )
  -    {
  -        setAttribute( "cite", cite );
  -    }
  -    
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLQuoteElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:44 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLQuoteElement
  + * @see ElementImpl
  + */
  +public final class HTMLQuoteElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLQuoteElement
  +{
  +    
  +    
  +    public String getCite()
  +    {
  +        return getAttribute( "cite" );
  +    }
  +    
  +    
  +    public void setCite( String cite )
  +    {
  +        setAttribute( "cite", cite );
  +    }
  +    
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLQuoteElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +
  
  
  
  1.3       +140 -140  xml-xerces/java/src/org/apache/html/dom/HTMLScriptElementImpl.java
  
  Index: HTMLScriptElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLScriptElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLScriptElementImpl.java	2000/02/10 04:00:12	1.2
  +++ HTMLScriptElementImpl.java	2000/12/21 00:33:44	1.3
  @@ -54,143 +54,143 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:12 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLScriptElement
  - * @see ElementImpl
  - */
  -public final class HTMLScriptElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLScriptElement
  -{
  -    
  -    
  -    public String getText()
  -    {
  -        Node    child;
  -        String    text;
  -        
  -        // Find the Text nodes contained within this element and return their
  -        // concatenated value. Required to go around comments, entities, etc.
  -        child = getFirstChild();
  -        text = "";
  -        while ( child != null )
  -        {
  -            if ( child instanceof Text )
  -                text = text + ( (Text) child ).getData();
  -            child = child.getNextSibling();
  -        }
  -        return text;
  -    }
  -    
  -    
  -    public void setText( String text )
  -    {
  -        Node    child;
  -        Node    next;
  -        
  -        // Delete all the nodes and replace them with a single Text node.
  -        // This is the only approach that can handle comments and other nodes.
  -        child = getFirstChild();
  -        while ( child != null )
  -        {
  -            next = child.getNextSibling();
  -            removeChild( child );
  -            child = next;
  -        }
  -        insertBefore( getOwnerDocument().createTextNode( text ), getFirstChild() );
  -    }
  -
  -    
  -       public String getHtmlFor()
  -    {
  -        return getAttribute( "for" );
  -    }
  -    
  -    
  -    public void setHtmlFor( String htmlFor )
  -    {
  -        setAttribute( "for", htmlFor );
  -    }
  -
  -    
  -       public String getEvent()
  -    {
  -        return getAttribute( "event" );
  -    }
  -    
  -    
  -    public void setEvent( String event )
  -    {
  -        setAttribute( "event", event );
  -    }
  -    
  -       public String getCharset()
  -    {
  -        return getAttribute( "charset" );
  -    }
  -    
  -    
  -    public void setCharset( String charset )
  -    {
  -        setAttribute( "charset", charset );
  -    }
  -
  -    
  -    public boolean getDefer()
  -    {
  -        return getBinary( "defer" );
  -    }
  -    
  -    
  -    public void setDefer( boolean defer )
  -    {
  -        setAttribute( "defer", defer );
  -    }
  -
  -  
  -       public String getSrc()
  -    {
  -        return getAttribute( "src" );
  -    }
  -    
  -    
  -    public void setSrc( String src )
  -    {
  -        setAttribute( "src", src );
  -    }
  -
  -  
  -    public String getType()
  -    {
  -        return getAttribute( "type" );
  -    }
  -    
  -    
  -    public void setType( String type )
  -    {
  -        setAttribute( "type", type );
  -    }
  -    
  -    
  -      /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLScriptElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:44 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLScriptElement
  + * @see ElementImpl
  + */
  +public final class HTMLScriptElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLScriptElement
  +{
  +    
  +    
  +    public String getText()
  +    {
  +        Node    child;
  +        String    text;
  +        
  +        // Find the Text nodes contained within this element and return their
  +        // concatenated value. Required to go around comments, entities, etc.
  +        child = getFirstChild();
  +        text = "";
  +        while ( child != null )
  +        {
  +            if ( child instanceof Text )
  +                text = text + ( (Text) child ).getData();
  +            child = child.getNextSibling();
  +        }
  +        return text;
  +    }
  +    
  +    
  +    public void setText( String text )
  +    {
  +        Node    child;
  +        Node    next;
  +        
  +        // Delete all the nodes and replace them with a single Text node.
  +        // This is the only approach that can handle comments and other nodes.
  +        child = getFirstChild();
  +        while ( child != null )
  +        {
  +            next = child.getNextSibling();
  +            removeChild( child );
  +            child = next;
  +        }
  +        insertBefore( getOwnerDocument().createTextNode( text ), getFirstChild() );
  +    }
  +
  +    
  +       public String getHtmlFor()
  +    {
  +        return getAttribute( "for" );
  +    }
  +    
  +    
  +    public void setHtmlFor( String htmlFor )
  +    {
  +        setAttribute( "for", htmlFor );
  +    }
  +
  +    
  +       public String getEvent()
  +    {
  +        return getAttribute( "event" );
  +    }
  +    
  +    
  +    public void setEvent( String event )
  +    {
  +        setAttribute( "event", event );
  +    }
  +    
  +       public String getCharset()
  +    {
  +        return getAttribute( "charset" );
  +    }
  +    
  +    
  +    public void setCharset( String charset )
  +    {
  +        setAttribute( "charset", charset );
  +    }
  +
  +    
  +    public boolean getDefer()
  +    {
  +        return getBinary( "defer" );
  +    }
  +    
  +    
  +    public void setDefer( boolean defer )
  +    {
  +        setAttribute( "defer", defer );
  +    }
  +
  +  
  +       public String getSrc()
  +    {
  +        return getAttribute( "src" );
  +    }
  +    
  +    
  +    public void setSrc( String src )
  +    {
  +        setAttribute( "src", src );
  +    }
  +
  +  
  +    public String getType()
  +    {
  +        return getAttribute( "type" );
  +    }
  +    
  +    
  +    public void setType( String type )
  +    {
  +        setAttribute( "type", type );
  +    }
  +    
  +    
  +      /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLScriptElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +
  
  
  
  1.3       +196 -196  xml-xerces/java/src/org/apache/html/dom/HTMLSelectElementImpl.java
  
  Index: HTMLSelectElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLSelectElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLSelectElementImpl.java	2000/02/10 04:00:12	1.2
  +++ HTMLSelectElementImpl.java	2000/12/21 00:33:44	1.3
  @@ -54,199 +54,199 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:12 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLSelectElement
  - * @see ElementImpl
  - */
  -public final class HTMLSelectElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLSelectElement, HTMLFormControl
  -{
  -    
  -    
  -    public String getType()
  -    {
  -        return getAttribute( "type" );
  -    }
  -
  -    
  -      public String getValue()
  -    {
  -        return getAttribute( "value" );
  -    }
  -    
  -    
  -    public void setValue( String value )
  -    {
  -        setAttribute( "value", value );
  -    }
  -
  -    
  -    public int getSelectedIndex()
  -    {
  -        NodeList    options;
  -        int            i;
  -        
  -        // Use getElementsByTagName() which creates a snapshot of all the
  -        // OPTION elements under this SELECT. Access to the returned NodeList
  -        // is very fast and the snapshot solves many synchronization problems.
  -        // Locate the first selected OPTION and return its index. Note that
  -        // the OPTION might be under an OPTGROUP.
  -        options = getElementsByTagName( "OPTION" );
  -        for ( i = 0 ; i < options.getLength() ; ++i )
  -            if ( ( (HTMLOptionElement) options.item( i ) ).getSelected() )
  -                return i;
  -        return -1;
  -    }
  -    
  -    
  -    public void setSelectedIndex( int selectedIndex )
  -    {
  -        NodeList    options;
  -        int            i;
  -        
  -        // Use getElementsByTagName() which creates a snapshot of all the
  -        // OPTION elements under this SELECT. Access to the returned NodeList
  -        // is very fast and the snapshot solves many synchronization problems.
  -        // Change the select so all OPTIONs are off, except for the
  -        // selectIndex-th one.
  -        options = getElementsByTagName( "OPTION" );
  -        for ( i = 0 ; i < options.getLength() ; ++i )
  -            ( (HTMLOptionElementImpl) options.item( i ) ).setSelected( i == selectedIndex );
  -    }
  -
  -  
  -    public HTMLCollection getOptions()
  -    {
  -        if ( _options == null )
  -            _options = new HTMLCollectionImpl( this, HTMLCollectionImpl.OPTION );
  -        return _options;
  -    }
  -    
  -
  -    public int getLength()
  -    {
  -        return getOptions().getLength();
  -    }
  -    
  -    
  -    public boolean getDisabled()
  -    {
  -        return getBinary( "disabled" );
  -    }
  -    
  -    
  -    public void setDisabled( boolean disabled )
  -    {
  -        setAttribute( "disabled", disabled );
  -    }
  -
  -    
  -      public boolean getMultiple()
  -    {
  -        return getBinary( "multiple" );
  -    }
  -    
  -    
  -    public void setMultiple( boolean multiple )
  -    {
  -        setAttribute( "multiple", multiple );
  -    }
  -
  -  
  -      public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -
  -    
  -    public int getSize()
  -    {
  -        return getInteger( getAttribute( "size" ) );
  -    }
  -    
  -    
  -    public void setSize( int size )
  -    {
  -        setAttribute( "size", String.valueOf( size ) );
  -    }
  -
  -  
  -    public int getTabIndex()
  -    {
  -        return getInteger( getAttribute( "tabindex" ) );
  -    }
  -    
  -    
  -    public void setTabIndex( int tabIndex )
  -    {
  -        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  -    }
  -
  -    
  -    public void add( HTMLElement element, HTMLElement before )
  -    {
  -        insertBefore( element, before );
  -    }
  -  
  -  
  -    public void remove( int index )
  -    {
  -        NodeList    options;
  -        Node        removed;
  -        
  -        // Use getElementsByTagName() which creates a snapshot of all the
  -        // OPTION elements under this SELECT. Access to the returned NodeList
  -        // is very fast and the snapshot solves many synchronization problems.
  -        // Remove the indexed OPTION from it's parent, this might be this
  -        // SELECT or an OPTGROUP.
  -        options = getElementsByTagName( "OPTION" );
  -        removed = options.item( index );
  -        if ( removed != null )
  -            removed.getParentNode().removeChild ( removed );
  -    }
  -
  -  
  -    public void               blur()
  -    {
  -        // No scripting in server-side DOM. This method is moot.
  -    }
  -      
  -      
  -    public void               focus()
  -    {
  -        // No scripting in server-side DOM. This method is moot.
  -    }
  -
  -  
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLSelectElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -
  -    private HTMLCollection    _options;
  -  
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:44 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLSelectElement
  + * @see ElementImpl
  + */
  +public final class HTMLSelectElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLSelectElement, HTMLFormControl
  +{
  +    
  +    
  +    public String getType()
  +    {
  +        return getAttribute( "type" );
  +    }
  +
  +    
  +      public String getValue()
  +    {
  +        return getAttribute( "value" );
  +    }
  +    
  +    
  +    public void setValue( String value )
  +    {
  +        setAttribute( "value", value );
  +    }
  +
  +    
  +    public int getSelectedIndex()
  +    {
  +        NodeList    options;
  +        int            i;
  +        
  +        // Use getElementsByTagName() which creates a snapshot of all the
  +        // OPTION elements under this SELECT. Access to the returned NodeList
  +        // is very fast and the snapshot solves many synchronization problems.
  +        // Locate the first selected OPTION and return its index. Note that
  +        // the OPTION might be under an OPTGROUP.
  +        options = getElementsByTagName( "OPTION" );
  +        for ( i = 0 ; i < options.getLength() ; ++i )
  +            if ( ( (HTMLOptionElement) options.item( i ) ).getSelected() )
  +                return i;
  +        return -1;
  +    }
  +    
  +    
  +    public void setSelectedIndex( int selectedIndex )
  +    {
  +        NodeList    options;
  +        int            i;
  +        
  +        // Use getElementsByTagName() which creates a snapshot of all the
  +        // OPTION elements under this SELECT. Access to the returned NodeList
  +        // is very fast and the snapshot solves many synchronization problems.
  +        // Change the select so all OPTIONs are off, except for the
  +        // selectIndex-th one.
  +        options = getElementsByTagName( "OPTION" );
  +        for ( i = 0 ; i < options.getLength() ; ++i )
  +            ( (HTMLOptionElementImpl) options.item( i ) ).setSelected( i == selectedIndex );
  +    }
  +
  +  
  +    public HTMLCollection getOptions()
  +    {
  +        if ( _options == null )
  +            _options = new HTMLCollectionImpl( this, HTMLCollectionImpl.OPTION );
  +        return _options;
  +    }
  +    
  +
  +    public int getLength()
  +    {
  +        return getOptions().getLength();
  +    }
  +    
  +    
  +    public boolean getDisabled()
  +    {
  +        return getBinary( "disabled" );
  +    }
  +    
  +    
  +    public void setDisabled( boolean disabled )
  +    {
  +        setAttribute( "disabled", disabled );
  +    }
  +
  +    
  +      public boolean getMultiple()
  +    {
  +        return getBinary( "multiple" );
  +    }
  +    
  +    
  +    public void setMultiple( boolean multiple )
  +    {
  +        setAttribute( "multiple", multiple );
  +    }
  +
  +  
  +      public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +
  +    
  +    public int getSize()
  +    {
  +        return getInteger( getAttribute( "size" ) );
  +    }
  +    
  +    
  +    public void setSize( int size )
  +    {
  +        setAttribute( "size", String.valueOf( size ) );
  +    }
  +
  +  
  +    public int getTabIndex()
  +    {
  +        return getInteger( getAttribute( "tabindex" ) );
  +    }
  +    
  +    
  +    public void setTabIndex( int tabIndex )
  +    {
  +        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  +    }
  +
  +    
  +    public void add( HTMLElement element, HTMLElement before )
  +    {
  +        insertBefore( element, before );
  +    }
  +  
  +  
  +    public void remove( int index )
  +    {
  +        NodeList    options;
  +        Node        removed;
  +        
  +        // Use getElementsByTagName() which creates a snapshot of all the
  +        // OPTION elements under this SELECT. Access to the returned NodeList
  +        // is very fast and the snapshot solves many synchronization problems.
  +        // Remove the indexed OPTION from it's parent, this might be this
  +        // SELECT or an OPTGROUP.
  +        options = getElementsByTagName( "OPTION" );
  +        removed = options.item( index );
  +        if ( removed != null )
  +            removed.getParentNode().removeChild ( removed );
  +    }
  +
  +  
  +    public void               blur()
  +    {
  +        // No scripting in server-side DOM. This method is moot.
  +    }
  +      
  +      
  +    public void               focus()
  +    {
  +        // No scripting in server-side DOM. This method is moot.
  +    }
  +
  +  
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLSelectElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +
  +    private HTMLCollection    _options;
  +  
  +  
  +}
  +
  
  
  
  1.3       +68 -68    xml-xerces/java/src/org/apache/html/dom/HTMLStyleElementImpl.java
  
  Index: HTMLStyleElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLStyleElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLStyleElementImpl.java	2000/02/10 04:00:12	1.2
  +++ HTMLStyleElementImpl.java	2000/12/21 00:33:44	1.3
  @@ -54,71 +54,71 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:12 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLStyleElement
  - * @see ElementImpl
  - */
  -public final class HTMLStyleElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLStyleElement
  -{
  -    
  -    
  -    public boolean getDisabled()
  -    {
  -        return getBinary( "disabled" );
  -    }
  -    
  -    
  -    public void setDisabled( boolean disabled )
  -    {
  -        setAttribute( "disabled", disabled );
  -    }
  -
  -    
  -    public String getMedia()
  -    {
  -        return getAttribute( "media" );
  -    }
  -    
  -    
  -    public void setMedia( String media )
  -    {
  -        setAttribute( "media", media );
  -    }
  -  
  -  
  -    public String getType()
  -    {
  -        return getAttribute( "type" );
  -    }
  -    
  -    
  -    public void setType( String type )
  -    {
  -        setAttribute( "type", type );
  -    }
  -    
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLStyleElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:44 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLStyleElement
  + * @see ElementImpl
  + */
  +public final class HTMLStyleElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLStyleElement
  +{
  +    
  +    
  +    public boolean getDisabled()
  +    {
  +        return getBinary( "disabled" );
  +    }
  +    
  +    
  +    public void setDisabled( boolean disabled )
  +    {
  +        setAttribute( "disabled", disabled );
  +    }
  +
  +    
  +    public String getMedia()
  +    {
  +        return getAttribute( "media" );
  +    }
  +    
  +    
  +    public void setMedia( String media )
  +    {
  +        setAttribute( "media", media );
  +    }
  +  
  +  
  +    public String getType()
  +    {
  +        return getAttribute( "type" );
  +    }
  +    
  +    
  +    public void setType( String type )
  +    {
  +        setAttribute( "type", type );
  +    }
  +    
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLStyleElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +
  
  
  
  1.3       +44 -44    xml-xerces/java/src/org/apache/html/dom/HTMLTableCaptionElementImpl.java
  
  Index: HTMLTableCaptionElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLTableCaptionElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLTableCaptionElementImpl.java	2000/02/10 04:00:12	1.2
  +++ HTMLTableCaptionElementImpl.java	2000/12/21 00:33:44	1.3
  @@ -54,47 +54,47 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:12 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLTableCaptionElement
  - * @see ElementImpl
  - */
  -public final class HTMLTableCaptionElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLTableCaptionElement
  -{
  -    
  -    
  -    public String getAlign()
  -    {
  -        return getAttribute( "align" );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -  
  -    
  -      /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLTableCaptionElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:44 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLTableCaptionElement
  + * @see ElementImpl
  + */
  +public final class HTMLTableCaptionElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLTableCaptionElement
  +{
  +    
  +    
  +    public String getAlign()
  +    {
  +        return getAttribute( "align" );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +  
  +    
  +      /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLTableCaptionElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +
  
  
  
  1.3       +262 -262  xml-xerces/java/src/org/apache/html/dom/HTMLTableCellElementImpl.java
  
  Index: HTMLTableCellElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLTableCellElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLTableCellElementImpl.java	2000/02/10 04:00:12	1.2
  +++ HTMLTableCellElementImpl.java	2000/12/21 00:33:44	1.3
  @@ -54,265 +54,265 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:12 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLTableCellElement
  - * @see ElementImpl
  - */
  -public final class HTMLTableCellElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLTableCellElement
  -{
  -    
  -
  -    public int getCellIndex()
  -    {
  -        Node    parent;
  -        Node    child;
  -        int        index;
  -        
  -        parent = getParentNode();
  -        index = 0;
  -        if ( parent instanceof HTMLTableRowElement )
  -        {
  -            child = parent.getFirstChild();
  -            while ( child != null )
  -            {
  -                if ( child instanceof HTMLTableCellElement )
  -                {
  -                    if ( child == this )
  -                        return index;
  -                    ++ index;
  -                }
  -                child = child.getNextSibling();
  -            }
  -        }
  -        return -1;
  -    }
  -    
  -    
  -    public void setCellIndex( int cellIndex )
  -    {
  -        Node    parent;
  -        Node    child;
  -        int        index;
  -        
  -        parent = getParentNode();
  -        if ( parent instanceof HTMLTableRowElement )
  -        {
  -            child = parent.getFirstChild();
  -            while ( child != null )
  -            {
  -                if ( child instanceof HTMLTableCellElement )
  -                {
  -                    if ( cellIndex == 0 )
  -                    {
  -                        if ( this != child )
  -                            parent.insertBefore( this, child );
  -                        return;
  -                    }
  -                    -- cellIndex;
  -                }
  -                child = child.getNextSibling();
  -            }
  -        }
  -        parent.appendChild( this );
  -    }
  -
  -  
  -    public String getAbbr()
  -    {
  -        return getAttribute( "abbr" );
  -    }
  -    
  -    
  -    public void setAbbr( String abbr )
  -    {
  -        setAttribute( "abbr", abbr );
  -    }
  -
  -  
  -    public String getAlign()
  -    {
  -        return capitalize( getAttribute( "align" ) );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -  
  -    
  -    public String getAxis()
  -    {
  -        return getAttribute( "axis" );
  -    }
  -    
  -    
  -    public void setAxis( String axis )
  -    {
  -        setAttribute( "axis", axis );
  -    }
  -    
  -    public String getBgColor()
  -    {
  -        return getAttribute( "bgcolor" );
  -    }
  -    
  -    
  -    public void setBgColor( String bgColor )
  -    {
  -        setAttribute( "bgcolor", bgColor );
  -    }
  -
  -  
  -    public String getCh()
  -    {
  -        String    ch;
  -        
  -        // Make sure that the access key is a single character.
  -        ch = getAttribute( "char" );
  -        if ( ch != null && ch.length() > 1 )
  -            ch = ch.substring( 0, 1 );
  -        return ch;
  -    }
  -    
  -    
  -    public void setCh( String ch )
  -    {
  -        // Make sure that the access key is a single character.
  -        if ( ch != null && ch.length() > 1 )
  -            ch = ch.substring( 0, 1 );
  -        setAttribute( "char", ch );
  -    }
  -
  -    
  -    public String getChOff()
  -    {
  -        return getAttribute( "charoff" );
  -    }
  -    
  -    
  -    public void setChOff( String chOff )
  -    {
  -        setAttribute( "charoff", chOff );
  -    }
  -  
  -  
  -    public int getColSpan()
  -    {
  -        return getInteger( getAttribute( "colspan" ) );
  -    }
  -    
  -    
  -    public void setColSpan( int colspan )
  -    {
  -        setAttribute( "colspan", String.valueOf( colspan ) );
  -    }
  -    
  -    
  -    public String getHeaders()
  -    {
  -        return getAttribute( "headers" );
  -    }
  -    
  -    
  -    public void setHeaders( String headers )
  -    {
  -        setAttribute( "headers", headers );
  -    }
  -  
  -  
  -    public String getHeight()
  -    {
  -        return getAttribute( "height" );
  -    }
  -    
  -    
  -    public void setHeight( String height )
  -    {
  -        setAttribute( "height", height );
  -    }
  -
  -  
  -      public boolean getNoWrap()
  -    {
  -        return getBinary( "nowrap" );
  -    }
  -    
  -    
  -    public void setNoWrap( boolean noWrap )
  -    {
  -        setAttribute( "nowrap", noWrap );
  -    }
  -
  -    public int getRowSpan()
  -    {
  -        return getInteger( getAttribute( "rowspan" ) );
  -    }
  -    
  -    
  -    public void setRowSpan( int rowspan )
  -    {
  -        setAttribute( "rowspan", String.valueOf( rowspan ) );
  -    }
  -  
  -    
  -    public String getScope()
  -    {
  -        return getAttribute( "scope" );
  -    }
  -    
  -    
  -    public void setScope( String scope )
  -    {
  -        setAttribute( "scope", scope );
  -    }
  -  
  -  
  -    public String getVAlign()
  -    {
  -        return capitalize( getAttribute( "valign" ) );
  -    }
  -    
  -    
  -    public void setVAlign( String vAlign )
  -    {
  -        setAttribute( "valign", vAlign );
  -    }
  -
  -  
  -      public String getWidth()
  -    {
  -        return getAttribute( "width" );
  -    }
  -    
  -    
  -    public void setWidth( String width )
  -    {
  -        setAttribute( "width", width );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLTableCellElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:44 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLTableCellElement
  + * @see ElementImpl
  + */
  +public final class HTMLTableCellElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLTableCellElement
  +{
  +    
  +
  +    public int getCellIndex()
  +    {
  +        Node    parent;
  +        Node    child;
  +        int        index;
  +        
  +        parent = getParentNode();
  +        index = 0;
  +        if ( parent instanceof HTMLTableRowElement )
  +        {
  +            child = parent.getFirstChild();
  +            while ( child != null )
  +            {
  +                if ( child instanceof HTMLTableCellElement )
  +                {
  +                    if ( child == this )
  +                        return index;
  +                    ++ index;
  +                }
  +                child = child.getNextSibling();
  +            }
  +        }
  +        return -1;
  +    }
  +    
  +    
  +    public void setCellIndex( int cellIndex )
  +    {
  +        Node    parent;
  +        Node    child;
  +        int        index;
  +        
  +        parent = getParentNode();
  +        if ( parent instanceof HTMLTableRowElement )
  +        {
  +            child = parent.getFirstChild();
  +            while ( child != null )
  +            {
  +                if ( child instanceof HTMLTableCellElement )
  +                {
  +                    if ( cellIndex == 0 )
  +                    {
  +                        if ( this != child )
  +                            parent.insertBefore( this, child );
  +                        return;
  +                    }
  +                    -- cellIndex;
  +                }
  +                child = child.getNextSibling();
  +            }
  +        }
  +        parent.appendChild( this );
  +    }
  +
  +  
  +    public String getAbbr()
  +    {
  +        return getAttribute( "abbr" );
  +    }
  +    
  +    
  +    public void setAbbr( String abbr )
  +    {
  +        setAttribute( "abbr", abbr );
  +    }
  +
  +  
  +    public String getAlign()
  +    {
  +        return capitalize( getAttribute( "align" ) );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +  
  +    
  +    public String getAxis()
  +    {
  +        return getAttribute( "axis" );
  +    }
  +    
  +    
  +    public void setAxis( String axis )
  +    {
  +        setAttribute( "axis", axis );
  +    }
  +    
  +    public String getBgColor()
  +    {
  +        return getAttribute( "bgcolor" );
  +    }
  +    
  +    
  +    public void setBgColor( String bgColor )
  +    {
  +        setAttribute( "bgcolor", bgColor );
  +    }
  +
  +  
  +    public String getCh()
  +    {
  +        String    ch;
  +        
  +        // Make sure that the access key is a single character.
  +        ch = getAttribute( "char" );
  +        if ( ch != null && ch.length() > 1 )
  +            ch = ch.substring( 0, 1 );
  +        return ch;
  +    }
  +    
  +    
  +    public void setCh( String ch )
  +    {
  +        // Make sure that the access key is a single character.
  +        if ( ch != null && ch.length() > 1 )
  +            ch = ch.substring( 0, 1 );
  +        setAttribute( "char", ch );
  +    }
  +
  +    
  +    public String getChOff()
  +    {
  +        return getAttribute( "charoff" );
  +    }
  +    
  +    
  +    public void setChOff( String chOff )
  +    {
  +        setAttribute( "charoff", chOff );
  +    }
  +  
  +  
  +    public int getColSpan()
  +    {
  +        return getInteger( getAttribute( "colspan" ) );
  +    }
  +    
  +    
  +    public void setColSpan( int colspan )
  +    {
  +        setAttribute( "colspan", String.valueOf( colspan ) );
  +    }
  +    
  +    
  +    public String getHeaders()
  +    {
  +        return getAttribute( "headers" );
  +    }
  +    
  +    
  +    public void setHeaders( String headers )
  +    {
  +        setAttribute( "headers", headers );
  +    }
  +  
  +  
  +    public String getHeight()
  +    {
  +        return getAttribute( "height" );
  +    }
  +    
  +    
  +    public void setHeight( String height )
  +    {
  +        setAttribute( "height", height );
  +    }
  +
  +  
  +      public boolean getNoWrap()
  +    {
  +        return getBinary( "nowrap" );
  +    }
  +    
  +    
  +    public void setNoWrap( boolean noWrap )
  +    {
  +        setAttribute( "nowrap", noWrap );
  +    }
  +
  +    public int getRowSpan()
  +    {
  +        return getInteger( getAttribute( "rowspan" ) );
  +    }
  +    
  +    
  +    public void setRowSpan( int rowspan )
  +    {
  +        setAttribute( "rowspan", String.valueOf( rowspan ) );
  +    }
  +  
  +    
  +    public String getScope()
  +    {
  +        return getAttribute( "scope" );
  +    }
  +    
  +    
  +    public void setScope( String scope )
  +    {
  +        setAttribute( "scope", scope );
  +    }
  +  
  +  
  +    public String getVAlign()
  +    {
  +        return capitalize( getAttribute( "valign" ) );
  +    }
  +    
  +    
  +    public void setVAlign( String vAlign )
  +    {
  +        setAttribute( "valign", vAlign );
  +    }
  +
  +  
  +      public String getWidth()
  +    {
  +        return getAttribute( "width" );
  +    }
  +    
  +    
  +    public void setWidth( String width )
  +    {
  +        setAttribute( "width", width );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLTableCellElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +
  
  
  
  1.3       +112 -112  xml-xerces/java/src/org/apache/html/dom/HTMLTableColElementImpl.java
  
  Index: HTMLTableColElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLTableColElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLTableColElementImpl.java	2000/02/10 04:00:12	1.2
  +++ HTMLTableColElementImpl.java	2000/12/21 00:33:44	1.3
  @@ -54,115 +54,115 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:12 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLTableColElement
  - * @see ElementImpl
  - */
  -public final class HTMLTableColElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLTableColElement
  -{
  -    
  -    
  -    public String getAlign()
  -    {
  -        return capitalize( getAttribute( "align" ) );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -  
  -    
  -    public String getCh()
  -    {
  -        String    ch;
  -        
  -        // Make sure that the access key is a single character.
  -        ch = getAttribute( "char" );
  -        if ( ch != null && ch.length() > 1 )
  -            ch = ch.substring( 0, 1 );
  -        return ch;
  -    }
  -    
  -    
  -    public void setCh( String ch )
  -    {
  -        // Make sure that the access key is a single character.
  -        if ( ch != null && ch.length() > 1 )
  -            ch = ch.substring( 0, 1 );
  -        setAttribute( "char", ch );
  -    }
  -
  -
  -    public String getChOff()
  -    {
  -        return getAttribute( "charoff" );
  -    }
  -    
  -    
  -    public void setChOff( String chOff )
  -    {
  -        setAttribute( "charoff", chOff );
  -    }
  -  
  -  
  -    public int getSpan()
  -    {
  -        return getInteger( getAttribute( "span" ) );
  -    }
  -    
  -    
  -    public void setSpan( int span )
  -    {
  -        setAttribute( "span", String.valueOf( span ) );
  -    }
  -
  -    
  -    public String getVAlign()
  -    {
  -        return capitalize( getAttribute( "valign" ) );
  -    }
  -    
  -    
  -    public void setVAlign( String vAlign )
  -    {
  -        setAttribute( "valign", vAlign );
  -    }
  -    
  -    public String getWidth()
  -    {
  -        return getAttribute( "width" );
  -    }
  -    
  -    
  -    public void setWidth( String width )
  -    {
  -        setAttribute( "width", width );
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLTableColElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:44 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLTableColElement
  + * @see ElementImpl
  + */
  +public final class HTMLTableColElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLTableColElement
  +{
  +    
  +    
  +    public String getAlign()
  +    {
  +        return capitalize( getAttribute( "align" ) );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +  
  +    
  +    public String getCh()
  +    {
  +        String    ch;
  +        
  +        // Make sure that the access key is a single character.
  +        ch = getAttribute( "char" );
  +        if ( ch != null && ch.length() > 1 )
  +            ch = ch.substring( 0, 1 );
  +        return ch;
  +    }
  +    
  +    
  +    public void setCh( String ch )
  +    {
  +        // Make sure that the access key is a single character.
  +        if ( ch != null && ch.length() > 1 )
  +            ch = ch.substring( 0, 1 );
  +        setAttribute( "char", ch );
  +    }
  +
  +
  +    public String getChOff()
  +    {
  +        return getAttribute( "charoff" );
  +    }
  +    
  +    
  +    public void setChOff( String chOff )
  +    {
  +        setAttribute( "charoff", chOff );
  +    }
  +  
  +  
  +    public int getSpan()
  +    {
  +        return getInteger( getAttribute( "span" ) );
  +    }
  +    
  +    
  +    public void setSpan( int span )
  +    {
  +        setAttribute( "span", String.valueOf( span ) );
  +    }
  +
  +    
  +    public String getVAlign()
  +    {
  +        return capitalize( getAttribute( "valign" ) );
  +    }
  +    
  +    
  +    public void setVAlign( String vAlign )
  +    {
  +        setAttribute( "valign", vAlign );
  +    }
  +    
  +    public String getWidth()
  +    {
  +        return getAttribute( "width" );
  +    }
  +    
  +    
  +    public void setWidth( String width )
  +    {
  +        setAttribute( "width", width );
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLTableColElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +
  
  
  
  1.6       +377 -377  xml-xerces/java/src/org/apache/html/dom/HTMLTableElementImpl.java
  
  Index: HTMLTableElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLTableElementImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- HTMLTableElementImpl.java	2000/03/28 23:01:53	1.5
  +++ HTMLTableElementImpl.java	2000/12/21 00:33:45	1.6
  @@ -54,380 +54,380 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.5 $ $Date: 2000/03/28 23:01:53 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLAnchorElement
  - * @see ElementImpl
  - */
  -public final class HTMLTableElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLTableElement
  -{
  -    
  -    
  -    public synchronized HTMLTableCaptionElement getCaption()
  -    {
  -        Node    child;
  -        
  -        child = getFirstChild();
  -        while ( child != null )
  -        {
  -            if ( child instanceof HTMLTableCaptionElement &&
  -                 child.getNodeName().equals( "CAPTION" ) )
  -                return (HTMLTableCaptionElement) child;
  -            child = child.getNextSibling();
  -        }
  -        return null;
  -    }
  -    
  -    
  -    public synchronized void setCaption( HTMLTableCaptionElement caption )
  -    {
  -        if ( caption != null && ! caption.getTagName().equals( "CAPTION" ) )
  -            throw new IllegalArgumentException( "HTM016 Argument 'caption' is not an element of type <CAPTION>." );
  -        deleteCaption();
  -        if ( caption != null )
  -            appendChild( caption );
  -    }
  -    
  -    
  -    public synchronized HTMLElement createCaption()
  -    {
  -        HTMLElement    section;
  -        
  -        section = getCaption();
  -        if ( section != null )
  -            return section;
  -        section = new HTMLTableCaptionElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "CAPTION" );
  -        appendChild( section );
  -        return section;
  -    }
  -
  -  
  -    public synchronized void deleteCaption()
  -    {
  -        Node    old;
  -        
  -        old = getCaption();
  -        if ( old != null )
  -            removeChild ( old );
  -    }
  -    
  -    public synchronized HTMLTableSectionElement getTHead()
  -    {
  -        Node    child;
  -        
  -        child = getFirstChild();
  -        while ( child != null )
  -        {
  -            if ( child instanceof HTMLTableSectionElement &&
  -                 child.getNodeName().equals( "THEAD" ) )
  -                return (HTMLTableSectionElement) child;
  -            child = child.getNextSibling();
  -        }
  -        return null;
  -    }
  -    
  -    
  -    public synchronized void setTHead( HTMLTableSectionElement tHead )
  -    {
  -        if ( tHead != null && ! tHead.getTagName().equals( "THEAD" ) )
  -            throw new IllegalArgumentException( "HTM017 Argument 'tHead' is not an element of type <THEAD>." );
  -        deleteTHead();
  -        if ( tHead != null )
  -            appendChild( tHead );
  -    }
  -    
  -    
  -    public synchronized HTMLElement createTHead()
  -    {
  -        HTMLElement    section;
  -        
  -        section = getTHead();
  -        if ( section != null )
  -            return section;
  -        section = new HTMLTableSectionElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "THEAD" );
  -        appendChild( section );
  -        return section;
  -    }
  -
  -    
  -    public synchronized void deleteTHead()
  -    {
  -        Node    old;
  -        
  -        old = getTHead();
  -        if ( old != null )
  -            removeChild ( old );
  -    }
  -    
  -    public synchronized HTMLTableSectionElement getTFoot()
  -    {
  -        Node    child;
  -        
  -        child = getFirstChild();
  -        while ( child != null )
  -        {
  -            if ( child instanceof HTMLTableSectionElement &&
  -                 child.getNodeName().equals( "TFOOT" ) )
  -                return (HTMLTableSectionElement) child;
  -            child = child.getNextSibling();
  -        }
  -        return null;
  -    }
  -    
  -    
  -    public synchronized void setTFoot( HTMLTableSectionElement tFoot )
  -    {
  -        if ( tFoot != null && ! tFoot.getTagName().equals( "TFOOT" ) )
  -            throw new IllegalArgumentException( "HTM018 Argument 'tFoot' is not an element of type <TFOOT>." );
  -        deleteTFoot();
  -        if ( tFoot != null )
  -            appendChild( tFoot );
  -    }
  -    
  -    
  -    public synchronized HTMLElement createTFoot()
  -    {
  -        HTMLElement    section;
  -        
  -        section = getTFoot();
  -        if ( section != null )
  -            return section;
  -        section = new HTMLTableSectionElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "TFOOT" );
  -        appendChild( section );
  -        return section;
  -    }
  -
  -    
  -    public synchronized void deleteTFoot()
  -    {
  -        Node    old;
  -        
  -        old = getTFoot();
  -        if ( old != null )
  -            removeChild ( old );
  -    }
  -    
  -    public HTMLCollection getRows()
  -    {
  -        if ( _rows == null )
  -            _rows = new HTMLCollectionImpl( this, HTMLCollectionImpl.ROW );
  -        return _rows;
  -    }
  -    
  -
  -    public HTMLCollection getTBodies()
  -    {
  -        if ( _bodies == null )
  -            _bodies = new HTMLCollectionImpl( this, HTMLCollectionImpl.TBODY );
  -        return _bodies;
  -    }
  -  
  -  
  -    public String getAlign()
  -    {
  -        return capitalize( getAttribute( "align" ) );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -  
  -    
  -    public String getBgColor()
  -    {
  -        return getAttribute( "bgcolor" );
  -    }
  -    
  -    
  -    public void setBgColor( String bgColor )
  -    {
  -        setAttribute( "bgcolor", bgColor );
  -    }
  -  
  -  
  -    public String getBorder()
  -    {
  -        return getAttribute( "border" );
  -    }
  -    
  -    
  -    public void setBorder( String border )
  -    {
  -        setAttribute( "border", border );
  -    }
  -
  -    
  -    public String getCellPadding()
  -    {
  -        return getAttribute( "cellpadding" );
  -    }
  -    
  -    
  -    public void setCellPadding( String cellPadding )
  -    {
  -        setAttribute( "cellpadding", cellPadding );
  -    }
  -    
  -    
  -    public String getCellSpacing()
  -    {
  -        return getAttribute( "cellspacing" );
  -    }
  -    
  -    
  -    public void setCellSpacing( String cellSpacing )
  -    {
  -        setAttribute( "cellspacing", cellSpacing );
  -    }
  -    
  -    
  -    public String getFrame()
  -    {
  -        return capitalize( getAttribute( "frame" ) );
  -    }
  -    
  -    
  -    public void setFrame( String frame )
  -    {
  -        setAttribute( "frame", frame );
  -    }
  -    
  -    
  -    public String getRules()
  -    {
  -        return capitalize( getAttribute( "rules" ) );
  -    }
  -    
  -    
  -    public void setRules( String rules )
  -    {
  -        setAttribute( "rules", rules );
  -    }
  -    
  -    
  -    public String getSummary()
  -    {
  -        return getAttribute( "summary" );
  -    }
  -    
  -    
  -    public void setSummary( String summary )
  -    {
  -        setAttribute( "summary", summary );
  -    }
  -
  -  
  -      public String getWidth()
  -    {
  -        return getAttribute( "width" );
  -    }
  -    
  -    
  -    public void setWidth( String width )
  -    {
  -        setAttribute( "width", width );
  -    }
  -
  -    
  -    public HTMLElement insertRow( int index )
  -    {
  -        HTMLTableRowElementImpl    newRow;
  -
  -        newRow = new HTMLTableRowElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "TR" );
  -        //newRow.insertCell( 0 );
  -        insertRowX( index, newRow );
  -        return newRow;
  -    }
  -        
  -        
  -    void insertRowX( int index, HTMLTableRowElementImpl newRow )
  -    {
  -        Node    child;
  -        Node    lastSection = null;
  -                
  -        child = getFirstChild();
  -        while ( child != null )
  -        {
  -            if ( child instanceof HTMLTableRowElement )
  -            {
  -                if ( index == 0 )
  -                {
  -                    insertBefore( newRow, child );
  -                    return;
  -                }
  -            }
  -            else
  -            if ( child instanceof HTMLTableSectionElementImpl )
  -            {
  -                lastSection = child;
  -                index = ( (HTMLTableSectionElementImpl) child ).insertRowX( index, newRow );
  -                if ( index < 0 )
  -                    return;
  -            }
  -            child = child.getNextSibling();
  -        }
  -        if ( lastSection != null )
  -            lastSection.appendChild( newRow );
  -        else
  -            appendChild( newRow );
  -    }
  -    
  -    
  -    public synchronized void deleteRow( int index )
  -    {
  -        Node    child;
  -        
  -        child = getFirstChild();
  -        while ( child != null )
  -        {
  -            if ( child instanceof HTMLTableRowElement )
  -            {
  -                if ( index == 0 )
  -                {
  -                    removeChild ( child );
  -                    return;
  -                }
  -            }
  -            else
  -            if ( child instanceof HTMLTableSectionElementImpl )
  -            {
  -                index = ( (HTMLTableSectionElementImpl) child ).deleteRowX( index );
  -                if ( index < 0 )
  -                    return;
  -            }
  -            child = child.getNextSibling();
  -        }
  -    }
  -
  -  
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLTableElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -    
  -  
  -    private HTMLCollectionImpl    _rows;
  -    
  -    
  -    private HTMLCollectionImpl    _bodies;
  -  
  -    
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.6 $ $Date: 2000/12/21 00:33:45 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLAnchorElement
  + * @see ElementImpl
  + */
  +public final class HTMLTableElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLTableElement
  +{
  +    
  +    
  +    public synchronized HTMLTableCaptionElement getCaption()
  +    {
  +        Node    child;
  +        
  +        child = getFirstChild();
  +        while ( child != null )
  +        {
  +            if ( child instanceof HTMLTableCaptionElement &&
  +                 child.getNodeName().equals( "CAPTION" ) )
  +                return (HTMLTableCaptionElement) child;
  +            child = child.getNextSibling();
  +        }
  +        return null;
  +    }
  +    
  +    
  +    public synchronized void setCaption( HTMLTableCaptionElement caption )
  +    {
  +        if ( caption != null && ! caption.getTagName().equals( "CAPTION" ) )
  +            throw new IllegalArgumentException( "HTM016 Argument 'caption' is not an element of type <CAPTION>." );
  +        deleteCaption();
  +        if ( caption != null )
  +            appendChild( caption );
  +    }
  +    
  +    
  +    public synchronized HTMLElement createCaption()
  +    {
  +        HTMLElement    section;
  +        
  +        section = getCaption();
  +        if ( section != null )
  +            return section;
  +        section = new HTMLTableCaptionElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "CAPTION" );
  +        appendChild( section );
  +        return section;
  +    }
  +
  +  
  +    public synchronized void deleteCaption()
  +    {
  +        Node    old;
  +        
  +        old = getCaption();
  +        if ( old != null )
  +            removeChild ( old );
  +    }
  +    
  +    public synchronized HTMLTableSectionElement getTHead()
  +    {
  +        Node    child;
  +        
  +        child = getFirstChild();
  +        while ( child != null )
  +        {
  +            if ( child instanceof HTMLTableSectionElement &&
  +                 child.getNodeName().equals( "THEAD" ) )
  +                return (HTMLTableSectionElement) child;
  +            child = child.getNextSibling();
  +        }
  +        return null;
  +    }
  +    
  +    
  +    public synchronized void setTHead( HTMLTableSectionElement tHead )
  +    {
  +        if ( tHead != null && ! tHead.getTagName().equals( "THEAD" ) )
  +            throw new IllegalArgumentException( "HTM017 Argument 'tHead' is not an element of type <THEAD>." );
  +        deleteTHead();
  +        if ( tHead != null )
  +            appendChild( tHead );
  +    }
  +    
  +    
  +    public synchronized HTMLElement createTHead()
  +    {
  +        HTMLElement    section;
  +        
  +        section = getTHead();
  +        if ( section != null )
  +            return section;
  +        section = new HTMLTableSectionElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "THEAD" );
  +        appendChild( section );
  +        return section;
  +    }
  +
  +    
  +    public synchronized void deleteTHead()
  +    {
  +        Node    old;
  +        
  +        old = getTHead();
  +        if ( old != null )
  +            removeChild ( old );
  +    }
  +    
  +    public synchronized HTMLTableSectionElement getTFoot()
  +    {
  +        Node    child;
  +        
  +        child = getFirstChild();
  +        while ( child != null )
  +        {
  +            if ( child instanceof HTMLTableSectionElement &&
  +                 child.getNodeName().equals( "TFOOT" ) )
  +                return (HTMLTableSectionElement) child;
  +            child = child.getNextSibling();
  +        }
  +        return null;
  +    }
  +    
  +    
  +    public synchronized void setTFoot( HTMLTableSectionElement tFoot )
  +    {
  +        if ( tFoot != null && ! tFoot.getTagName().equals( "TFOOT" ) )
  +            throw new IllegalArgumentException( "HTM018 Argument 'tFoot' is not an element of type <TFOOT>." );
  +        deleteTFoot();
  +        if ( tFoot != null )
  +            appendChild( tFoot );
  +    }
  +    
  +    
  +    public synchronized HTMLElement createTFoot()
  +    {
  +        HTMLElement    section;
  +        
  +        section = getTFoot();
  +        if ( section != null )
  +            return section;
  +        section = new HTMLTableSectionElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "TFOOT" );
  +        appendChild( section );
  +        return section;
  +    }
  +
  +    
  +    public synchronized void deleteTFoot()
  +    {
  +        Node    old;
  +        
  +        old = getTFoot();
  +        if ( old != null )
  +            removeChild ( old );
  +    }
  +    
  +    public HTMLCollection getRows()
  +    {
  +        if ( _rows == null )
  +            _rows = new HTMLCollectionImpl( this, HTMLCollectionImpl.ROW );
  +        return _rows;
  +    }
  +    
  +
  +    public HTMLCollection getTBodies()
  +    {
  +        if ( _bodies == null )
  +            _bodies = new HTMLCollectionImpl( this, HTMLCollectionImpl.TBODY );
  +        return _bodies;
  +    }
  +  
  +  
  +    public String getAlign()
  +    {
  +        return capitalize( getAttribute( "align" ) );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +  
  +    
  +    public String getBgColor()
  +    {
  +        return getAttribute( "bgcolor" );
  +    }
  +    
  +    
  +    public void setBgColor( String bgColor )
  +    {
  +        setAttribute( "bgcolor", bgColor );
  +    }
  +  
  +  
  +    public String getBorder()
  +    {
  +        return getAttribute( "border" );
  +    }
  +    
  +    
  +    public void setBorder( String border )
  +    {
  +        setAttribute( "border", border );
  +    }
  +
  +    
  +    public String getCellPadding()
  +    {
  +        return getAttribute( "cellpadding" );
  +    }
  +    
  +    
  +    public void setCellPadding( String cellPadding )
  +    {
  +        setAttribute( "cellpadding", cellPadding );
  +    }
  +    
  +    
  +    public String getCellSpacing()
  +    {
  +        return getAttribute( "cellspacing" );
  +    }
  +    
  +    
  +    public void setCellSpacing( String cellSpacing )
  +    {
  +        setAttribute( "cellspacing", cellSpacing );
  +    }
  +    
  +    
  +    public String getFrame()
  +    {
  +        return capitalize( getAttribute( "frame" ) );
  +    }
  +    
  +    
  +    public void setFrame( String frame )
  +    {
  +        setAttribute( "frame", frame );
  +    }
  +    
  +    
  +    public String getRules()
  +    {
  +        return capitalize( getAttribute( "rules" ) );
  +    }
  +    
  +    
  +    public void setRules( String rules )
  +    {
  +        setAttribute( "rules", rules );
  +    }
  +    
  +    
  +    public String getSummary()
  +    {
  +        return getAttribute( "summary" );
  +    }
  +    
  +    
  +    public void setSummary( String summary )
  +    {
  +        setAttribute( "summary", summary );
  +    }
  +
  +  
  +      public String getWidth()
  +    {
  +        return getAttribute( "width" );
  +    }
  +    
  +    
  +    public void setWidth( String width )
  +    {
  +        setAttribute( "width", width );
  +    }
  +
  +    
  +    public HTMLElement insertRow( int index )
  +    {
  +        HTMLTableRowElementImpl    newRow;
  +
  +        newRow = new HTMLTableRowElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "TR" );
  +        //newRow.insertCell( 0 );
  +        insertRowX( index, newRow );
  +        return newRow;
  +    }
  +        
  +        
  +    void insertRowX( int index, HTMLTableRowElementImpl newRow )
  +    {
  +        Node    child;
  +        Node    lastSection = null;
  +                
  +        child = getFirstChild();
  +        while ( child != null )
  +        {
  +            if ( child instanceof HTMLTableRowElement )
  +            {
  +                if ( index == 0 )
  +                {
  +                    insertBefore( newRow, child );
  +                    return;
  +                }
  +            }
  +            else
  +            if ( child instanceof HTMLTableSectionElementImpl )
  +            {
  +                lastSection = child;
  +                index = ( (HTMLTableSectionElementImpl) child ).insertRowX( index, newRow );
  +                if ( index < 0 )
  +                    return;
  +            }
  +            child = child.getNextSibling();
  +        }
  +        if ( lastSection != null )
  +            lastSection.appendChild( newRow );
  +        else
  +            appendChild( newRow );
  +    }
  +    
  +    
  +    public synchronized void deleteRow( int index )
  +    {
  +        Node    child;
  +        
  +        child = getFirstChild();
  +        while ( child != null )
  +        {
  +            if ( child instanceof HTMLTableRowElement )
  +            {
  +                if ( index == 0 )
  +                {
  +                    removeChild ( child );
  +                    return;
  +                }
  +            }
  +            else
  +            if ( child instanceof HTMLTableSectionElementImpl )
  +            {
  +                index = ( (HTMLTableSectionElementImpl) child ).deleteRowX( index );
  +                if ( index < 0 )
  +                    return;
  +            }
  +            child = child.getNextSibling();
  +        }
  +    }
  +
  +  
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLTableElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +    
  +  
  +    private HTMLCollectionImpl    _rows;
  +    
  +    
  +    private HTMLCollectionImpl    _bodies;
  +  
  +    
  +}
  +
  
  
  
  1.3       +243 -243  xml-xerces/java/src/org/apache/html/dom/HTMLTableRowElementImpl.java
  
  Index: HTMLTableRowElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLTableRowElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLTableRowElementImpl.java	2000/02/10 04:00:12	1.2
  +++ HTMLTableRowElementImpl.java	2000/12/21 00:33:45	1.3
  @@ -54,246 +54,246 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:12 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLTableRowElement
  - * @see ElementImpl
  - */
  -public final class HTMLTableRowElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLTableRowElement
  -{
  -
  -    
  -    public int getRowIndex()
  -    {
  -        Node    parent;
  -        
  -        parent = getParentNode();
  -        if ( parent instanceof HTMLTableSectionElement )
  -            parent = parent.getParentNode();
  -        if ( parent instanceof HTMLTableElement )
  -            return getRowIndex( parent );;
  -        return -1;
  -    }
  -    
  -    
  -    public void setRowIndex( int rowIndex )
  -    {
  -        Node    parent;
  -        
  -        parent = getParentNode();
  -        if ( parent instanceof HTMLTableSectionElement )
  -            parent = parent.getParentNode();
  -        if ( parent instanceof HTMLTableElement )
  -            ( (HTMLTableElementImpl) parent ).insertRowX( rowIndex, this );
  -    }
  -
  -  
  -    public int getSectionRowIndex()
  -    {
  -        Node    parent;
  -        
  -        parent = getParentNode();
  -        if ( parent instanceof HTMLTableSectionElement )
  -            return getRowIndex( parent );
  -        else
  -            return -1;
  -    }
  -    
  -    
  -    public void setSectionRowIndex( int sectionRowIndex )
  -    {
  -        Node    parent;
  -        
  -        parent = getParentNode();
  -        if ( parent instanceof HTMLTableSectionElement )
  -            ( (HTMLTableSectionElementImpl) parent ).insertRowX( sectionRowIndex, this );
  -    }
  -  
  -  
  -    int getRowIndex( Node parent )
  -    {
  -        NodeList    rows;
  -        int            i;
  -        
  -        // Use getElementsByTagName() which creates a snapshot of all the
  -        // TR elements under the TABLE/section. Access to the returned NodeList
  -        // is very fast and the snapshot solves many synchronization problems.
  -        rows = ( (HTMLElement) parent ).getElementsByTagName( "TR" );
  -        for ( i = 0 ; i < rows.getLength() ; ++i )
  -            if ( rows.item( i ) == this )
  -                return i;
  -        return -1;
  -    }
  -
  -  
  -    public HTMLCollection  getCells()
  -    {
  -        if ( _cells == null )
  -            _cells = new HTMLCollectionImpl( this, HTMLCollectionImpl.CELL );
  -        return _cells;
  -    }
  -    
  -    
  -    public void setCells( HTMLCollection cells )
  -    {
  -        Node    child;
  -        int        i;
  -        
  -        child = getFirstChild();
  -        while ( child != null )
  -        {
  -            removeChild( child );
  -            child = child.getNextSibling();
  -        }
  -        i = 0;
  -        child = cells.item( i );
  -        while ( child != null )
  -        {
  -            appendChild ( child );
  -            ++i;
  -            child = cells.item( i );
  -        }
  -    }
  -
  -  
  -    public HTMLElement insertCell( int index )
  -    {
  -        Node        child;
  -        HTMLElement    newCell;
  -        
  -        newCell = new HTMLTableCellElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "TD" );
  -        child = getFirstChild();
  -        while ( child != null )
  -        {
  -            if ( child instanceof HTMLTableCellElement )
  -            {
  -                if ( index == 0 )
  -                {
  -                    insertBefore( newCell, child );
  -                    return newCell;
  -                }
  -                --index;
  -            }
  -            child = child.getNextSibling();
  -        }
  -        appendChild( newCell );
  -        return newCell;
  -    }
  -    
  -    
  -    public void deleteCell( int index )
  -    {
  -        Node    child;
  -        
  -        child = getFirstChild();
  -        while ( child != null )
  -        {
  -            if ( child instanceof HTMLTableCellElement )
  -            {
  -                if ( index == 0 )
  -                {
  -                    removeChild ( child );
  -                    return;
  -                }
  -                --index;
  -            }
  -            child = child.getNextSibling();
  -        }
  -    }
  -
  -  
  -    public String getAlign()
  -    {
  -        return capitalize( getAttribute( "align" ) );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -
  -    
  -    public String getBgColor()
  -    {
  -        return getAttribute( "bgcolor" );
  -    }
  -    
  -    
  -    public void setBgColor( String bgColor )
  -    {
  -        setAttribute( "bgcolor", bgColor );
  -    }
  -
  -  
  -    public String getCh()
  -    {
  -        String    ch;
  -        
  -        // Make sure that the access key is a single character.
  -        ch = getAttribute( "char" );
  -        if ( ch != null && ch.length() > 1 )
  -            ch = ch.substring( 0, 1 );
  -        return ch;
  -    }
  -    
  -    
  -    public void setCh( String ch )
  -    {
  -        // Make sure that the access key is a single character.
  -        if ( ch != null && ch.length() > 1 )
  -            ch = ch.substring( 0, 1 );
  -        setAttribute( "char", ch );
  -    }
  -
  -    
  -    public String getChOff()
  -    {
  -        return getAttribute( "charoff" );
  -    }
  -    
  -    
  -    public void setChOff( String chOff )
  -    {
  -        setAttribute( "charoff", chOff );
  -    }
  -  
  -  
  -    public String getVAlign()
  -    {
  -        return capitalize( getAttribute( "valign" ) );
  -    }
  -    
  -    
  -    public void setVAlign( String vAlign )
  -    {
  -        setAttribute( "valign", vAlign );
  -    }
  -
  -    
  -      /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLTableRowElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -  
  -  
  -    HTMLCollection    _cells;
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:45 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLTableRowElement
  + * @see ElementImpl
  + */
  +public final class HTMLTableRowElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLTableRowElement
  +{
  +
  +    
  +    public int getRowIndex()
  +    {
  +        Node    parent;
  +        
  +        parent = getParentNode();
  +        if ( parent instanceof HTMLTableSectionElement )
  +            parent = parent.getParentNode();
  +        if ( parent instanceof HTMLTableElement )
  +            return getRowIndex( parent );;
  +        return -1;
  +    }
  +    
  +    
  +    public void setRowIndex( int rowIndex )
  +    {
  +        Node    parent;
  +        
  +        parent = getParentNode();
  +        if ( parent instanceof HTMLTableSectionElement )
  +            parent = parent.getParentNode();
  +        if ( parent instanceof HTMLTableElement )
  +            ( (HTMLTableElementImpl) parent ).insertRowX( rowIndex, this );
  +    }
  +
  +  
  +    public int getSectionRowIndex()
  +    {
  +        Node    parent;
  +        
  +        parent = getParentNode();
  +        if ( parent instanceof HTMLTableSectionElement )
  +            return getRowIndex( parent );
  +        else
  +            return -1;
  +    }
  +    
  +    
  +    public void setSectionRowIndex( int sectionRowIndex )
  +    {
  +        Node    parent;
  +        
  +        parent = getParentNode();
  +        if ( parent instanceof HTMLTableSectionElement )
  +            ( (HTMLTableSectionElementImpl) parent ).insertRowX( sectionRowIndex, this );
  +    }
  +  
  +  
  +    int getRowIndex( Node parent )
  +    {
  +        NodeList    rows;
  +        int            i;
  +        
  +        // Use getElementsByTagName() which creates a snapshot of all the
  +        // TR elements under the TABLE/section. Access to the returned NodeList
  +        // is very fast and the snapshot solves many synchronization problems.
  +        rows = ( (HTMLElement) parent ).getElementsByTagName( "TR" );
  +        for ( i = 0 ; i < rows.getLength() ; ++i )
  +            if ( rows.item( i ) == this )
  +                return i;
  +        return -1;
  +    }
  +
  +  
  +    public HTMLCollection  getCells()
  +    {
  +        if ( _cells == null )
  +            _cells = new HTMLCollectionImpl( this, HTMLCollectionImpl.CELL );
  +        return _cells;
  +    }
  +    
  +    
  +    public void setCells( HTMLCollection cells )
  +    {
  +        Node    child;
  +        int        i;
  +        
  +        child = getFirstChild();
  +        while ( child != null )
  +        {
  +            removeChild( child );
  +            child = child.getNextSibling();
  +        }
  +        i = 0;
  +        child = cells.item( i );
  +        while ( child != null )
  +        {
  +            appendChild ( child );
  +            ++i;
  +            child = cells.item( i );
  +        }
  +    }
  +
  +  
  +    public HTMLElement insertCell( int index )
  +    {
  +        Node        child;
  +        HTMLElement    newCell;
  +        
  +        newCell = new HTMLTableCellElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "TD" );
  +        child = getFirstChild();
  +        while ( child != null )
  +        {
  +            if ( child instanceof HTMLTableCellElement )
  +            {
  +                if ( index == 0 )
  +                {
  +                    insertBefore( newCell, child );
  +                    return newCell;
  +                }
  +                --index;
  +            }
  +            child = child.getNextSibling();
  +        }
  +        appendChild( newCell );
  +        return newCell;
  +    }
  +    
  +    
  +    public void deleteCell( int index )
  +    {
  +        Node    child;
  +        
  +        child = getFirstChild();
  +        while ( child != null )
  +        {
  +            if ( child instanceof HTMLTableCellElement )
  +            {
  +                if ( index == 0 )
  +                {
  +                    removeChild ( child );
  +                    return;
  +                }
  +                --index;
  +            }
  +            child = child.getNextSibling();
  +        }
  +    }
  +
  +  
  +    public String getAlign()
  +    {
  +        return capitalize( getAttribute( "align" ) );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +
  +    
  +    public String getBgColor()
  +    {
  +        return getAttribute( "bgcolor" );
  +    }
  +    
  +    
  +    public void setBgColor( String bgColor )
  +    {
  +        setAttribute( "bgcolor", bgColor );
  +    }
  +
  +  
  +    public String getCh()
  +    {
  +        String    ch;
  +        
  +        // Make sure that the access key is a single character.
  +        ch = getAttribute( "char" );
  +        if ( ch != null && ch.length() > 1 )
  +            ch = ch.substring( 0, 1 );
  +        return ch;
  +    }
  +    
  +    
  +    public void setCh( String ch )
  +    {
  +        // Make sure that the access key is a single character.
  +        if ( ch != null && ch.length() > 1 )
  +            ch = ch.substring( 0, 1 );
  +        setAttribute( "char", ch );
  +    }
  +
  +    
  +    public String getChOff()
  +    {
  +        return getAttribute( "charoff" );
  +    }
  +    
  +    
  +    public void setChOff( String chOff )
  +    {
  +        setAttribute( "charoff", chOff );
  +    }
  +  
  +  
  +    public String getVAlign()
  +    {
  +        return capitalize( getAttribute( "valign" ) );
  +    }
  +    
  +    
  +    public void setVAlign( String vAlign )
  +    {
  +        setAttribute( "valign", vAlign );
  +    }
  +
  +    
  +      /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLTableRowElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +  
  +  
  +    HTMLCollection    _cells;
  +
  +  
  +}
  +
  
  
  
  1.3       +162 -162  xml-xerces/java/src/org/apache/html/dom/HTMLTableSectionElementImpl.java
  
  Index: HTMLTableSectionElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLTableSectionElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLTableSectionElementImpl.java	2000/02/10 04:00:12	1.2
  +++ HTMLTableSectionElementImpl.java	2000/12/21 00:33:45	1.3
  @@ -54,165 +54,165 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:12 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLTableSectionElement
  - * @see ElementImpl
  - */
  -public final class HTMLTableSectionElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLTableSectionElement
  -{    
  -    
  -    
  -    public String getAlign()
  -    {
  -        return capitalize( getAttribute( "align" ) );
  -    }
  -    
  -    
  -    public void setAlign( String align )
  -    {
  -        setAttribute( "align", align );
  -    }
  -      
  -    
  -    public String getCh()
  -    {
  -        String    ch;
  -        
  -        // Make sure that the access key is a single character.
  -        ch = getAttribute( "char" );
  -        if ( ch != null && ch.length() > 1 )
  -            ch = ch.substring( 0, 1 );
  -        return ch;
  -    }
  -    
  -    
  -    public void setCh( String ch )
  -    {
  -        // Make sure that the access key is a single character.
  -        if ( ch != null && ch.length() > 1 )
  -            ch = ch.substring( 0, 1 );
  -        setAttribute( "char", ch );
  -    }
  -
  -    
  -    public String getChOff()
  -    {
  -        return getAttribute( "charoff" );
  -    }
  -    
  -    
  -    public void setChOff( String chOff )
  -    {
  -        setAttribute( "charoff", chOff );
  -    }
  -  
  -  
  -    public String getVAlign()
  -    {
  -        return capitalize( getAttribute( "valign" ) );
  -    }
  -    
  -    
  -    public void setVAlign( String vAlign )
  -    {
  -        setAttribute( "valign", vAlign );
  -    }
  -
  -    
  -    public HTMLCollection getRows()
  -    {
  -        if ( _rows == null )
  -            _rows = new HTMLCollectionImpl( this, HTMLCollectionImpl.ROW );
  -        return _rows;
  -    }
  -    
  -    
  -    public HTMLElement insertRow( int index )
  -    {
  -        HTMLTableRowElementImpl    newRow;
  -        
  -        newRow = new HTMLTableRowElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "TR" );
  -        newRow.insertCell( 0 );
  -        if ( insertRowX( index, newRow ) >= 0 )
  -            appendChild( newRow );
  -        return newRow;
  -    }
  -    
  -    
  -    int insertRowX( int index, HTMLTableRowElementImpl newRow )
  -    {
  -        Node    child;
  -        
  -        child = getFirstChild();
  -        while ( child != null )
  -        {
  -            if ( child instanceof HTMLTableRowElement )
  -            {
  -                if ( index == 0 )
  -                {
  -                    insertBefore( newRow, child );
  -                    return -1;
  -                }
  -                --index;
  -            }
  -            child = child.getNextSibling();
  -        }
  -        return index;
  -    }
  -
  -    
  -    public void deleteRow( int index )
  -    {
  -        deleteRowX( index );
  -    }
  -
  -    
  -    int deleteRowX( int index )
  -    {
  -        Node    child;
  -        
  -        child = getFirstChild();
  -        while ( child != null )
  -        {
  -            if ( child instanceof HTMLTableRowElement )
  -            {
  -                if ( index == 0 )
  -                {
  -                    removeChild ( child );
  -                    return -1;
  -                }
  -                --index;
  -            }
  -            child = child.getNextSibling();
  -        }
  -        return index;
  -    }
  -
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLTableSectionElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -    private HTMLCollectionImpl    _rows;
  -
  -
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:45 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLTableSectionElement
  + * @see ElementImpl
  + */
  +public final class HTMLTableSectionElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLTableSectionElement
  +{    
  +    
  +    
  +    public String getAlign()
  +    {
  +        return capitalize( getAttribute( "align" ) );
  +    }
  +    
  +    
  +    public void setAlign( String align )
  +    {
  +        setAttribute( "align", align );
  +    }
  +      
  +    
  +    public String getCh()
  +    {
  +        String    ch;
  +        
  +        // Make sure that the access key is a single character.
  +        ch = getAttribute( "char" );
  +        if ( ch != null && ch.length() > 1 )
  +            ch = ch.substring( 0, 1 );
  +        return ch;
  +    }
  +    
  +    
  +    public void setCh( String ch )
  +    {
  +        // Make sure that the access key is a single character.
  +        if ( ch != null && ch.length() > 1 )
  +            ch = ch.substring( 0, 1 );
  +        setAttribute( "char", ch );
  +    }
  +
  +    
  +    public String getChOff()
  +    {
  +        return getAttribute( "charoff" );
  +    }
  +    
  +    
  +    public void setChOff( String chOff )
  +    {
  +        setAttribute( "charoff", chOff );
  +    }
  +  
  +  
  +    public String getVAlign()
  +    {
  +        return capitalize( getAttribute( "valign" ) );
  +    }
  +    
  +    
  +    public void setVAlign( String vAlign )
  +    {
  +        setAttribute( "valign", vAlign );
  +    }
  +
  +    
  +    public HTMLCollection getRows()
  +    {
  +        if ( _rows == null )
  +            _rows = new HTMLCollectionImpl( this, HTMLCollectionImpl.ROW );
  +        return _rows;
  +    }
  +    
  +    
  +    public HTMLElement insertRow( int index )
  +    {
  +        HTMLTableRowElementImpl    newRow;
  +        
  +        newRow = new HTMLTableRowElementImpl( (HTMLDocumentImpl) getOwnerDocument(), "TR" );
  +        newRow.insertCell( 0 );
  +        if ( insertRowX( index, newRow ) >= 0 )
  +            appendChild( newRow );
  +        return newRow;
  +    }
  +    
  +    
  +    int insertRowX( int index, HTMLTableRowElementImpl newRow )
  +    {
  +        Node    child;
  +        
  +        child = getFirstChild();
  +        while ( child != null )
  +        {
  +            if ( child instanceof HTMLTableRowElement )
  +            {
  +                if ( index == 0 )
  +                {
  +                    insertBefore( newRow, child );
  +                    return -1;
  +                }
  +                --index;
  +            }
  +            child = child.getNextSibling();
  +        }
  +        return index;
  +    }
  +
  +    
  +    public void deleteRow( int index )
  +    {
  +        deleteRowX( index );
  +    }
  +
  +    
  +    int deleteRowX( int index )
  +    {
  +        Node    child;
  +        
  +        child = getFirstChild();
  +        while ( child != null )
  +        {
  +            if ( child instanceof HTMLTableRowElement )
  +            {
  +                if ( index == 0 )
  +                {
  +                    removeChild ( child );
  +                    return -1;
  +                }
  +                --index;
  +            }
  +            child = child.getNextSibling();
  +        }
  +        return index;
  +    }
  +
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLTableSectionElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +    private HTMLCollectionImpl    _rows;
  +
  +
  +}
  +
  
  
  
  1.3       +176 -176  xml-xerces/java/src/org/apache/html/dom/HTMLTextAreaElementImpl.java
  
  Index: HTMLTextAreaElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLTextAreaElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLTextAreaElementImpl.java	2000/02/10 04:00:13	1.2
  +++ HTMLTextAreaElementImpl.java	2000/12/21 00:33:45	1.3
  @@ -54,179 +54,179 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:13 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLTextAreaElement
  - * @see ElementImpl
  - */
  -public final class HTMLTextAreaElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLTextAreaElement, HTMLFormControl
  -{
  -    
  -    
  -    public String getDefaultValue()
  -    {
  -        // ! NOT FULLY IMPLEMENTED !
  -        return getAttribute( "default-value" );
  -    }
  -    
  -    
  -    public void setDefaultValue( String defaultValue )
  -    {
  -        // ! NOT FULLY IMPLEMENTED !
  -        setAttribute( "default-value", defaultValue );
  -    }
  -  
  -  
  -
  -    public String getAccessKey()
  -    {
  -        String    accessKey;
  -        
  -        // Make sure that the access key is a single character.
  -        accessKey = getAttribute( "accesskey" );
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        return accessKey;
  -    }
  -    
  -    
  -    public void setAccessKey( String accessKey )
  -    {
  -        // Make sure that the access key is a single character.
  -        if ( accessKey != null && accessKey.length() > 1 )
  -            accessKey = accessKey.substring( 0, 1 );
  -        setAttribute( "accesskey", accessKey );
  -    }
  -
  -    
  -    public int getCols()
  -    {
  -        return getInteger( getAttribute( "cols" ) );
  -    }
  -    
  -    
  -    public void setCols( int cols )
  -    {
  -        setAttribute( "cols", String.valueOf( cols ) );
  -    }
  -  
  -  
  -    public boolean getDisabled()
  -    {
  -        return getBinary( "disabled" );
  -    }
  -    
  -    
  -    public void setDisabled( boolean disabled )
  -    {
  -        setAttribute( "disabled", disabled );
  -    }
  -
  -    
  -    public String getName()
  -    {
  -        return getAttribute( "name" );
  -    }
  -    
  -    
  -    public void setName( String name )
  -    {
  -        setAttribute( "name", name );
  -    }
  -
  -    
  -    public boolean getReadOnly()
  -    {
  -        return getBinary( "readonly" );
  -    }
  -    
  -    
  -    public void setReadOnly( boolean readOnly )
  -    {
  -        setAttribute( "readonly", readOnly );
  -    }
  -
  -    
  -       public int getRows()
  -    {
  -        return getInteger( getAttribute( "rows" ) );
  -    }
  -    
  -    
  -    public void setRows( int rows )
  -    {
  -        setAttribute( "rows", String.valueOf( rows ) );
  -    }
  -
  -  
  -       public int getTabIndex()
  -    {
  -        return getInteger( getAttribute( "tabindex" ) );
  -    }
  -    
  -    
  -    public void setTabIndex( int tabIndex )
  -    {
  -        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  -    }
  -
  -  
  -    public String getType()
  -    {
  -        return getAttribute( "type" );
  -    }
  -
  -    
  -      public String getValue()
  -    {
  -        return getAttribute( "value" );
  -    }
  -    
  -    
  -    public void setValue( String value )
  -    {
  -        setAttribute( "value", value );
  -    }
  -
  -    
  -    public void blur()
  -    {
  -        // No scripting in server-side DOM. This method is moot.
  -    }
  -    
  -    
  -    public void focus()
  -    {
  -        // No scripting in server-side DOM. This method is moot.
  -    }
  -    
  -    
  -    public void select()
  -    {
  -        // No scripting in server-side DOM. This method is moot.
  -    }
  -    
  -      
  -      /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLTextAreaElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:45 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLTextAreaElement
  + * @see ElementImpl
  + */
  +public final class HTMLTextAreaElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLTextAreaElement, HTMLFormControl
  +{
  +    
  +    
  +    public String getDefaultValue()
  +    {
  +        // ! NOT FULLY IMPLEMENTED !
  +        return getAttribute( "default-value" );
  +    }
  +    
  +    
  +    public void setDefaultValue( String defaultValue )
  +    {
  +        // ! NOT FULLY IMPLEMENTED !
  +        setAttribute( "default-value", defaultValue );
  +    }
  +  
  +  
  +
  +    public String getAccessKey()
  +    {
  +        String    accessKey;
  +        
  +        // Make sure that the access key is a single character.
  +        accessKey = getAttribute( "accesskey" );
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        return accessKey;
  +    }
  +    
  +    
  +    public void setAccessKey( String accessKey )
  +    {
  +        // Make sure that the access key is a single character.
  +        if ( accessKey != null && accessKey.length() > 1 )
  +            accessKey = accessKey.substring( 0, 1 );
  +        setAttribute( "accesskey", accessKey );
  +    }
  +
  +    
  +    public int getCols()
  +    {
  +        return getInteger( getAttribute( "cols" ) );
  +    }
  +    
  +    
  +    public void setCols( int cols )
  +    {
  +        setAttribute( "cols", String.valueOf( cols ) );
  +    }
  +  
  +  
  +    public boolean getDisabled()
  +    {
  +        return getBinary( "disabled" );
  +    }
  +    
  +    
  +    public void setDisabled( boolean disabled )
  +    {
  +        setAttribute( "disabled", disabled );
  +    }
  +
  +    
  +    public String getName()
  +    {
  +        return getAttribute( "name" );
  +    }
  +    
  +    
  +    public void setName( String name )
  +    {
  +        setAttribute( "name", name );
  +    }
  +
  +    
  +    public boolean getReadOnly()
  +    {
  +        return getBinary( "readonly" );
  +    }
  +    
  +    
  +    public void setReadOnly( boolean readOnly )
  +    {
  +        setAttribute( "readonly", readOnly );
  +    }
  +
  +    
  +       public int getRows()
  +    {
  +        return getInteger( getAttribute( "rows" ) );
  +    }
  +    
  +    
  +    public void setRows( int rows )
  +    {
  +        setAttribute( "rows", String.valueOf( rows ) );
  +    }
  +
  +  
  +       public int getTabIndex()
  +    {
  +        return getInteger( getAttribute( "tabindex" ) );
  +    }
  +    
  +    
  +    public void setTabIndex( int tabIndex )
  +    {
  +        setAttribute( "tabindex", String.valueOf( tabIndex ) );
  +    }
  +
  +  
  +    public String getType()
  +    {
  +        return getAttribute( "type" );
  +    }
  +
  +    
  +      public String getValue()
  +    {
  +        return getAttribute( "value" );
  +    }
  +    
  +    
  +    public void setValue( String value )
  +    {
  +        setAttribute( "value", value );
  +    }
  +
  +    
  +    public void blur()
  +    {
  +        // No scripting in server-side DOM. This method is moot.
  +    }
  +    
  +    
  +    public void focus()
  +    {
  +        // No scripting in server-side DOM. This method is moot.
  +    }
  +    
  +    
  +    public void select()
  +    {
  +        // No scripting in server-side DOM. This method is moot.
  +    }
  +    
  +      
  +      /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLTextAreaElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +
  
  
  
  1.3       +69 -69    xml-xerces/java/src/org/apache/html/dom/HTMLTitleElementImpl.java
  
  Index: HTMLTitleElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLTitleElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLTitleElementImpl.java	2000/02/10 04:00:13	1.2
  +++ HTMLTitleElementImpl.java	2000/12/21 00:33:45	1.3
  @@ -54,72 +54,72 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:13 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLTitleElement
  - * @see ElementImpl
  - */
  -public final class HTMLTitleElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLTitleElement
  -{
  - 
  -    
  -    public String getText()
  -    {
  -        Node    child;
  -        String    text;
  -        
  -        // Find the Text nodes contained within this element and return their
  -        // concatenated value. Required to go around comments, entities, etc.
  -        child = getFirstChild();
  -        text = "";
  -        while ( child != null )
  -        {
  -            if ( child instanceof Text )
  -                text = text + ( (Text) child ).getData();
  -            child = child.getNextSibling();
  -        }
  -        return text;
  -    }
  -    
  -    
  -    public void setText( String text )
  -    {
  -        Node    child;
  -        Node    next;
  -        
  -        // Delete all the nodes and replace them with a single Text node.
  -        // This is the only approach that can handle comments and other nodes.
  -        child = getFirstChild();
  -        while ( child != null )
  -        {
  -            next = child.getNextSibling();
  -            removeChild( child );
  -            child = next;
  -        }
  -        insertBefore( getOwnerDocument().createTextNode( text ), getFirstChild() );
  -    }
  -
  -        
  -      /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLTitleElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:45 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLTitleElement
  + * @see ElementImpl
  + */
  +public final class HTMLTitleElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLTitleElement
  +{
  + 
  +    
  +    public String getText()
  +    {
  +        Node    child;
  +        String    text;
  +        
  +        // Find the Text nodes contained within this element and return their
  +        // concatenated value. Required to go around comments, entities, etc.
  +        child = getFirstChild();
  +        text = "";
  +        while ( child != null )
  +        {
  +            if ( child instanceof Text )
  +                text = text + ( (Text) child ).getData();
  +            child = child.getNextSibling();
  +        }
  +        return text;
  +    }
  +    
  +    
  +    public void setText( String text )
  +    {
  +        Node    child;
  +        Node    next;
  +        
  +        // Delete all the nodes and replace them with a single Text node.
  +        // This is the only approach that can handle comments and other nodes.
  +        child = getFirstChild();
  +        while ( child != null )
  +        {
  +            next = child.getNextSibling();
  +            removeChild( child );
  +            child = next;
  +        }
  +        insertBefore( getOwnerDocument().createTextNode( text ), getFirstChild() );
  +    }
  +
  +        
  +      /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLTitleElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +
  
  
  
  1.3       +56 -56    xml-xerces/java/src/org/apache/html/dom/HTMLUListElementImpl.java
  
  Index: HTMLUListElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLUListElementImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLUListElementImpl.java	2000/02/10 04:00:13	1.2
  +++ HTMLUListElementImpl.java	2000/12/21 00:33:45	1.3
  @@ -54,59 +54,59 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -package org.apache.html.dom;
  -
  -
  -import org.w3c.dom.*;
  -import org.w3c.dom.html.*;
  -
  -
  -/**
  - * @version $Revision: 1.2 $ $Date: 2000/02/10 04:00:13 $
  - * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  - * @see org.w3c.dom.html.HTMLUListElement
  - * @see ElementImpl
  - */
  -public final class HTMLUListElementImpl
  -    extends HTMLElementImpl
  -    implements HTMLUListElement
  -{
  -    
  -    
  -    public boolean getCompact()
  -    {
  -        return getBinary( "compact" );
  -    }
  -    
  -    
  -    public void setCompact( boolean compact )
  -    {
  -        setAttribute( "compact", compact );
  -    }
  -    
  -    
  -    public String getType()
  -    {
  -        return getAttribute( "type" );
  -    }
  -    
  -    
  -    public void setType( String type )
  -    {
  -        setAttribute( "type", type );
  -    }
  -    
  -    
  -    /**
  -     * Constructor requires owner document.
  -     * 
  -     * @param owner The owner HTML document
  -     */
  -    public HTMLUListElementImpl( HTMLDocumentImpl owner, String name )
  -    {
  -        super( owner, name );
  -    }
  -
  -  
  -}
  -
  +package org.apache.html.dom;
  +
  +
  +import org.w3c.dom.*;
  +import org.w3c.dom.html.*;
  +
  +
  +/**
  + * @version $Revision: 1.3 $ $Date: 2000/12/21 00:33:45 $
  + * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  + * @see org.w3c.dom.html.HTMLUListElement
  + * @see ElementImpl
  + */
  +public final class HTMLUListElementImpl
  +    extends HTMLElementImpl
  +    implements HTMLUListElement
  +{
  +    
  +    
  +    public boolean getCompact()
  +    {
  +        return getBinary( "compact" );
  +    }
  +    
  +    
  +    public void setCompact( boolean compact )
  +    {
  +        setAttribute( "compact", compact );
  +    }
  +    
  +    
  +    public String getType()
  +    {
  +        return getAttribute( "type" );
  +    }
  +    
  +    
  +    public void setType( String type )
  +    {
  +        setAttribute( "type", type );
  +    }
  +    
  +    
  +    /**
  +     * Constructor requires owner document.
  +     * 
  +     * @param owner The owner HTML document
  +     */
  +    public HTMLUListElementImpl( HTMLDocumentImpl owner, String name )
  +    {
  +        super( owner, name );
  +    }
  +
  +  
  +}
  +