MarkLogic 10 Product Documentation
cvt:basepath

cvt:basepath(
   $uri as xs:string
) as xs:string

Summary

Return the base path of the URI, cutting off the filename.

Parameters
uri The URI to manipulate.

Example

  xquery version "1.0-ml";
  import module namespace cvt = "http://marklogic.com/cpf/convert" 
		  at "/MarkLogic/conversion/convert.xqy";

  cvt:basepath( "http://example.com/a.path/myfile.doc" ) 

  => "http://example.com/a.path"
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy