  RE: How to connect to a database using xproc  From:
<vojtech.toman@emc.com> Date: Fri, 12 Nov 2010 07:58:23 -0500
Message-ID: <997C307BEB90984EBE935699389EC41C02B2D721@CORPUSMX70
C.corp.emc.com> To: <xproc-dev@w3.org> With EMC's Calumet and
our xDB XML database, you can use URIs to access resources
stored in the database. On the XProc processor side, you provide
the connection configuration (database you want to connect to,
username/password, read-only/read-write transaction etc). In the
pipeline, everything is then transparent - everywhere where you
can use URIs (p:import, p:document, p:load, p:store, p:xsl-
formatter etc.), you can use the "xhive:" URI scheme:
<p:input port="source">        <p:document
href="xhive:/path/to/doc1.xml"/>        <p:document
href="xhive:/path/to/doc2.xml"/>        <p:document
href="local/file.xml"/>               declare variable $querystr
as xs:string external;            collection()//para[. contains
text {$querystr} using           <p:store
href="xhive:/path/to/doc.xml