From 5860530cce72afd1387506d67b852a27445f30a2 Mon Sep 17 00:00:00 2001 From: buraq Date: Mon, 11 Apr 2005 17:09:24 +0000 Subject: away... moved to different rep --- test/files/xml/lnk.check | 6 ----- test/files/xml/lnk.namespace | 1 - test/files/xml/lnk.scala | 51 ------------------------------------------ test/files/xml/xhtml.check | 2 -- test/files/xml/xhtml.namespace | 1 - test/files/xml/xhtml.scala | 40 --------------------------------- 6 files changed, 101 deletions(-) delete mode 100644 test/files/xml/lnk.check delete mode 100644 test/files/xml/lnk.namespace delete mode 100644 test/files/xml/lnk.scala delete mode 100644 test/files/xml/xhtml.check delete mode 100644 test/files/xml/xhtml.namespace delete mode 100644 test/files/xml/xhtml.scala (limited to 'test/files') diff --git a/test/files/xml/lnk.check b/test/files/xml/lnk.check deleted file mode 100644 index c7753fb41d..0000000000 --- a/test/files/xml/lnk.check +++ /dev/null @@ -1,6 +0,0 @@ -validator throws exception: element "link" not allowed here -hello-link -LDAP LinksOpenLDAP Administration Guidecontains very readable section "What is LDAP"LDAP RFCsRFC2251 Lightweight Directory Access Protocol (v3)Lightweight Directory Access Protocol (v3): - Attribute Syntax DefinitionsLightweight Directory Access Protocol (v3): - UTF-8 String Representation of Distinguished Names - The String Representation of LDAP Search FiltersLDAP and Lotus NotesLDAP enabled on Notes... to change settingsReplicating Notes data to OpenLDAP diff --git a/test/files/xml/lnk.namespace b/test/files/xml/lnk.namespace deleted file mode 100644 index 5d787d9564..0000000000 --- a/test/files/xml/lnk.namespace +++ /dev/null @@ -1 +0,0 @@ -http://scala.epfl.ch/testSuite/links \ No newline at end of file diff --git a/test/files/xml/lnk.scala b/test/files/xml/lnk.scala deleted file mode 100644 index d5f0295f9c..0000000000 --- a/test/files/xml/lnk.scala +++ /dev/null @@ -1,51 +0,0 @@ -// $Id$ - -import scala.xml.{Attribute, AttributeSeq, Node}; -import dtd._; - -object Test { - - // 3 ways to construct your data - def main(args:Array[String]) = { - - val n = Node.NoAttributes ; - // construct data using original Element name - //val b: Node = dtd._factory.get("link").match { case Some(x) => x(Nil,null)}; // safe - // !!! System.out.println(b.toXML); - - // construct data using constructor (valid) - val c = Link( - AttributeSeq.fromAttrs( - Attribute("","target","http://www.scala.org") - ), - Name(n, scala.xml.Text("hello-link")) - ); - - try { - val c2 = Name( - n, - Link( n ) - ); - Console.println("eh ?"); - } catch { - case scala.xml.dtd.ValidationException(msg) => { - Console.print("validator throws exception: "); - Console.println( msg ); - } - case z => // ignore - Console.println("whut??? "+z.getClass); - - } - - - - - //c.getAttribs.update("target", "http://www.scala.org"); - System.out.println( c ); - - // construct data using loading from a file - val lnkDB = load(args(0)); - System.out.println( lnkDB ); - } - -} diff --git a/test/files/xml/xhtml.check b/test/files/xml/xhtml.check deleted file mode 100644 index 42f6f98e0d..0000000000 --- a/test/files/xml/xhtml.check +++ /dev/null @@ -1,2 +0,0 @@ -a basic xhtml pageWelcome to xhtml in scalaa paragraphanother one, with a link to the LAMP homepage. -a basic xhtml pageWelcome to xhtml in scalaa paragraphanother, with a example link to lamp homepage diff --git a/test/files/xml/xhtml.namespace b/test/files/xml/xhtml.namespace deleted file mode 100644 index 4685ae94e0..0000000000 --- a/test/files/xml/xhtml.namespace +++ /dev/null @@ -1 +0,0 @@ -http://www.w3.org/1999/xhtml \ No newline at end of file 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 ); - } - -} -- cgit v1.2.3