rendered paste body<?xml version="1.0" encoding="UTF-8"?><p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xdb="http://orbeon.org/oxf/xml/xmldb" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:xu="http://www.xmldb.org/xupdate" xmlns:txc="http://www.transxchange.gov.uk/" xmlns:tfi="http://www.transfrance.info/"> <p:param type="input" name="instance"/> <p:param type="output" name="data"/> <p:choose href="#instance"> <!-- création d'une nouvelle ligne --> <p:when test="//form/head/action = 'new'"> <p:processor name="oxf:xslt"> <p:input name="data" href="#instance"/> <p:input name="config"> <x/> </p:input> <p:output name="data" id="query" debug="true"/> </p:processor> </p:when> <!-- édition d'une ligne existante --> <p:when test="//form/head/action = 'edit'"> <p:processor name="oxf:xslt"> <p:input name="data" href="#instance"/> <p:input name="config"> <xdb:query collection="/db/home/tfi/TransFrance.Info" xsl:version="2.0"> import module namespace tfi = "http://www.transfrance.info/" at "http://localhost:8080/ops/examples-standalone/TransFrance/tfi.xqm"; let $id := '<xsl:value-of select="//form/body"/>' return tfi:resolve-references(id($id), ("Localité.xml", "Saison.xml", "Transporteur.xml")) </xdb:query> </p:input> <p:output name="data" id="query" debug="true"/> </p:processor> </p:when> <!-- modification des informations d'une ligne --> <xi:include href="maj-informations.xml" xxi:omit-xml-base="true"/> </p:choose> <p:processor name="oxf:xmldb-query"> <p:input name="datasource" href="../datasource.xml"/> <p:input name="query" href="#query"/> <p:output name="data" ref="data" debug="true"/> </p:processor></p:config>