view xsls/versions.xsls @ 1069:71e6daffa4dc

Documented behavior in the absence of the "server_name" directive.
author Sergey Kandaurov <pluknet@nginx.com>
date Sat, 08 Feb 2014 17:42:42 +0400
parents aded7086e84f
children 710767011227
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/">commercial subscription</a>
}

}