mirror of
https://github.com/nmap/nmap.git
synced 2025-12-21 23:19:03 +00:00
If you have trouble updating after this revision you need to follow these instructions. You have probably just seen an error like this: svn: URL 'svn://svn.insecure.org/nping' of existing directory 'nping' does not match expected URL 'svn://svn.insecure.org/nmap/nping' This is caused by the replacement of SVN externals. Here's what you need to do. First, save any local changes you might have in the nping, nsock, nbase, ncat, and zenmap directories. (For example by running "cd nping; svn diff > ../nping.diff".) If you don't have any local changes you can skip this step. Then run these commands: rm -rf nping/ nsock/ nbase/ ncat/ zenmap/ svn update svn cleanup If all else fails, you can just delete your whole working directory and check out anew: svn co --username guest --password "" svn://svn.insecure.org/nmap There may be further discussion in the mailing list thread at http://seclists.org/nmap-dev/2011/q4/303.
87 lines
2.7 KiB
XML
87 lines
2.7 KiB
XML
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
|
|
version="1.0"
|
|
exclude-result-prefixes="doc">
|
|
|
|
<!-- ********************************************************************
|
|
$Id: maketoc.xsl 6910 2007-06-28 23:23:30Z xmldoc $
|
|
********************************************************************
|
|
|
|
This file is part of the XSL DocBook Stylesheet distribution.
|
|
See ../README or http://docbook.sf.net/release/xsl/current/ for
|
|
copyright and other information.
|
|
|
|
******************************************************************** -->
|
|
|
|
<!-- ==================================================================== -->
|
|
|
|
<xsl:import href="docbook.xsl"/>
|
|
<xsl:import href="chunk.xsl"/>
|
|
|
|
<xsl:output method="xml" indent="no" encoding='utf-8'/>
|
|
|
|
<xsl:param name="toc.list.type" select="'tocentry'"/>
|
|
|
|
<!-- refentry in autotoc.xsl does not use subtoc, so must
|
|
handle it explicitly here. -->
|
|
<xsl:template match="refentry" mode="toc">
|
|
<xsl:param name="toc-context" select="."/>
|
|
|
|
<xsl:call-template name="subtoc">
|
|
<xsl:with-param name="toc-context" select="$toc-context"/>
|
|
</xsl:call-template>
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template name="subtoc">
|
|
<xsl:param name="nodes" select="NOT-AN-ELEMENT"/>
|
|
<xsl:variable name="filename">
|
|
<xsl:apply-templates select="." mode="chunk-filename"/>
|
|
</xsl:variable>
|
|
|
|
<xsl:variable name="chunk">
|
|
<xsl:call-template name="chunk"/>
|
|
</xsl:variable>
|
|
|
|
<xsl:if test="$chunk != 0">
|
|
<xsl:call-template name="indent-spaces"/>
|
|
<xsl:variable name="id">
|
|
<xsl:call-template name="object.id"/>
|
|
</xsl:variable>
|
|
<tocentry linkend="{$id}">
|
|
<xsl:processing-instruction name="dbhtml">
|
|
<xsl:text>filename="</xsl:text>
|
|
<xsl:value-of select="$filename"/>
|
|
<xsl:text>"</xsl:text>
|
|
</xsl:processing-instruction>
|
|
<xsl:text>
</xsl:text>
|
|
<xsl:apply-templates mode="toc" select="$nodes"/>
|
|
<xsl:call-template name="indent-spaces"/>
|
|
</tocentry>
|
|
<xsl:text>
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="indent-spaces">
|
|
<xsl:param name="node" select="."/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:if test="$node/parent::*">
|
|
<xsl:call-template name="indent-spaces">
|
|
<xsl:with-param name="node" select="$node/parent::*"/>
|
|
</xsl:call-template>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<!-- ==================================================================== -->
|
|
|
|
<xsl:template match="/" priority="-1">
|
|
<xsl:text>
</xsl:text>
|
|
<toc role="chunk-toc">
|
|
<xsl:text>
</xsl:text>
|
|
<xsl:apply-templates select="/" mode="toc"/>
|
|
</toc>
|
|
<xsl:text>
</xsl:text>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|