Forum: NGINX Using inline processing instructions with XSLT module?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2974d09ac2541e892966b762aad84943?d=identicon&s=25 digitala (Guest)
on 2009-05-11 19:23
(Received via mailing list)
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:
http://forum.nginx.org/read.php?2,1905,1905#msg-1905
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-05-11 19:40
(Received via mailing list)
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.
04ad1ab3d96f873cc3c7a6ccf0328662?d=identicon&s=25 Michael Nachbaur (Guest)
on 2009-05-11 23:41
(Received via mailing list)
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.
2974d09ac2541e892966b762aad84943?d=identicon&s=25 digitala (Guest)
on 2009-05-12 09:35
(Received via mailing list)
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:
http://forum.nginx.org/read.php?2,1905,1942#msg-1942
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-05-12 10:24
(Received via mailing list)
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.
De7b680154f831d87d8ea48743852f14?d=identicon&s=25 tjunussov@gmail.com (Guest)
on 2016-04-05 15:55
(Received via mailing list)
Can we vote for this feature ?
If it is security risk, may be sandbox it to local location only

Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,1905,265887#msg-265887
This topic is locked and can not be replied to.