view xsls/dirmap.xsls @ 1061:cb63563024eb

Somewhat clarified how rewrite module works.
author Ruslan Ermilov <ru@nginx.com>
date Sat, 08 Feb 2014 16:23:06 +0400
parents be54c443235a
children 166fd33afad1
line wrap: on
line source

<!--
  Copyright (C) Nginx, Inc.
  -->

X:stylesheet {

X:output method="text";

X:template = "link" {
    !{@id}
    X:text{ }
    !{substring-before(@doc, '.xml')}
    X:text{.html#}
    !{@id}
    X:text{;&#10;}
}

X:template = "links" {
    !! "link";
}

}