view xslt/dirmap.xslt @ 1878:127ae107e5a9

Removed clause about shared memory and Windows versions with ASLR. Starting with nginx 1.9.0 shared memory can be used on Windows versions with address space layout randomization.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 26 Dec 2016 19:38:06 +0300
parents 4011ba8fdf30
children
line wrap: on
line source

<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) Nginx, Inc.
  -->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:output method="text"/>

<xsl:strip-space elements="*"/>

<xsl:template match="link">
    <xsl:value-of select="@id"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="substring-before(@doc, '.xml')"/>
    <xsl:text>.html#</xsl:text>
    <xsl:value-of select="@id"/>
    <xsl:text>;&#10;</xsl:text>
</xsl:template>

<xsl:template match="link[@id = 'include']">
    <xsl:text>\</xsl:text>
    <xsl:value-of select="@id"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="substring-before(@doc, '.xml')"/>
    <xsl:text>.html#</xsl:text>
    <xsl:value-of select="@id"/>
    <xsl:text>;&#10;</xsl:text>
</xsl:template>

<xsl:template match="link[starts-with(@id, 'var_')]">
    <xsl:text>$</xsl:text>
    <xsl:value-of select="substring-after(@id, 'var_')"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="substring-before(@doc, '.xml')"/>
    <xsl:text>.html#</xsl:text>
    <xsl:value-of select="@id"/>
    <xsl:text>;&#10;</xsl:text>
</xsl:template>

<xsl:template match="links | varlinks">
    <xsl:for-each select="link"><xsl:sort select="@id"/>
        <xsl:if test="count(preceding-sibling::link[@id = current()/@id]) = 0">
            <xsl:apply-templates select="."/>
        </xsl:if>
    </xsl:for-each>
</xsl:template>

</xsl:stylesheet>