If I may, I'd like to apply a filter to your classes, dependant on the situation, of course...
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="html"/>
<xsl:template match="class Me_InAGoodMood extends Me">
<html>
<body bgcolor="#FFCC00">
<span class="happy">I say Hi, in a warm and friendly fashion and extend a greeting hand</span>
</body>
</html>
</xsl:template>
<xsl:template match="class Me_InABadMood extends Me">
<html>
<body bgcolor="#FF3333">
<blink>Just who are are you calling an Idiot?</blink>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
But I do worry that you wouldn't compile without your me super-class ;-)
----- Original Message -----
From: "domfox" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Tuesday, July 17, 2001 21:19
Subject: Some Java
> class Me_InAGoodMood extends Me
> {
> public void greet(Stranger s)
> {
> say "Howdy";
> say s.GetForename();
> }
> }
>
> class Me_InABadMood extends Me
> {
> public void greet(Stranger s)
> {
> say "Get out of my way you idiot,";
> say s.GetSurname();
> }
> }
>
>
|