resolveURI
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

resolveURI

Used to resolve a relative canonical URI against an absolute canonical URI.

Module

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

Definition

Format

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

Syntax

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