While planning for Developer Days 2008 I tried to wring something interesting out of my technically starved brain to show off to the crowds of hackers attending. At the time I had just noticed Twitter, a service that seemed to promise the value of Facebook without all the junk - seeing status updates from my […]
Patternist
From Qt Labs
| Patternist | |||
| |||
| Platforms: | GNU/Linux, Windows, Mac | ||
| License: | GPL | ||
| Depends on: | The Software Development Kit, found in patternist/sdk/, has dependencies on the shell and Bison. | ||
Patternist blogs | |||
Subversion:
| |||
[edit] Patternist
[edit]
Patternist is an open source XQuery and XPath 2.0 engine. Being accessible through a C++ API and a command line utility called `patternist', it aims at providing convenient functionality for querying and creating XML.
[edit]
Patternist is part of the XML module in Qt 4.4, which can be accessed through the Qt snapshots. Note that Patternist is not added to the compile when using a compiler that doesn't support C++ member templates(such as MSVC 6) or when C++ exceptions are disabled.
Two sets of documentation is available: for the public Qt API and for the internals.
Questions about Patternist and XQuery can be asked on the qt-interest mailing list or by contacting Trolltech.
[edit] Latest 5 Patternist Blogs
So the time is finally here. Qt 4.4.0 was released a few weeks ago and as promised Qt Jambi is right behind. A lot of effort has gone into this one, in addition to supporting all the new Qt features, like Phonon, Webkit, Widgets in Graphics View, XQuery and Qt Concurrent, we also have a […]
People have asked for Qt’s XQuery & XPath support to not be locked to a particular tree backend such as QDom, but to be able to work on arbitrary backends.
Any decent implementation(such as XQilla or Saxon) provide that nowadays in someway or another, but I’d say Patternist’s approach is novice, with its own share of […]
Attention to details is ok, but compiler messages has historically not received it. Here’s an example of GCC’s output:
qt/src/xml/query/expr/qcastingplatform.cpp: In member function ‘bool CastingPlatform::prepareCasting():
qt/src/xml/query/expr/qcastas.cpp:117: instantiated from here
qt/src/xml/query/expr/qcastingplatform.cpp:85: error: no matching function for call to ‘locateCaster(int)’
qt/src/xml/query/expr/qcastingplatform.cpp:93: note: candidates are: locateCaster(const bool&)
Typically compiler messages have been subject to crude printf approaches and dignity has been […]
The Qt snapshots now includes support for XPath 2.0 and XQuery 1.0.
Being part of the XML library, the idea is that Qt 4.4 will ship with a C++ API for running and evaluating such queries. On the side too, is a command line tool called patternist, for quickly testing queries, scripting and old-school web […]