W3C home > Mailing lists > Public > xproc-dev@w3.org > July 2010

RE: Can a pipeline 'call' itself?

From: <Toman_Vojtech@emc.com>
Date: Thu, 29 Jul 2010 08:25:39 -0400
Message-ID: <997C307BEB90984EBE935699389EC41C01EB3EED@CORPUSMX70C.corp.emc.com>
To: <xproc-dev@w3.org>
> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 29 July 2010 12:26:28 GMT