[m-dev.] For Review: xml samples directory

Ina Cheng inch at students.cs.mu.oz.au
Fri Dec 1 16:30:27 AEDT 2000


Estimated hours taken: 0.1 

Add a sample directory in the XML parser directory


extras/xml/README
        update the README file

extras/xml/tryit.m
        modify the file to print out all output messages as well as 
        any error messages

extras/xml/samples
        a sample directory containing instructions on how to run the
        parser and some sample files

extras/xml/samples/README
        README file

extras/xml/samples/newsarticles.xml
        sample XML file for running the XML parser

extras/xml/samples/newsarticles.dtd
        sample DTD file for running the XML parser

extras/xml/samples/catalog
        a catalog file  



cvs diff: Diffing .
Index: README
===================================================================
RCS file: /home/mercury1/repository/mercury/extras/xml/README,v
retrieving revision 1.1
diff -u -r1.1 README
--- README      2000/09/05 22:33:56     1.1
+++ README      2000/12/01 01:14:52
@@ -37,3 +37,5 @@
                        and prints any error messages
        Mmakefile       a control file for mmake to build the sample
program
 
+       samples         a directory including instructions on how to run
the
+                       XML parser and some sample files 
Index: tryit.m
===================================================================
RCS file: /home/mercury1/repository/mercury/extras/xml/tryit.m,v
retrieving revision 1.1
diff -u -r1.1 tryit.m
--- tryit.m     2000/09/05 22:33:57     1.1
+++ tryit.m     2000/12/01 00:17:57
@@ -75,7 +75,7 @@
                stderr_stream(StdErr),
                format(StdErr, "%s: %s\n", [s(File), s(Err)])
            ),
-           %write(Res), nl,
+           write(Res), nl,
            []
     ;
        []
cvs diff: Diffing samples
Index: samples/README
===================================================================
RCS file: README
diff -N README
--- /dev/null   Wed Nov 15 09:24:47 2000
+++ README      Fri Dec  1 12:14:29 2000
@@ -0,0 +1,24 @@
+
+This directory contains sample files for running the XML parser.
+
+To build the parser, under extra/xml directory: 
+
+Step 0.                mmake tryit.depend
+
+Step 1.                mmake tryit
+
+
+To run the parser, under extra/xml/samples directory:
+
+               ../tryit newsarticles.xml
+
+
+The files in this directory are:
+
+       README                  this file.
+       catalog                 a catalog file  
+       newsarticles.dtd        a sample news article DTD file
+       newsarticles.xml        a sample news article XML 1.0 file
+
+
+
Index: samples/catalog
===================================================================
RCS file: catalog
diff -N catalog
--- /dev/null   Wed Nov 15 09:24:47 2000
+++ catalog     Fri Dec  1 12:12:31 2000
@@ -0,0 +1 @@
+PUBLIC  "-//Mercury//Newsarticles 1.0//EN"          "newsarticles.dtd"
Index: samples/newsarticles.dtd
===================================================================
RCS file: newsarticles.dtd
diff -N newsarticles.dtd
--- /dev/null   Wed Nov 15 09:24:47 2000
+++ newsarticles.dtd    Fri Dec  1 11:58:04 2000
@@ -0,0 +1,11 @@
+<!--   News Articles DTD -->
+
+<!ELEMENT NEWSARTICLES (ARTICLE+)>
+
+<!ELEMENT ARTICLE (TITLE, BODY)>
+<!ATTLIST ARTICLE DATE CDATA #REQUIRED>
+
+<!ELEMENT TITLE (#PCDATA)>
+
+<!ELEMENT BODY (#PCDATA)>
+
Index: samples/newsarticles.xml
===================================================================
RCS file: newsarticles.xml
diff -N newsarticles.xml
--- /dev/null   Wed Nov 15 09:24:47 2000
+++ newsarticles.xml    Fri Dec  1 12:12:41 2000
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE NEWSARTICLE SYSTEM "newsarticles.dtd">
+<NEWSARTICLE>
+<ARTICLE DATE="10/05/00">
+    <TITLE>Events and Reports</TITLE>
+    <BODY>Two new sections have been added to the web site. The events
section will give information about events Mercury has been involved in --
we start this section with a page on Mercury coming 4th (of 38 teams) in
the ICFP 2000 programming contest. The reports section contains regular
reports from the developers, such as minutes from Mercury meetings. Both
are available from the sidebar menu.</BODY>
+</ARTICLE>
+<ARTICLE DATE="10/04/00">
+    <TITLE>Two new papers</TITLE>
+    <BODY>Two new papers on Mercury are now available from our papers
page. One describes a binding-time analysis for higher order code, while
the other describes an analysis for detecting whether a memory cell is
availble for reuse.</BODY>
+</ARTICLE>
+</NEWSARTICLE>


Thanks
Ina


--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list