resolveURI
Resolves a URI relative to another
Index > Books > Declarative Development Guide > Reference Library > Accessor Listing > resolveURI

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


Module

urn:org:ten60:netkernel:ext:xml:ura

Definition

Active URI Base

active:resolveURI

Format

<instr>
  <type>resolveURI</type>
  <operand>
    <uri>foo.xml</uri>
  </operand>
  <operator>
    <uri>file:/base/path/</uri>
  </operator>
  <target>var:resolveduri</target>
</instr>

Syntax

ArgumentRulesDescription
typeMandatory resolveURI
operandMandatory the relative canonical URI to resolve
operatorMandatory the absolute canonical URI to resolve against
paramOptional optional URIs document to append to
targetMandatory Fragment OKthe target resource

The resolveURI accessor resolves a relative canonical URI document against an absolute canonical URI.

<instr>
  <type>resolveURI</type>
  <operand>
    <uri>mydoc.xml</uri>
  </operand>
  <operator>
    <uri>file:///a/base/path/</uri>
  </operator>
  <target>var:mydocuri</target>
</instr>

Would produce in var:mydocuri...

<uri>file:///a/base/path/mydoc.xml</uri>

resolveURI takes an optional canonical uris parameter document. If this is provided the result will be the resolved canonical URI appended to the uris document.


(C) 2003, 1060 Research Limited
© 2003-2005, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.