view xsls/versions.xsls @ 2994:537b98ec3c83

Development guide: fixed example code. The code produced compiler errors.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 17 Aug 2023 20:31:29 +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>
}

}