W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2000

Re: DOM level 2 StyleSheets : What means "binding-specific casting methods

From: Philippe Le Hegaret <plh@w3.org>
Date: Fri, 25 Feb 2000 15:49:07 +0000
Message-ID: <38B6A473.C1FB0902@w3.org>
To: Blaine Brodie <bbrodie@savagesoftware.com>
CC: www-dom@w3.org
Blaine Brodie wrote:
> I'm still a little confused about the actual implementation of this.  For
> example should the Java interface for
> LinkStyle be:
> 
> public interface LinkStyle extends ProcessingInstruction
> {
>     public StyleSheet getSheet();
> }
> 
> rather than just:
> 
> public interface LinkStyle
> {
>     public StyleSheet getSheet();
> }

No, your Java implementation of the XML style sheet PI must implement
ProcessingInstruction and LinkStyle

public class StyleSheetProcessingInstruction
               implements ProcessingInstruction, LinkStyle {
 ...
}

LinkStyle is also used by HTMLLinkElement and HTMLStyleElement so
it can't extend ProcessingInstruction.

Regards,
Philippe.
Received on Friday, 25 February 2000 10:49:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT