view xsls/versions.xsls @ 1187:d7d60966f6f8

Added indentation to directive/variables indexes. While these files aren't designed to be read/edited by humans, indentation makes things more convenient. E.g., terminal is no longer flooded by a very long line with full list of directives if dirindex.xml is matched by grep.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 14 May 2014 18:36:52 +0400
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>
}

}