hello world

Alexander Genaud <alexgenaud-/[email protected]> Fri, 12 Nov 2004 03:12:29 -0800 (PST)
Newsgroups gmane.text.xml.o-xml
Message-ID <[email protected]>
Hello,

I have not yet managed to subscribe to the mailing list. Please
forward comments to: alexgenaud-/[email protected]

I'd like to note that o:xml "Hello World" articles abound on the
net, but their examples often do not work in the latest. Can I
suggest a simple hello.oml on the website? My example simply
prints the entire oml file to stdout (is that correct?):


$ cat hello.oml
    <?xml version="1.0"?>
    <o:program xmlns:o="http://www.o-xml.org/lang">
      <o:type name="HelloWorld">
        <o:function name="hello">
          <o:do>
            <o:return select="'Hello World'"/>
          </o:do>
        </o:function>
      </o:type>
      <o:set instance="HelloWorld()"/>
      <o:eval select="$instance.hello()"/>
    </o:program>

$ java -jar objectbox.jar hello.oml
    <?xml version="1.0"?>
    <o:program xmlns:o="http://www.o-xml.org/lang">
      <o:type name="HelloWorld">
        <o:function name="hello">
          <o:do>
            <o:return select="'Hello World'"/>
          </o:do>
        </o:function>
      </o:type>
      <o:set instance="HelloWorld()"/>
      <o:eval select="$instance.hello()"/>
    </o:program>


Cheers,
Alex

=====
<ale></genaud.org>


		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com