Adam Griffiths wrote:
> I'm interested in this idea of "embedding <?xml-stylesheet?> into the
> XPathScript output". I'm actually using XSLT but I'd like to achieve the
> same thing. Can you output PI's half way thought the pipeline to add
> additional processing on the fly? Or must all PI's be in the source
> document?
> 
> Basically id like to output the PI <?xml-stylesheet href="NULL"
> type="application/x-xsp"?> only if necessary.
> 
> Good / Bad / Impossible Idea?
> 

IMHO XSP is best suited as THE first processor in pipeline. This is due 
to the way how it works. If used it:
1) translates XSP document into source code in some programming language 
[perl, in case of AxKit];
2) compiles that code [into perl's bytecode, in case of AxKit];
3) execute compiled code.

Now, if XSP is the first processor, then it can (and does) perform steps 
(1) and (2) just once per document (given it does not change), and only 
(3) step should be done for every request.

If XSP is not the first processor, then for every request it should 
perform all 3 steps, because XSP code is not constant any more 
(otherwise why do you need preceding processor). Well, to perform steps 
(1) and (2) is not an extaordinary expensive job (it does not involve 
makeing system calls), but it is extra job and you better think how to 
avoid it. I'm affraid it is not even implemented (but may be wrong on this).

What do you plan to use this for?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to