relativizeURI
Relativizes a URI from another
Index > Books > Declarative Development Guide > Reference Library > Accessor Listing > relativizeURI

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:relativizeURI

Format

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

Syntax

ArgumentRulesDescription
typeMandatory relativizeURI
operandMandatory the absolute canonical URI to relativize
operatorMandatory the absolute canonical URI to relativize against
paramOptional optional URIs document to append to
targetMandatory the target resource

The relativizeURI accessor relativizes an absolute canonical URI document against an absolute canonical URI.

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

Would produce in var:mydocuri...

<uri>mydoc.xml</uri>

relativizeURI takes an optional canonical uris parameter document. If this is provided the result will be the relativized 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.