view xsls/versions.xsls @ 1697:147e3d0339e8

Reduced syntax clutter in the error_log directive. The description text explains special values like "stderr", "syslog:...", and "memory:...". It is believed that syntax without explicitly listing these variants is more readable.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 10 May 2016 15:19:47 +0300
parents 1594ed379f1f
children 9eadb98ec770
line wrap: on
line source

<!--
  Copyright (C) Igor Sysoev
  Copyright (C) Nginx, Inc.
  -->

X:stylesheet {

X:template = "mainline_version" {
   !! "document(concat($XML, '/versions.xml'))
                /versions/download[@tag='mainline'][1]/item[1]/@ver";
}

X:template = "stable_version" {
   !! "document(concat($XML, '/versions.xml'))
                /versions/download[@tag='stable'][1]/item[1]/@ver";
}

X:template = "commercial_version" {
    <a href="http://nginx.com/products/">
    !!;
    </a>
}

}