From: James F. <jam...@gm...> - 2010-03-15 20:16:48
|
I am the maintainer/implementator, its very much incomplete at the moment ... with XProc spec just turning into a W3C Proposed Recommendation (just last week) I will now move forward on getting higher compliance. I believe you have done everything right, but I note that your <p:insert match=".[1]" position="before"> is not yet supported yet. In the meantime I would suggest using XML Calabash as a test xproc engine. James Fuller On Mon, Mar 15, 2010 at 4:29 PM, christophe geiser <chr...@e-...> wrote: > Hi all > > Is there a place where we could check the current status of xproc > implementation (e.g. what has been fully tested and what is yet to be)? > > I must say that I struggle a bit with the xproc engine, and don't know if it > is because I am a bit slow at learning the language or because I run into > features not yet fully implemented. > > For example I try a simple insert, called from an external library like > this: > > A-The library > <p:library > xmlns:p="http://www.w3.org/ns/xproc" > xmlns:c="http://www.w3.org/ns/xproc-step" > xmlns:e="http://www.e-Smile.org" > xmlns:xproc="http://xproc.net/xproc" > > > <p:declare-step type="e:resource-type" name="resource-type"> > <p:input port="source" primary="true"/> > <p:input port="to-insert"/> > <p:output port="result" primary="true"/> > <p:insert match=".[1]" position="before"> > <p:input port="insertion"> > <p:pipe port="to-insert" step="resource-type"></p:pipe> > </p:input> > </p:insert> > </p:declare-step> > </p:library> > > B-The xQuery > xquery version "1.0" encoding "UTF-8"; > import module namespace const = "http://xproc.net/xproc/const"; > import module namespace xproc = "http://xproc.net/xproc"; > import module namespace u = "http://xproc.net/xproc/util"; > > let $pipeline := > document{ > <p:pipeline xmlns:c="http://www.w3.org/ns/xproc-step" > xmlns:e="http://www.e-Smile.org" > xmlns:p="http://www.w3.org/ns/xproc" name="pipeline"> > <p:import href="/db/pathToLib/library.xpl"></p:import> > <e:resource-type> > <p:input port="to-insert"> > <p:inline><hasBeenInserted /></p:inline> > </p:input> > </e:resource-type> > </p:pipeline>} > let $signature := <para> > <test>1</test> > </para> > return xproc:run($pipeline,$signature) > > I would be very happy if this would return (what I presume is the expected > result?): > <para><hasBeenInserted/><test>1</test></para> > > Instead, I get: > <para> > <para> > <test>1</test> > </para> > <test>1</test> > </para> > > I am just missing something? > Cheers > Christophe > > > -- > Christophe Geiser, social entrepreneur > e-Smile, solutions in monitoring and information management > -- > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > > |