annotate docs/xsls/dump.xsls @ 5110:0bbdd966a383

Request body: next upstream fix. After introduction of chunked request body handling in 1.3.9 (r4931), r->request_body->bufs buffers have b->start pointing to original buffer start (and b->pos pointing to real data of this particular buffer). While this is ok as per se, it caused bad things (usually original request headers included before the request body) after reinit of the request chain in ngx_http_upstream_reinit() while sending the request to a next upstream server (which used to do b->pos = b->start for each buffer in the request chain). Patch by Piotr Sikora.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 14 Mar 2013 12:28:53 +0000
parents 2c863b4a8f93
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4830
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
1 X:stylesheet {
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
2
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
3 X:output method="xml"
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
4 X:param indent-increment="' '";
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
5
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
6 X:template noname(indent="'&#xA;'") = "*" {
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
7 !{$indent}
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
8
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
9 X:if "name()='xsl:template'" {
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
10 !{$indent}
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
11 }
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
12
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
13 X:copy {
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
14 X:copy-of "@*"
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
15 !!( indent = "concat($indent, $indent-increment)" );
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
16 X:if "./* " { !{$indent} }
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
17 }
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
18 }
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
19
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
20
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
21 X:template = "comment()|processing-instruction()" {
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
22 X:copy;
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
23 }
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
24
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
25 <!--
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
26 X:template ="text()[normalize-space(.)='']" {}
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
27 -->
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
28
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
29 }