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

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 UTC