Using inline processing instructions with XSLT module?

Igor Sysoev is at
Mon May 11 21:28:24 MSD 2009

On Mon, May 11, 2009 at 01:15:41PM -0400, digitala wrote:

> Is it possible to return an XML document (for example from FastCGI) which contains a processing instruction, and have the XSLT module locate and apply the XSL file?
> For example; if the FastCGI app returns:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <?xml-stylesheet type="text/xsl" href="/xsl/basic.xsl"?>
> ...then would/could the XSLT module load the file based on the current "root" set in the server section of the config file?

No, currently stylesheets are proccessed on configuraiton stage.
One of the reasons why it was implemented so because a stylesheet
may have remote includes that may block for long time, etc.

Igor Sysoev

More information about the nginx mailing list