I'm back with another problem with applets. This time, I'm having trouble displaying applets with XSLT. See I'm usually using an HTML-only page to test my applet out on (I don't like using the applet viewer). Anywho, since I'm trying to get away from making HTML-only pages and using XML technologies instead so I decided to use and XML file transformed by XSLT to display my applet. Well the HTML-only page runs the applet smoothly. The XML file tells me that the applet isn't "inited" and doesn't display it. Can someone give me a hand? I'll display my XML/XSLT code below.
XML:
XSLT:Code:<?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="MonopolyMain.xsl"?> <monopolyMain> <gameFrame> <codeSource> MonopolyMain.class </codeSource> <frameWidth> 430 </frameWidth> <frameHeight> 430 </frameHeight> <frameAlignment> center </frameAlignment> </gameFrame> </monopolyMain>
Thanks in advance!Code:<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <body> <applet code="{gameFrame/codeSource}" width="{gameFrame/frameWidth}" height="{gameFrame/frameHeight}"></applet> </body> </html> </xsl:template> </xsl:stylesheet>




Reply With Quote