RE: Can a pipeline 'call' itself?

> On that note, does anyone have any principles or rules of thumb
> as to when it's best to use xproc and when it's best to do something
> using xslt?

While you can use XProc alone for many XML processing/transforming
tasks, my experience is that once you want to do something more
complicated, using p:xslt or p:xquery is often the more elegant
solution. This is not to say that XProc is useless - not at all. There
is no shame in resorting to XSLT or XQuery simply because these
languages do a particular task better. The point of XProc is to
integrate the different XML processing technologies together so that you
can use them seamlessly, not to replace them.

Another question is performance. If something can be done with just
basic XProc (using "simple" standard steps such as p:insert,
p:add-attribute etc.), I would expect the performance to be better
compared to p:xslt or p:xquery, where you always have to expect certain
overhead related to setting up the XSLT/XQuery processor, parsing the
stylesheet/query etc.

Regards,
Vojtech

--
Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group
toman_vojtech@emc.com
http://developer.emc.com/xmltech

Received on Thursday, 29 July 2010 12:26:28 UTC