DOM working

git-svn-id: svn://anubis/gvsu@123 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-06-10 22:13:13 +00:00
parent 77191b37be
commit 10f6e8ea4a
2 changed files with 8 additions and 3 deletions

View File

@ -59,10 +59,11 @@ public class JDOM
out.println("<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">");
out.println("<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><title>Daily Planner</title>");
out.println("<style type=\"text/css\">");
out.println(" .day { background-color: #FF8; }");
out.println(" .day, th { background-color: #FF8; }");
out.println(" table, td, th { border: solid #000 1px; padding: 3px; }");
out.println("</style>");
out.println("</head><body>");
out.println("<table><caption>Daily Planner</caption><tr><th>&nbsp;</th><th>AM</th><th>PM</th></tr>");
out.println("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><caption>Daily Planner</caption>\n<tr><th>&nbsp;</th><th>AM</th><th>PM</th></tr>");
printHTMLSchedule( ((Document) n).getDocumentElement(), out );
@ -81,7 +82,7 @@ public class JDOM
{
out.print("<tr><td class=\"day\">");
out.print(m_weekDayNames.get(name));
out.println("</td>");
out.print("</td>");
for (int i = 0; i < children.getLength(); i++)
{
if (children.item(i).getNodeType() == Node.ELEMENT_NODE)

View File

@ -1,3 +1,7 @@
all:
javac *.java
run:
java JDOM test-sched.xml > test-sched-dom.html