view xslt/dirmap.xslt @ 3095:aea3e104f11d

Reworked auth_basic_user_file documentation. Some extra details about crypt(3) are provided, emphasizing modular crypt() usage and commonly available password hashing methods. Also, added some examples on how to use "openssl passwd" to generate password hashes, made it clear that {SSHA} passwords are not secure now, and added a note about passwords being validated on each request.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 31 Aug 2024 05:19:25 +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>