I need to use the USES directive to include a file (Not using the library) for a test environment. I can get the following to work if the scripts in the same dir:
<USES test=test>
When I use a relative or absolute path such as:
<USES test=search/test >
or
<USES test=/usr/local/html/search/test >
I get the following error:
[test=/usr/local/html/search/test] No HTML/text allowed outside functions
I also tried using quotes and I get the same problem. I'm on Solaris 3.01.976899697
What are the contents of the file /usr/local/html/search/test? (When Vortex is compiling a module, the normal file name in error messages is replaced with the module name in square brackets. When the module is from a file, the file name is appended with an equal sign. So this error is from the module file /usr/local/html/search/test.) This error means /usr/local/html/search/test was probably not a valid Vortex script.
The script works fine if it's in the same directory:
<USES test=test>
Sorry, It did also give me the square brackets in the error message. Here's the full message:
015 [test=/usr/local/html/search/test]:3: No HTML/text allowed outside functions
The script is very simple ( just for testing uses ):
<script language="vortex">
<a name="somefunction" PUBLIC>
TEST FUNCTION
</a>
</script>