Generative XPath (XPath for GWT)

159 views
Skip to first unread message

Oleg Parashchenko

unread,
Jul 30, 2007, 2:34:37 PM7/30/07
to Google Web Toolkit
Hello,

if you want to have an alternative to jaxen4gwt (XPath support for
GWT), you might find my Generative XPath useful:

``Generative XPath is an XPath 1.0 implementation, which can be
adapted to different hierarchical memory structures and different
programming languages. It is based on a small, easy to implement
virtual machine, which is already available for different platforms,
including plain C, Java and .NET.''

XML Prague 2007 paper, slides, download:

http://xmlhack.ru/protva/prague07-generative-xpath.pdf
http://xmlhack.ru/protva/prague07-generative-xpath-slides.pdf
http://sourceforge.net/project/showfiles.php?group_id=138946&package_id=235034


--
Oleg Parashchenko olpa@ http://xmlhack.ru/ XML news in Russian
http://uucode.com/blog/ Generative Programming, XML, TeX, Scheme
http://olpa.livejournal.com/

Thad Humphries

unread,
Jul 31, 2007, 10:58:25 AM7/31/07
to Google-We...@googlegroups.com, Oleg Parashchenko
Can you explain how this could be used within the GWT client code? I don't
see it. These seem to be scripts requiring guile (admittedly, I'm no expert;
I haven't Common Lisp since grad school over 15 years ago).

I'm currently using jaxen4gwt and would love to find something else. I need
to process a lot of XML. jaxen4gwt is very big and has at least one
untrapped exception that I have to code around.

Oleg Parashchenko

unread,
Jul 31, 2007, 12:52:01 PM7/31/07
to Google Web Toolkit
Hi Thad,

On 31 Jul., 18:58, Thad Humphries <thad.humphr...@gmail.com> wrote:
> Can you explain how this could be used within the GWT client code? I don't
> see it.

Unfortunately, I have no answer. My experience with GWT is limited to
Scott Blum's presentation. The goal of my posting was to raise
interest in my work. Hopefully someone can decide it's cool and port
Generative XPath to GWT. A good diploma, by the way.

> These seem to be scripts requiring guile (admittedly, I'm no expert;
> I haven't Common Lisp since grad school over 15 years ago).

In my approach, to execute XPath, one needs

1) Compile an XPath expression to a Virtual Machine code using some
command-line scripts,
2) From an application, interpret/run the VM code.

The most cool way for (2) is to convert the VM code to the AST tree,
used internally by GWT compiler. In this case you get XPath, compiled
to JavaScript, without additional levels of interpretation. But it's
something for very very far future.

The practical way for (2) is to use SICP as the interpreter of the VM
code:

http://sourceforge.net/projects/sisc/

But again, I can't suggest the details.

>
> I'm currently using jaxen4gwt and would love to find something else. I need
> to process a lot of XML. jaxen4gwt is very big

If the cool way were implemented, you'd get very little overhead. But
that's only dreams, unfortunately.

> and has at least one
> untrapped exception that I have to code around.

--
Oleg Parashchenko olpa@ http://uucode.com/


http://uucode.com/blog/ Generative Programming, XML, TeX, Scheme

http://tohtml.com/ Online syntax highlighting

Reply all
Reply to author
Forward
0 new messages