Cernunnos Manual


${phrase()}

Description:

Reads the resource at the specified location, constructs a new Phrase from the content, and returns the result of evaluating the Phrase.

Reagents:

Name XPath Description Reagent Type Expected Type Required
CONTEXT @context The context from which missing elements of the LOCATION can be inferred if it is relative. The default is a URL representing the filesystem location from which Java is executing. PHRASE java.lang.String No
LOCATION descendant-or-self::text() Location of a resource to be read. May be a filesystem path (absolute or relative), or a URL. PHRASE java.lang.String Yes

Examples:

Connects to a database using the password stored in '/C:/passwd.txt', executes the SQL statement specified by the first argument on the command line:

 
       
        <sql-connection driver="org.hsqldb.jdbcDriver" password="${phrase(/C:/passwd.txt)}" url="jdbc:hsqldb:hsql://localhost:8887" username="sa"> 
          <sql-statement sql="${req($1)}"/> 
        </sql-connection>