diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/xml/xhtml.check | 2 | ||||
-rw-r--r-- | test/files/xml/xhtml.scala | 26 | ||||
-rw-r--r-- | test/files/xml/xhtml.xml | 1 |
3 files changed, 1 insertions, 28 deletions
diff --git a/test/files/xml/xhtml.check b/test/files/xml/xhtml.check deleted file mode 100644 index e623fdb7c4..0000000000 --- a/test/files/xml/xhtml.check +++ /dev/null @@ -1,2 +0,0 @@ -<html><head><title>a basic xhtml page</title></head><body><h1>Welcome to xhtml in scala</h1><p>a paragraph</p><p>another one, with a <a>link</a> to the LAMP homepage.</p></body></html> -<html version="-//W3C//DTD XHTML Basic 1.0//EN"><head profile=""><title>a basic xhtml page</title></head><body><h1>Welcome to xhtml in scala</h1><p>a paragraph</p><p>another, with a <a href="http://lampwww.epfl.ch">example link</a> to lamp homepage</p></body></html> diff --git a/test/files/xml/xhtml.scala b/test/files/xml/xhtml.scala deleted file mode 100644 index 83de7a7020..0000000000 --- a/test/files/xml/xhtml.scala +++ /dev/null @@ -1,26 +0,0 @@ -// $Id$ - -import scala.xml.Text; -import dtd._; - -object Test { - - def main( argv:Array[String] ) = { - val link = A(Text("link")); - - //val m = new scala.collection.mutable.HashMap[String, String]; - //m.put("href","http://lampwww.epfl.ch"); - //link.setAttribs(m); - - val body = Body( - H1(Text("Welcome to xhtml in scala")), - P(Text( "a paragraph")), - P(Text("another one, with a "),link,Text(" to the LAMP homepage."))); - val page = Html(Head(Title(Text("a basic xhtml page"))), body); - System.out.println( page ) ; - - val doc = load(argv(0)); - System.out.println( doc ); - } - -} diff --git a/test/files/xml/xhtml.xml b/test/files/xml/xhtml.xml index cccc4885d5..f1415277a7 100644 --- a/test/files/xml/xhtml.xml +++ b/test/files/xml/xhtml.xml @@ -2,6 +2,7 @@ <!DOCTYPE html SYSTEM "xhtml.dtd"> <html> <head> + <base/> <title>a basic xhtml page</title> </head> <body> |