Eric Anderson wrote:
> Well I thought since href was relative that it would go there. But
> instead I think it is in the working directory of apache itself. I
> specified an absolute directory to /var/www/localhost and it worked
> fine; so you can try /tmp/structure.xml and it should work.
Ah - thanks. Indeed it does. However, I'm not really happy with
hardcoding paths into the xslt that are specific to my
particular modxslt configuration. In fact, thinking about
it, I'm fairly sure that what I want to do is not actually
trivially possible with modxslt.
Perhaps I should explain better what I'm trying to do. I've
got dynamically generated xml, output from various
calculations, which can be transformed into readable
html for monitoring. Currently, the transform produces
one main page, plus ten or twenty additional documents, which
are either svg, cml or short html docs, which are all
referenced from the main page by relative href.
I've been doing this by hand with xsltproc, and pointing
my browser at the resultant documents, but I thought I
would see if I could do it automatically through apache.
What I was hoping would be possible is that modxslt
would intercept the request, and transparently process
it with xslt (presumably actually putting the result
in a temporary directory somewhere), so that when
I requested
"get_file.py?file=output.xml"
it would produce a suite of documents that would all
be positioned relative to each other, but I wouldn't
care where they actually were - indeed they need not
exist anywhere except in apache's memory.
If I relied on hardcoding paths in the xslt, I couldn't
use the same xslt as I do when using it from the
command line, and if I attempted to view two of these
documents at the same time, they'd overwrite each other's
output.
So - is modxslt able to do this, or am I expecting too
much? If it's not possible, I'll see how much of the
information can be inlined into the main output,
and try and do away with the extra documents.
--
Dr. Toby White
Dept. of Earth Sciences, Downing Street, Cambridge CB2 3EQ. UK
Email: <tow21@xxxxxxxxx>