view docs/xsls/content.xsls @ 4148:18f1cb12c6d7

Fix for "return 202" not discarding body. Big POST (not fully preread) to a location / { return 202; } resulted in incorrect behaviour due to "return" code path not calling ngx_http_discard_request_body(). The same applies to all "return" used with 2xx/3xx codes except 201 and 204, and to all "return ... text" uses. Fix is to add ngx_http_discard_request_body() call to ngx_http_send_response() function where it looks appropriate. Discard body call from emtpy gif module removed as it's now redundant. Reported by Pyry Hakulinen, see http://mailman.nginx.org/pipermail/nginx/2011-August/028503.html
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 27 Sep 2011 11:13:00 +0000
parents 5e2103cffd80
children
line wrap: on
line source

X:stylesheet {

    X:template = "section[@id and @name]" {
        <a name="{@id}" /> <center><h4> !{@name} </h4></center>
        !!;
    }

    X:template = "section[not(@id) and @name]" {
        <center><h4> !{@name} </h4></center>
        !!;
    }

    X:template = "section[not(@id) and not(@name)]" { !!; }

    X:template = "para" { <p> !!; </p> }

    X:template = "c-def" { <code> !!; </code> }

    X:template = "c-func" { <code> !!; X:text{()} </code> }

    X:template = "code" { <code> !!; </code> }

    X:template = "command" { <code> !!; </code> }

    X:template = "dq" {
        X:text disable-output-escaping="yes" {&amp;ldquo;}
        !!;
        X:text disable-output-escaping="yes" {&amp;rdquo;}
    }

    X:template = "example" { <blockquote><pre> !!; </pre></blockquote> }

    X:template = "emphasis" { <strong> !!; </strong> }

    X:template = "header" { <code> !!; </code> }

    X:template = "http-status" {
        !{@code} X:text{ (} !{@text} X:text{)}
    }

    X:template = "link[@url]" { <a href="{@url}"> !!; </a> }
    X:template = "link[@id and not(@doc)]" { <a href="#{@id}"> !!; </a> }
    X:template = "link[@doc and not(@id)]" {
        <a href="{substring-before(@doc, '.xml')}.html"> !!; </a>
    }
    X:template = "link[@id and @doc]" {
        <a href="{substring-before(@doc, '.xml')}.html#{@id}"> !!; </a>
    }
    X:template = "link" { <u> !!; </u> }

    X:template = "list[@type='bullet']" { <ul> !!; </ul> }
    X:template = "list[@type='enum']" { <ol> !!; </ol> }
    X:template = "listitem" { <li> !!; </li> }

    X:template = "list[@type='tag']" { <dl compact=""> !!; </dl> }
    X:template = "tag-name" { <dt> !!; </dt> }
    X:template = "tag-desc" { <dd> !!; </dd> }

    X:template = "pathname" { <code> !!; </code> }

    X:template = "argument" { <code><i> !!; </i></code> }
    X:template = "parameter" { <code> !!; </code> }

    X:template = "value" { <code> !!; </code> }

    X:template = "var" { <code> !!; </code> }
}