relativizeURI
XML Utilities
Release Notes
attachGoldenThread
cast
copy
cutGoldenThread
cwu
delete
dpml
dump
entrypoint
exists
expire
fls
guid
hotRestart
HTTPCookie
HTTPRedirect
isUnix
locationToXPath
lock/unlock
log
loglevel
luceneIndex
luceneSearch
mapper
mapper-export
md5
mls
netkernel:*
new
Orchextra
org.ten60.util.aspell
org.ten60.util.image.SVG2PNG
org.ten60.util.image.Text2PNG
org.ten60.util.image.xchart
plainTextToXHTML
regex
relativizeURI
requestWithArgs
resolveURI
serialize
sleep
sqlBatch
sqlBooleanQuery
SQLEncodeElement
SQLEscapeXML
sqlQuery
sqlUpdate
stm
stopWatch
StringToCanonicalString
throw
toRelaxNG
trace
validateDTD
validateRNG
validateSchematron
validateXSD
xacml
xform
XHREFlinker
XHTMLredirect
XHTMLTidy
xinclude
xmltidy
xpatheval
xpur
xquery
xrl
xsign
xslfo-fop
xslfo-fop
xslt
xverify
License
Change History
NetKernel History
Acknowledgements

relativizeURI

Used to relativize an absolute canonical URI against an absolute root canonical URI.

Module

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

Definition

Format

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

Syntax

ElementRulesDescription
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,2004, 1060® Research Limited
1060 registered trademark, NetKernel trademark of 1060 Research Limited