lux.functions.file
Class FileExtensions

java.lang.Object
  extended by lux.functions.file.FileExtensions

public class FileExtensions
extends Object

Provides a (very incomplete, noncompliant) implementation of http://www.expath.org/spec/file

file:exists($path as xs:string) as xs:boolean

returns true iff the file at the given path exists.

file:is-dir($path as xs:string) as xs:boolean

returns true iff the file at the given path exists and is a directory.

file:list($path as xs:string) as xs:string*

If $path is a directory, returns the names of files (and directories) in the directory in a system-dependent order. The directory itself and its parent are not included in the list


Field Summary
static String FILE_NAMESPACE
           
 
Constructor Summary
FileExtensions()
           
 
Method Summary
static void registerFunctions(net.sf.saxon.s9api.Processor processor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_NAMESPACE

public static final String FILE_NAMESPACE
See Also:
Constant Field Values
Constructor Detail

FileExtensions

public FileExtensions()
Method Detail

registerFunctions

public static void registerFunctions(net.sf.saxon.s9api.Processor processor)


Copyright © 2013. All Rights Reserved.