注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

Perfect-World

以無法為有法,以無限為有限!

 
 
 

日志

 
 

Nginx其他模块—HttpXSLT  

2015-08-14 17:57:19|  分类: Web Server |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

HttpXSLT

This module is a filter which converts an XML response with the aid of one or more XSLT templates.

This module was introduced in 0.7.8 and needs to be enabled via

./configure --with-http_xslt_module

Example:

location / {

xml_entities /site/dtd/entities.dtd;

xslt_stylesheet /site/xslt/one.xslt param=value;

xslt_stylesheet /site/xslt/two.xslt;

 

}

指令

xslt_entities

syntax: xml_entities <path>

default: no

context: http, server, location

Specifies the DTD file which describes symbolic elements (xml entities). This file is compiled at the stage of configuration. For technical reasons it's not possible to specify entities in the XML being processed, therefore they are ignored, but this specially assigned file is used instead. In this file it is not necessary to describe structure of processed XML, it is sufficient only to declare necessary symbolic elements, for example:

<! ENTITY of nbsp "  ">

xslt_stylesheet

syntax: xslt_stylesheet template [parameter[[ parameter... ]] default: no

context: http, server, location

Specifies the XSLT template with its parameters. Template is compiled at the stage of configuration. The parameters are assigned as shown:

param=value

 

You can specify parameters either one per line, or separate multiple parameters with colon (": ") If the parameter itself contains the character ":", escape it as "%3A". Furthermore, libxslt requires that string parameters should be quoted by the single or dual quotation marks if they contain non-alphanumeric characters, for example:

param1='http%3A//www.example.com': param2=value2

It's possible to use variables as parameters, for example, the entire line of the parameters can be substituted with one variable:

location / {

xslt_stylesheet /site/xslt/one.xslt

$arg_xslt_params

 

param1='$value1': param2=value2

param3=value3;

}

It is possible to specify several templates, in which case they would be chained together in the order of their declaration.

xslt_types

syntax: xslt_types mime-type [mime-type...]

default: xslt_types text/xml

context: http, server, location

Permit processing responses with specified MIME-types in addition to "text/xml". If XSLT output mode is HTML, then the response MIME-type changes to "text/HTML".

 

可能您还对以下事情兴趣: 

Nginx在Windows和Linux环境下安装 

Nginx配置文件详细说明 

Linux下Weblogic 11g R1安装和配置 

Weblogic 10.1配置JNDI数据源 

调优 WebSphere Application Server V7 性能 

websphere7.0中配置oracle数据源及部署 

WebLogic、WebSphere、JBOSS、Tomcat之间的区别 

Tomcat下使用war包发布项目 

配置WebLogic Server 11g 集群、Session复制(Windows) 

Weblogic12 集群配置 

WebLogic Server 11g (10.3.6) 和12c (12.1.1)安装步骤 

linux(fedora、redhat)下配置web+ftp服务器全教程 

J2SDK1.4.2下载安装及使用教程 

解决启动WebLogic输入用户名密码问题 & 密码重置

绿色版TOMCAT 7.0安装配置手册

Tomcat7.0 内存配置

weblogic配置JDBC数据源详解

Weblogic内存分配

nginx做weblogic的前端负载均衡器

图文解说:Nginx+tomcat配置集群负载均衡

Websphere如何用80端口来访问9080应用程序

LINUX FTP安装与配置

Linux下安装Nginx详细图解教程

Ubuntu/Debian上安装Nginx+php环境 

使用XAMPP搭建本地JSP+PHP环境 

基于nginx的linux web服务器配置 

手机二维码访问: 

 

  评论这张
 
阅读(128)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2016