Martin Klang | 5 Jul 2003 21:14
Picon
Favicon

access cvs


Hey all,

for those of you who want to have a closer look at the source or build
from CVS, here's an easy way to access the repository anonymously. The
client tool is CVSGrab[1], which runs over the web interface and should
work even if you're behind a firewall.

The repository can also be browsed at: http://cvs.pingdynasty.com

Instructions for anonymous CVS access to the pingdynasty repository:

- Install Ant[2], preferrably v1.5, and JDK 1.2+

- Download the top-level build file to an empty directory:
http://download.pingdynasty.com/tools/cvsgrab/build.xml

- Run the build file (cd to the directory and run ant). This will first
download three jar files needed by CVSGrab and then ask you for the name
of a CVS module, eg ObjectBox.
A new directory will be created for each module that is checked out.

Easy!

To do a CVS update, go back to the top level directory and run the
check-out procedure again. This will only download files that have
changed.

[1] http://cvsgrab.sourceforge.net/
[2] http://ant.apache.org
(Continue reading)

Ken McCloskey | 9 Jul 2003 02:59
Picon
Favicon

<program> tag (again)

Martin,

Once again thanks for your hard work on o:xml and your quick response to 
this mailing list.

Previously, I asked you about the program tag and how to prevent it from 
appearing in the output when you run an o:xml script. Could you elaborate on 
how I can make this happen?

I see that you can rename <program> to whatever you want, but even if you 
do, the output will still contain the "xmlns:o="http://www.o-xml.org/lang/" 
namespace declarations which will be meaningless in the output XML.

Also, I know o:xml is designed to generate XML as output. But if you can 
suppress the xml version/encoding specification and program tag and just 
generate plain text, you can use the database extensions to generate CSV 
files, which would be quite handy.

I really like the terse code you can write to generate output from SQL 
statements, but the program tag keeps getting in the way.

Thanks, Ken

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail
Martin Klang | 9 Jul 2003 17:55
Picon
Favicon

Re: <program> tag (again)


Hi Ken, here's another quick response :)

try using <o:do> instead of the program tag, something like this:

<o:do xmlns:o="http://www.o-xml.org/lang/">

... your program

</o:do>

the o:do elements don't get copied to the result, and so can be used to
wrap other elements without producing output.

The limitation here is that the program itself must be a valid XML file.
The output may be an XML fragment, and so does not have to have an XML
declaration or a single root element - unless you want to do further XML
processing on it.

> Also, I know o:xml is designed to generate XML as output. But if you can
> suppress the xml version/encoding specification and program tag and just
> generate plain text, you can use the database extensions to generate CSV
> files, which would be quite handy.

I've not really thought about using o:XML to generate text, but I guess
that XML fragments can be plain Unicode text.

[off to try it out]

<o:do xmlns:o="http://www.o-xml.org/lang/"
(Continue reading)

Sasha Bilton | 9 Jul 2003 18:17

RE: <program> tag (again)


> However my recommendation would generally be to use o:XML to 
> generate XML,
> and then XSL to generate CSV from that. Using the 
> command-line ObjectBox
> (or the shell script) you can pipe the result nodes through 
> an XSLT engine
> by adding '-xsl' to the command. The ObjectBox servlet does this
> automatically too.
> Let me know if you want a sample xsl file to try this out with.

This is exactly how I've done it. Rather than trying to force the XML to produce csv files I've push the XML
through the an XSLT engine and got good results that way.

______________________________________________________________________
Any views or opinions expressed in this e-mail are solely those of the author and do not necessarily
represent those of ENDEMOL UK plc unless specifically stated.
This email and the information it contains are confidential and intended solely for the use of the
individual or entity to which it is addressed. If you have received this email in error please notify us
immediately and delete the copy you have received from your system.
You should not copy it for any purpose, re-transmit it, use it or disclose its contents to any other person.
If you suspect the message may have been intercepted or amended please call the sender.
Sasha Bilton | 9 Jul 2003 18:30

Anyone interested in building a web content management system in o-xml?

Hi,

I'm interested in using o-xml & xsl as the 'language' for a content management system, but only as a open
source collaboration. I know there are a lot of OS CMS systems out there (PostNuke, JBossNuke, Slash, etc)
and that XML based ones exists too, I've yet to find one that feels 'just right'. Also, I think it would be so
easy to write a data driven CMS in o-xml it would be a crime not to give it a go. 

For my part I can donate a host linux server and my wide (rather than deep) Java development skills. Plus I'll
set up a sourceforge project if nobody else wants the glory ;). 

I'd say reply to me privately, put I think it'll generate lively discussion on the list, so send your answer
to o-xml@...

Cheers,

Sasha

______________________________________________________________________
Any views or opinions expressed in this e-mail are solely those of the author and do not necessarily
represent those of ENDEMOL UK plc unless specifically stated.
This email and the information it contains are confidential and intended solely for the use of the
individual or entity to which it is addressed. If you have received this email in error please notify us
immediately and delete the copy you have received from your system.
You should not copy it for any purpose, re-transmit it, use it or disclose its contents to any other person.
If you suspect the message may have been intercepted or amended please call the sender.
Ken McCloskey | 15 Jul 2003 01:06
Picon
Favicon

Ampersand and db:results

Martin,

o:xml is handy and nifty, particularly the database extensions. However, if 
I do a db:query that returns a column that contains the ampersand, I run 
into trouble, since the ampersand is of course not allowed in XML.

My first thought was to include the replace function, but that can't be 
nested in db:results. Can you think of another way to make this work?

Thanks for all your help.

Ken

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Panec, Tim M | 15 Jul 2003 01:48
Picon

Include directive

An o:include directive is listed in the documentation but not defined.
Does such a directive exists and does it include another file? If so can you define it's attributes?

I'd like to put my <db:connection> info in a single file that gets included in all my oxml files.

Martin Klang | 15 Jul 2003 12:42
Picon
Favicon

Re: Include directive


Tim,

you can include an xml document verbatim with XInclude statements:
<xi:include href="connection.xml"
 xmlns:xi="http://www.w3.org/2001/XInclude"/>

you can also use XPath expressions in an XPointer. eg to get all
subelements from a root element "doc" you could do something like:

<xi:include href="connection.xml#xpointer(doc/*)"
 xmlns:xi="http://www.w3.org/2001/XInclude"/>

With ObjectBox 0.9.5 (current) there's also a new import statement which
is intended to include only o:XML defintions - functions, types and
procedures:

<o:import href="module.oml"/>

comprehensive include/import documentation is going to be included in
the 1.0 spec, due out soon(-ish).

cheers -

/m

Martin Klang
http://www.o-xml.org - the object-oriented XML programming language

On Mon, 14 Jul 2003, Panec, Tim M wrote:

> An o:include directive is listed in the documentation but not defined.
> Does such a directive exists and does it include another file? If so can you define it's attributes?
>
> I'd like to put my <db:connection> info in a single file that gets included in all my oxml files.
>
Martin Klang | 15 Jul 2003 12:49
Picon
Favicon

Re: Ampersand and db:results


I suspect this is a deeper running problem with creating strings. What is
the actual error message? If you are running the ObjectBox standalone, try
using/not using the -xsl flag to change the output handler.

The output method should either escape non-XML chars, or turn strings with
reserved chars into CDATA sections.

If possible i'll include a fix with the next ObjectBox release, which
i'm hoping to have ready sometime this week.
(version 0.9.6 will also include regular expressions, exception handling,
BSF support and a few other goodies!)

cheers,

/m

Martin Klang
http://www.o-xml.org - the object-oriented XML programming language

On Mon, 14 Jul 2003, Ken McCloskey wrote:

> Martin,
>
> o:xml is handy and nifty, particularly the database extensions. However, if
> I do a db:query that returns a column that contains the ampersand, I run
> into trouble, since the ampersand is of course not allowed in XML.
>
> My first thought was to include the replace function, but that can't be
> nested in db:results. Can you think of another way to make this work?
>
> Thanks for all your help.
>
> Ken
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
> _______________________________________________
> o-xml mailing list
> o-xml@...
> http://lists.pingdynasty.com/mailman/listinfo/o-xml
>
Martin Klang | 16 Jul 2003 18:53
Picon
Favicon

new release


Hi all,

I've just released ObjectBox 0.9.6. Don't be fooled by the minor version
number, this release has major new features.

There's a whole new exception handling system, which is covered in the
updated programming guide [1].

As important is the integration of Perl-style regular expressions in the
String type, supported by split(), match() and substitute() functions.

There are also a (great!) number of bug fixes and improvements - for a
complete list of changes see [2].

Download available at the usual url [3].

Also don't miss the type API [4].

The release won't be published to Freshmeat until tomorrow - get it now
and beat the crowds!

have fun,

/m

[1] http://www.o-xml.org/docs/tutorial/programming.html
[2] http://www.o-xml.org/objectbox/changes.txt
[3] http://www.o-xml.org/download/
[4] http://www.o-xml.org/docs/lang/

ps if you download the ObjectBox, do let me know what your experience of
it is! what does/doesn't work for you, what's good/bad etc. all feedback
is welcome and wanted, even if it's just to say you've tried it!

Martin Klang
http://www.o-xml.org - the object-oriented XML programming language

Gmane