New blog post: Origami - XQuery screen scraping with Extractors

Wednesday, 26 November 2014 · 3 messages · last reply 1 Dec 2014
MG
Marc van Grootel26 Nov 2014 20:42 #
It was already up for a while but DNS issues made my blog go missing for almost a week. Now it's back. http://xokomola.com/2014/11/18/xquery-origami-2.html The post describes how to do screen scraping using Origami extractors. I'm quite happy with the outcome. --Marc
MG
Maximilian Gärber28 Nov 2014 18:18 #
Nice! Looks clean and compact. I could also think of an additional declarative layer that integrates your approach with something similar to xquery templating in exist-db [1] I've already done a POC implementation of the exist-db templating way using basex. Essentially it is just stepping trough some template markup and dynamically mapping annotations/attributes to function calls. Drop a line if you are interested in extending your approach. [1] http://exist-db.org/exist/apps/doc/templating.xml?q=template&field=all&id=D2.2.11 2014-11-26 20:42 GMT+01:00 Marc van Grootel <marc.van.grootel at gmail.com>:
Quoted text · Marc van Grootel · 9 lines
> It was already up for a while but DNS issues made my blog go missing > for almost a week. Now it's back. > > http://xokomola.com/2014/11/18/xquery-origami-2.html > > The post describes how to do screen scraping using Origami extractors. > I'm quite happy with the outcome. > > --Marc
MG
Marc van Grootel1 Dec 2014 19:15 #
Hi Maximilian, That would be a way to do it indeed and I have looked at the eXist templ module too. It's not the direction I want to take though. My goal is to keep templates 100% free of templating hints or annotations. All logic will reside in xquery functions or xquery data structures. But then again, I always like to see other templating implementations so feel free to share your code. Cheers, --Marc
Quoted text · Maximilian Gärber · 30 lines
> On 28 nov. 2014, at 18:18, Maximilian Gärber <mgaerber at arcor.de> wrote: > > Nice! Looks clean and compact. > > I could also think of an additional declarative layer that integrates > your approach with something similar to xquery templating in exist-db > [1] > > I've already done a POC implementation of the exist-db templating way > using basex. Essentially it is just stepping trough some template > markup and dynamically mapping annotations/attributes to function > calls. > > Drop a line if you are interested in extending your approach. > > > [1] http://exist-db.org/exist/apps/doc/templating.xml?q=template&field=all&id=D2.2.11 > > > > 2014-11-26 20:42 GMT+01:00 Marc van Grootel <marc.van.grootel at gmail.com>: >> It was already up for a while but DNS issues made my blog go missing >> for almost a week. Now it's back. >> >> http://xokomola.com/2014/11/18/xquery-origami-2.html >> >> The post describes how to do screen scraping using Origami extractors. >> I'm quite happy with the outcome. >> >> --Marc

⚡Generated with XQuery