curi:curi:
The curi URI address scheme
Home > Books > Solutions Developer Guide > URI Schemes > curi:

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


The curi: scheme is used to create a level of URI address indirection and is available only within a DPML program. URI indirection is similar to using pointers in the C language.

In the curi: scheme a URI immediately follows the scheme prefix. That URI must identify a resource containing an XML fragment of the canonical type URI:

<uri>{uri}</uri>

When the curi based URI is referenced the actual URI used is the one in the XML document. For example the following instruction;

<instr>
  <type>copy</type>
  <operand>curi:ffcpl:/myCURI.xml</operand>
  <target>this:response</target>
</instr>

when referring to the following XML document:

<uri>ffcpl:/data.xml</uri>

will copy the contents of the resource ffcpl:/data.xml to the response.

You may also want to examine the accessor xpur which can extract a URI from an xpath location in an arbitrary document into a canonical URI document.

© 2003-2007, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.