view xsls/versions.xsls @ 1725:67b5aac350e4

Example in ssl_certificate description updated. It is basically the same example as in "Name-based HTTPS servers", updated it to match. That is, paths are changed to relative ones, and ".crt" extension used instead of ".cert".
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 07 Jun 2016 19:00:39 +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>
}

}