summaryrefslogtreecommitdiff
path: root/test/files/xml/xhtml.scala
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2005-04-11 17:09:24 +0000
committerburaq <buraq@epfl.ch>2005-04-11 17:09:24 +0000
commit5860530cce72afd1387506d67b852a27445f30a2 (patch)
treead3a5061be409b456af67ba4736e82d2f6a5f8c7 /test/files/xml/xhtml.scala
parent38c5a6b5ca0577347240208c7df0b36e08c05ceb (diff)
downloadscala-5860530cce72afd1387506d67b852a27445f30a2.tar.gz
scala-5860530cce72afd1387506d67b852a27445f30a2.tar.bz2
scala-5860530cce72afd1387506d67b852a27445f30a2.zip
away... moved to different rep
Diffstat (limited to 'test/files/xml/xhtml.scala')
-rw-r--r--test/files/xml/xhtml.scala40
1 files changed, 0 insertions, 40 deletions
diff --git a/test/files/xml/xhtml.scala b/test/files/xml/xhtml.scala
deleted file mode 100644
index 2e3998732c..0000000000
--- a/test/files/xml/xhtml.scala
+++ /dev/null
@@ -1,40 +0,0 @@
-// $Id$
-
-import scala.xml.{Attribute, AttributeSeq, Node, Text};
-import dtd._;
-
-object Test {
-
- val n = Node.NoAttributes;
-
- def main( argv:Array[String] ) = {
- val link = A(
- AttributeSeq.fromAttrs(
- Attribute("","href","http://lampwww.epfl.ch")
- ),
- Text("link")
- );
-
- //val m = new scala.collection.mutable.HashMap[String, String];
- //m.put("href","http://lampwww.epfl.ch");
- //link.setAttribs(m);
-
- val body = Body(n,
- H1(n,Text("Welcome to xhtml in scala")),
- P(n,Text( "a paragraph")),
- P(n,Text("another one, with a "),link,Text(" to the LAMP homepage.")));
- val page = Html(n,
- Head(n,
- Base(
- AttributeSeq.fromAttrs(
- Attribute("","href","http://here.edu")
- )),
- Title(n,Text("a basic xhtml page"))),
- body);
- System.out.println( page ) ;
-
- val doc = load(argv(0));
- System.out.println( doc );
- }
-
-}