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?
Posted at Nginx Forum:
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.
On 11-May-09, at 10:15 AM, 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?
Are you currently using XSLT in nginx to serve XML files returned from
FastCGI? I’ve tried doing that in my environment, and nginx just
returns the XML raw.
On Tue, May 12, 2009 at 03:29:29AM -0400, digitala wrote:
Not yet - I was going to play with setting “xslt_types process/xml;” and have my fastcgi app return that content type, but I would’ve preferred to be able to set a processing instruction to allow separation of stylesheets into “logged out”/“logged in” sets.
Igor; is the functionality for parsing Processing Instructions planned?
Currently - no.
Not yet - I was going to play with setting “xslt_types process/xml;” and
have my fastcgi app return that content type, but I would’ve preferred
to be able to set a processing instruction to allow separation of
stylesheets into “logged out”/“logged in” sets.
Igor; is the functionality for parsing Processing Instructions planned?
Posted at Nginx Forum:
Can we vote for this feature ?
If it is security risk, may be sandbox it to local location only
Posted at Nginx Forum: