Passing parameters to an XQuery or XSLT through an XProc Pipeline

I’ve recently been helping someone get started with the XML REST Framework, and they asked about getting query string parameters into the XQueries or XSLTs that were a part of their resource implementation. For those of you who are not familiar, what the XML REST Framework does is leverages Spring MVC for all of the HTTP protocol stuff, a developer builds a very thin Java shim to an XProc pipeline that implements the RESTful service. The post I link to above and two earlier versions explain this all in more detail. What I am focusing on in this post is how I can get values from the query string into the right places within my pipeline; there are two parts to this. 1) you need to get your hands on the query string argument and 2) you need to pass that into the XProc pipeline in such a way that it gets to the XQuery or XSLT. It turns out that #2 was already demonstrated in the Patients.java class file in combination with the resourceGET.xpl. Let’s drill in on that a little bit.

Upgrading WordPress

… or Why I Love this Software For the handful of you who have actually been reading my blog on occasion (hi Dad) you might have noticed that not only have the posts been scarce, but the site itself was sorely neglected. So recently, where I thought I had more to share, I became more […]

A Software Dude(tte) Plays with Hardware

… or Dealing with a Loud Computer Fan.I’ve been known to pop a card in and out of a desktop, or swap out a hard drive or add memory in my laptop but let’s face it, these things are pretty darn brain-dead so I don’t get a lot of points for that. So what I […]

Second Version of the XML REST Framework Released

To coincide with EMC World and the presentation I gave on RESTful SOA, I’m delighted to report that we have released the second version of the XML REST Framework. As I described in a previous post, the April 18 release introduced a framework that allowed a services developer to produce RESTful services over EMC Documentum […]

All the little references when you copy an eclipse project

Okay, maybe I’m not supposed to copy eclipse projects this way, but I simply wanted to make a copy of an eclipse project that had already been appropriately configured to include a number of libraries, etc., so that I didn’t have to go through all that config again. Seems like it should work, intuitively, and […]

Increasing VMware disk capacity

There are several helpful articles out there, but I had to use a combination of two of them to get it done. There are two steps: You need to increase the size of the HD from VMware’s viewpoint. And (MAYBE) you will need to use tools of the guest OS (the OS of the image) […]

Getting the Apache CXF Jax-RS Basic sample running

I did it in January – just came back to it today and could not remember what I did. Where is my memory? So for my benefit, and perhaps the benefit of others, I’m writing it down. There are hints in the README that ships with the sample, but it was far from step by […]