view xsls/versions.xsls @ 1009:135920b5c61d

Marked strings with entities in japanese translation as literal. This allows to preserve information and produce correct output if the XML parser expands entities on input. The markup is similar to english and russian versions of the document.
author Vladimir Homutov <vl@nginx.com>
date Mon, 11 Nov 2013 11:54:16 +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>
}

}