![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/boostbook/xsl/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (c) 2002 Douglas Gregor <doug.gregor -at- gmail.com> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- Indent the current line--> <xsl:template name="indent"> <xsl:param name="indentation"/> <xsl:if test="$indentation > 0"> <xsl:text> </xsl:text> <xsl:call-template name="indent"> <xsl:with-param name="indentation" select="$indentation - 1"/> </xsl:call-template> </xsl:if> </xsl:template> <!-- get name of first ancestor-or-self which is a class, struct or union --> <xsl:template name="object-name"> <xsl:variable name="ancestors" select="ancestor-or-self::class | ancestor-or-self::class-specialization | ancestor-or-self::struct | ancestor-or-self::struct-specialization | ancestor-or-self::union | ancestor-or-self::union-specialization"/> <xsl:value-of select="$ancestors[last()]/@name"/> </xsl:template> <!-- get name of access specification that we are inside --> <xsl:template name="access-name"> <xsl:variable name="ancestors" select="ancestor-or-self::access | ancestor-or-self::class | ancestor-or-self::class-specialization | ancestor-or-self::struct | ancestor-or-self::struct-specialization | ancestor-or-self::union | ancestor-or-self::union-specialization"/> <xsl:choose> <xsl:when test="name($ancestors[last()])='access'"> <xsl:value-of select="$ancestors[last()]/@name"/> </xsl:when> <xsl:otherwise> public </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>