
The Database Developer Guide PDF is located in the repo at: apidocs/target/docbkx/webhelp/cdb-devguide-reviewer/cdb-devguide-reviewer.pdf Updated api-doc with Security Groups related API information. Added Security Groups and Security Group Rules as entities and related API calls to the Reddwarf API Docs. Change-Id: I4d559b25413a6138cd7d2fb94c028f8cafde100c
785 lines
39 KiB
XML
785 lines
39 KiB
XML
<?xml version="1.0"?>
|
|
<!DOCTYPE xsl:stylesheet [
|
|
<!ENTITY lowercase "'abcdefghijklmnopqrstuvwxyz'">
|
|
<!ENTITY uppercase "'ABCDEFGHIJKLMNOPQRSTUVWXYZ'">
|
|
]>
|
|
<xsl:stylesheet exclude-result-prefixes="d"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:d="http://docbook.org/ns/docbook"
|
|
xmlns:exsl="http://exslt.org/common"
|
|
xmlns:ng="http://docbook.org/docbook-ng"
|
|
xmlns:db="http://docbook.org/ns/docbook"
|
|
version="1.0" xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<!-- <xsl:import href="../../xhtml/chunk.xsl"/> -->
|
|
<xsl:import href="urn:docbkx:stylesheet-base/xhtml/docbook.xsl" />
|
|
|
|
<xsl:output
|
|
method="html"
|
|
encoding="utf-8"
|
|
cdata-section-elements=""/>
|
|
|
|
<xsl:param name="meta.robots"/>
|
|
<xsl:param name="meta.robots.calculated">
|
|
<xsl:choose>
|
|
<xsl:when test="$meta.robots = '1'">NOINDEX, NOFOLLOW</xsl:when>
|
|
<xsl:when test="$meta.robots = '0' or $meta.robots = ''"/>
|
|
<xsl:otherwise><xsl:value-of select="$meta.robots"/></xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:param>
|
|
|
|
<xsl:variable name="default.topic">
|
|
<xsl:choose>
|
|
<xsl:when test="$webhelp.default.topic != ''">
|
|
<xsl:value-of select="$webhelp.default.topic"/>
|
|
</xsl:when>
|
|
<xsl:when test="$htmlhelp.default.topic != ''">
|
|
<xsl:value-of select="$htmlhelp.default.topic"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:call-template name="make-relative-filename">
|
|
<xsl:with-param name="base.dir"/>
|
|
<xsl:with-param name="base.name">
|
|
<xsl:choose>
|
|
<xsl:when test="$rootid != ''">
|
|
<xsl:apply-templates select="key('id',$rootid)" mode="chunk-filename"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:apply-templates
|
|
select="*/*[self::d:preface|self::d:glossary|self::d:chapter|self::d:appendix|self::d:part|self::d:section][1]"
|
|
mode="chunk-filename"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:with-param>
|
|
</xsl:call-template>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
|
|
|
|
<!-- webhelp-specific params! -->
|
|
<!-- To be added to normal params file someday -->
|
|
<xsl:param name="webhelp.include.search.tab">true</xsl:param>
|
|
<xsl:param name="webhelp.start.filename">index.html</xsl:param>
|
|
<xsl:param name="webhelp.base.dir">docs</xsl:param>
|
|
<xsl:param name="webhelp.tree.cookie.id" select="concat( 'treeview-', count(//node()) )"/>
|
|
<xsl:param name="webhelp.indexer.language">en</xsl:param>
|
|
<xsl:param name="webhelp.default.topic"/>
|
|
<xsl:param name="webhelp.autolabel">0</xsl:param>
|
|
<!-- webhelp-specific params! -->
|
|
|
|
<!-- Set some reasonable defaults for webhelp output -->
|
|
<xsl:param name="chunker.output.indent">no</xsl:param>
|
|
<xsl:param name="navig.showtitles">0</xsl:param>
|
|
<xsl:param name="manifest.in.base.dir" select="0"/>
|
|
<xsl:param name="base.dir" select="concat($webhelp.base.dir,'/content/')"/>
|
|
<xsl:param name="suppress.navigation">0</xsl:param>
|
|
<xsl:param name="generate.index" select="1"/>
|
|
<xsl:param name="inherit.keywords" select="'0'"/>
|
|
<xsl:param name="local.l10n.xml" select="document('')"/>
|
|
<xsl:param name="para.propagates.style" select="1"/>
|
|
<xsl:param name="phrase.propagates.style" select="1"/>
|
|
<xsl:param name="chunk.first.sections" select="1"/>
|
|
<xsl:param name="chunk.section.depth" select="100"/>
|
|
<xsl:param name="chapter.autolabel" select="1"/>
|
|
<xsl:param name="section.autolabel" select="0"/>
|
|
<xsl:param name="generate.section.toc.level" select="5"/>
|
|
|
|
<i18n xmlns="http://docbook.sourceforge.net/xmlns/l10n/1.0">
|
|
<l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="en">
|
|
<l:gentext key="Search" text="Search"/>
|
|
<l:gentext key="Enter_a_term_and_click" text="Enter a term and click "/>
|
|
<l:gentext key="Go" text="Go"/>
|
|
<l:gentext key="to_perform_a_search" text=" to perform a search."/>
|
|
<l:gentext key="txt_filesfound" text="Results"/>
|
|
<l:gentext key="txt_enter_at_least_1_char" text="You must enter at least one character."/>
|
|
<l:gentext key="txt_browser_not_supported"
|
|
text="Your browser is not supported. Use of Mozilla Firefox is recommended."/>
|
|
<l:gentext key="txt_please_wait" text="Please wait. Search in progress..."/>
|
|
<l:gentext key="txt_results_for" text="Results for: "/>
|
|
<l:gentext key="TableofContents" text="Contents"/>
|
|
<l:gentext key="HighlightButton" text="Toggle search result highlighting"/>
|
|
</l10n>
|
|
<!-- The fallback mechansim doesn't seem to work for local l10n stuff -->
|
|
<l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="ja">
|
|
<l:gentext key="Search" text="Search"/>
|
|
<l:gentext key="Enter_a_term_and_click" text="Enter a term and click "/>
|
|
<l:gentext key="Go" text="Go"/>
|
|
<l:gentext key="to_perform_a_search" text=" to perform a search."/>
|
|
<l:gentext key="txt_filesfound" text="Results"/>
|
|
<l:gentext key="txt_enter_at_least_1_char" text="You must enter at least one character."/>
|
|
<l:gentext key="txt_browser_not_supported"
|
|
text="Your browser is not supported. Use of Mozilla Firefox is recommended."/>
|
|
<l:gentext key="txt_please_wait" text="Please wait. Search in progress..."/>
|
|
<l:gentext key="txt_results_for" text="Results for: "/>
|
|
<l:gentext key="HighlightButton" text="Toggle search result highlighting"/>
|
|
</l10n>
|
|
<l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="de">
|
|
<l:gentext key="Search" text="Search"/>
|
|
<l:gentext key="Enter_a_term_and_click" text="Enter a term and click "/>
|
|
<l:gentext key="Go" text="Go"/>
|
|
<l:gentext key="to_perform_a_search" text=" to perform a search."/>
|
|
<l:gentext key="txt_filesfound" text="Results"/>
|
|
<l:gentext key="txt_enter_at_least_1_char" text="You must enter at least one character."/>
|
|
<l:gentext key="txt_browser_not_supported"
|
|
text="Your browser is not supported. Use of Mozilla Firefox is recommended."/>
|
|
<l:gentext key="txt_please_wait" text="Please wait. Search in progress..."/>
|
|
<l:gentext key="txt_results_for" text="Results for: "/>
|
|
<l:gentext key="HighlightButton" text="Toggle search result highlighting"/>
|
|
</l10n>
|
|
<l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="fr">
|
|
<l:gentext key="Search" text="Search"/>
|
|
<l:gentext key="Enter_a_term_and_click" text="Enter a term and click "/>
|
|
<l:gentext key="Go" text="Go"/>
|
|
<l:gentext key="to_perform_a_search" text=" to perform a search."/>
|
|
<l:gentext key="txt_filesfound" text="Results"/>
|
|
<l:gentext key="txt_enter_at_least_1_char" text="You must enter at least one character."/>
|
|
<l:gentext key="txt_browser_not_supported"
|
|
text="Your browser is not supported. Use of Mozilla Firefox is recommended."/>
|
|
<l:gentext key="txt_please_wait" text="Please wait. Search in progress..."/>
|
|
<l:gentext key="txt_results_for" text="Results for: "/>
|
|
<l:gentext key="HighlightButton" text="Toggle search result highlighting"/>
|
|
</l10n>
|
|
<l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="zh">
|
|
<l:gentext key="Search" text="Search"/>
|
|
<l:gentext key="Enter_a_term_and_click" text="Enter a term and click "/>
|
|
<l:gentext key="Go" text="Go"/>
|
|
<l:gentext key="to_perform_a_search" text=" to perform a search."/>
|
|
<l:gentext key="txt_filesfound" text="Results"/>
|
|
<l:gentext key="txt_enter_at_least_1_char" text="You must enter at least one character."/>
|
|
<l:gentext key="txt_browser_not_supported"
|
|
text="Your browser is not supported. Use of Mozilla Firefox is recommended."/>
|
|
<l:gentext key="txt_please_wait" text="Please wait. Search in progress..."/>
|
|
<l:gentext key="txt_results_for" text="Results for: "/>
|
|
<l:gentext key="HighlightButton" text="Toggle search result highlighting"/>
|
|
</l10n>
|
|
|
|
</i18n>
|
|
|
|
<xsl:template name="system.head.content">
|
|
<xsl:param name="node" select="."/>
|
|
<xsl:text>
|
|
</xsl:text>
|
|
<!--
|
|
This avoids two problems in IE 8. We should someday figure out why this is happening and tweak the JavaScript so this <meta/> tag is not necessary:
|
|
1. When you perform a search and click the Toggle Highlight button, IE 8 adds a line break before the highlighted word.
|
|
2. If you click the show/hide toc button, the tab crashes.
|
|
These problems go away when you add this IE=7 mode meta tag.
|
|
-->
|
|
<!-- <meta http-equiv="X-UA-Compatible" content="IE=7" /> -->
|
|
<xsl:if test=".//d:programlisting[@language] or .//d:screen[@language] or .//d:literallayout[@language]">
|
|
<link type="text/css" rel="stylesheet" href="styles/shCoreDefault.css"/>
|
|
<script type="text/javascript" src="scripts/shCore.js"><xsl:comment/></script>
|
|
<!-- <script type="text/javascript" src="scripts/shBrushXml.js"><xsl:comment/></script> -->
|
|
<!-- <script type="text/javascript" src="scripts/shBrushJava.js"><xsl:comment/></script> -->
|
|
<!-- <script type="text/javascript" src="scripts/shBrushJSON.js"><xsl:comment/></script> -->
|
|
<!-- <script type="text/javascript" src="scripts/shBrushJScript.js"><xsl:comment/></script> -->
|
|
<!-- <script type="text/javascript" src="scripts/shBrushPython.js"><xsl:comment/></script> -->
|
|
<!-- <script type="text/javascript" src="scripts/shBrushBash.js"><xsl:comment/></script> -->
|
|
<script type="text/javascript">
|
|
SyntaxHighlighter.config.space = ' ';
|
|
SyntaxHighlighter.all();
|
|
</script>
|
|
</xsl:if>
|
|
|
|
<xsl:text>
|
|
</xsl:text>
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template name="user.head.content">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
<!-- <xsl:message>
|
|
webhelp.tree.cookie.id = <xsl:value-of select="$webhelp.tree.cookie.id"/> +++ <xsl:value-of select="count(//node())"/>
|
|
$webhelp.indexer.language = <xsl:value-of select="$webhelp.indexer.language"/> +++ <xsl:value-of select="count(//node())"/>
|
|
</xsl:message>-->
|
|
|
|
<xsl:if test="$meta.robots.calculated != ''">
|
|
<meta name="robots" content="{$meta.robots.calculated}"/>
|
|
</xsl:if>
|
|
<script type="text/javascript">
|
|
//The id for tree cookie
|
|
var treeCookieId = "<xsl:value-of select="$webhelp.tree.cookie.id"/>";
|
|
var language = "<xsl:value-of select="$webhelp.indexer.language"/>";
|
|
var w = new Object();
|
|
//Localization
|
|
txt_filesfound = '<xsl:call-template name="gentext">
|
|
<xsl:with-param name="key" select="'txt_filesfound'"/>
|
|
</xsl:call-template>';
|
|
txt_enter_at_least_1_char = "<xsl:call-template name="gentext">
|
|
<xsl:with-param name="key" select="'txt_enter_at_least_1_char'"/>
|
|
</xsl:call-template>";
|
|
txt_browser_not_supported = "<xsl:call-template name="gentext">
|
|
<xsl:with-param name="key" select="'txt_browser_not_supported'"/>
|
|
</xsl:call-template>";
|
|
txt_please_wait = "<xsl:call-template name="gentext">
|
|
<xsl:with-param name="key" select="'txt_please_wait'"/>
|
|
</xsl:call-template>";
|
|
txt_results_for = "<xsl:call-template name="gentext">
|
|
<xsl:with-param name="key" select="'txt_results_for'"/>
|
|
</xsl:call-template>";
|
|
</script>
|
|
<style type="text/css">
|
|
input {
|
|
margin-bottom: 5px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.folder {
|
|
display: block;
|
|
height: 22px;
|
|
padding-left: 20px;
|
|
background: transparent url(<xsl:value-of select="$webhelp.common.dir"/>jquery/treeview/images/folder.gif) 0 0px no-repeat;
|
|
}
|
|
<!--[if IE]>
|
|
input {
|
|
margin-bottom: 5px;
|
|
margin-top: 2px;
|
|
}
|
|
<![endif]-->
|
|
</style>
|
|
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/>
|
|
<link rel="stylesheet" type="text/css" href="{$webhelp.common.dir}css/positioning.css"/>
|
|
<link rel="stylesheet" type="text/css" href="{$webhelp.common.dir}css/custom.css"/>
|
|
<xsl:if test="//d:revhistory/d:revision and $canonical.url.base != ''">
|
|
<link href="../atom.xml" type="application/atom+xml" rel="alternate" title="Document ATOM Feed" />
|
|
</xsl:if>
|
|
<xsl:if test="$canonical.url.base != ''">
|
|
<link rel="canonical" >
|
|
<xsl:attribute name="href"><xsl:value-of select="$canonical.url.base"/>/<xsl:apply-templates select="." mode="chunk-filename"/></xsl:attribute>
|
|
</link>
|
|
</xsl:if>
|
|
<xsl:comment><xsl:text>[if IE]>
|
|
<link rel="stylesheet" type="text/css" href="</xsl:text><xsl:value-of select="$webhelp.common.dir"/>css/ie.css"/><xsl:text>
|
|
<![endif]</xsl:text></xsl:comment>
|
|
<link rel="stylesheet" type="text/css" href="{$webhelp.common.dir}jquery/theme-redmond/jquery-ui-1.8.2.custom.css"/>
|
|
<link rel="stylesheet" type="text/css" href="{$webhelp.common.dir}jquery/treeview/jquery.treeview.css"/>
|
|
|
|
<script type="text/javascript" src="{$webhelp.common.dir}jquery/jquery-1.4.3.min.js">
|
|
<xsl:comment> </xsl:comment>
|
|
</script>
|
|
<script type="text/javascript" src="{$webhelp.common.dir}jquery/jquery-ui-1.8.2.custom.min.js">
|
|
<xsl:comment> </xsl:comment>
|
|
</script>
|
|
<script type="text/javascript" src="{$webhelp.common.dir}jquery/jquery.cookie.js">
|
|
<xsl:comment> </xsl:comment>
|
|
</script>
|
|
<script type="text/javascript" src="{$webhelp.common.dir}jquery/treeview/jquery.treeview.min.js">
|
|
<xsl:comment> </xsl:comment>
|
|
</script>
|
|
<script type="text/javascript" src="{$webhelp.common.dir}jquery/jquery.qtip-1.0.0-rc3/jquery.qtip-1.0.0-rc3.min.js">
|
|
<xsl:comment>jQuery plugin for glossary popups. </xsl:comment>
|
|
</script>
|
|
<!--Scripts/css stylesheets for Search-->
|
|
<script type="text/javascript" src="search/htmlFileList.js">
|
|
<xsl:comment> </xsl:comment>
|
|
</script>
|
|
<script type="text/javascript" src="search/htmlFileInfoList.js">
|
|
<xsl:comment> </xsl:comment>
|
|
</script>
|
|
<script type="text/javascript" src="search/nwSearchFnt.js">
|
|
<xsl:comment> </xsl:comment>
|
|
</script>
|
|
|
|
<!--script type="text/javascript" src="search/addition.js">
|
|
<xsl:comment></xsl:comment>
|
|
</script>
|
|
<script type="text/javascript" src="search/indexLoader.js">
|
|
<xsl:comment></xsl:comment>
|
|
</script-->
|
|
|
|
|
|
<!--
|
|
NOTE: Stemmer javascript files should be in format <language>_stemmer.js.
|
|
For example, for English(en), source should be: "search/stemmers/en_stemmer.js"
|
|
For country codes, see: http://www.uspto.gov/patft/help/helpctry.htm
|
|
-->
|
|
<!--<xsl:message><xsl:value-of select="concat('search/stemmers/',$webhelp.indexer.language,'_stemmer.js')"/></xsl:message>-->
|
|
<script type="text/javascript" src="{concat('search/stemmers/',$webhelp.indexer.language,'_stemmer.js')}">
|
|
<xsl:comment>//make this scalable to other languages as well.</xsl:comment>
|
|
</script>
|
|
|
|
<!--Index Files:
|
|
Index is broken in to three equal sized(number of index items) files. This is to help parallel downloading
|
|
of files to make it faster.-->
|
|
<script type="text/javascript" src="search/index-1.js">
|
|
<xsl:comment> </xsl:comment>
|
|
</script>
|
|
<script type="text/javascript" src="search/index-2.js">
|
|
<xsl:comment> </xsl:comment>
|
|
</script>
|
|
<script type="text/javascript" src="search/index-3.js">
|
|
<xsl:comment> </xsl:comment>
|
|
</script>
|
|
<!--End of index files -->
|
|
|
|
<xsl:if test="$enable.google.analytics = '1' and $security = 'external' and not($google.analytics.id = '')">
|
|
<script type="text/javascript">
|
|
var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', '<xsl:value-of select="$google.analytics.id"/>']);
|
|
<xsl:choose>
|
|
<xsl:when test="$google.analytics.domain = ''"><!-- Do nothing --></xsl:when>
|
|
<xsl:otherwise>
|
|
_gaq.push(['_setDomainName', '<xsl:value-of select="$google.analytics.domain"/>']);
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</script>
|
|
<script type="text/javascript" src="{$webhelp.common.dir}ga.js">
|
|
<xsl:comment></xsl:comment>
|
|
</script>
|
|
<!-- Google Analytics Social Button Tracking -->
|
|
<!-- <script type="text/javascript" src="http://www.tabpress.com/_js/ga_social_tracking.js"> -->
|
|
<!-- <xsl:comment></xsl:comment> -->
|
|
<!-- </script> -->
|
|
<!-- Load Twitter JS-API asynchronously -->
|
|
<xsl:if test="$social.icons != '0' and $security = 'external' ">
|
|
<script>
|
|
(function(){var twitterWidgets = document.createElement('script');
|
|
twitterWidgets.type = 'text/javascript';
|
|
twitterWidgets.async = true;
|
|
twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
|
|
// Setup a callback to track once the script loads.
|
|
twitterWidgets.onload = _ga.trackTwitter;
|
|
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
|
|
})();
|
|
</script>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
<xsl:template name="user.header.navigation">
|
|
<xsl:param name="prev"/>
|
|
<xsl:param name="next"/>
|
|
<xsl:param name="nav.context"/>
|
|
<xsl:call-template name="webhelpheader">
|
|
<xsl:with-param name="prev" select="$prev"/>
|
|
<xsl:with-param name="next" select="$next"/>
|
|
<xsl:with-param name="nav.context" select="$nav.context"/>
|
|
</xsl:call-template>
|
|
<!--xsl:call-template name="webhelptoc"/-->
|
|
|
|
<!--testing toc in the content page>
|
|
<xsl:call-template name="webhelptoctoc"/>
|
|
<xsl:if test="$webhelp.include.search.tab != 'false'">
|
|
<xsl:call-template name="search"/>
|
|
</xsl:if-->
|
|
</xsl:template>
|
|
|
|
<xsl:param name="status.bar.text">
|
|
<xsl:call-template name="pi-attribute">
|
|
<xsl:with-param name="pis" select="/*/processing-instruction('rax')"/>
|
|
<xsl:with-param name="attribute" select="'status.bar.text'"/>
|
|
</xsl:call-template>
|
|
</xsl:param>
|
|
|
|
<xsl:param name="rackspace.status.text">
|
|
<xsl:if test="contains($root.attr.status, 'draft;')">DRAFT<xsl:text> - </xsl:text></xsl:if><xsl:choose>
|
|
<xsl:when test="$security = 'internal'">INTERNAL<xsl:text> - </xsl:text></xsl:when>
|
|
<xsl:when test="$security = 'reviewer'">REVIEW<xsl:text> - </xsl:text></xsl:when>
|
|
<xsl:when test="$security = 'writeronly'">WRITERONLY<xsl:text> - </xsl:text></xsl:when>
|
|
<xsl:when test="$security = 'external'"/>
|
|
</xsl:choose><xsl:if test="not(normalize-space($status.bar.text) = '')"><xsl:value-of select="normalize-space($status.bar.text)"/> - </xsl:if>
|
|
</xsl:param>
|
|
|
|
<xsl:template name="user.header.content">
|
|
<div class="statustext">
|
|
<xsl:choose>
|
|
<xsl:when test="not($rackspace.status.text = '')"> <!--TODO: Someday repeat this using javascript -->
|
|
<xsl:value-of select="$rackspace.status.text"/> <xsl:value-of select="$rackspace.status.text"/> <xsl:value-of select="$rackspace.status.text"/> <xsl:value-of select="$rackspace.status.text"/> <xsl:value-of select="$rackspace.status.text"/> <xsl:value-of select="$rackspace.status.text"/> <xsl:value-of select="$rackspace.status.text"/> <xsl:value-of select="$rackspace.status.text"/>
|
|
</xsl:when>
|
|
<xsl:otherwise> </xsl:otherwise>
|
|
</xsl:choose>
|
|
</div>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="user.footer.navigation">
|
|
<xsl:call-template name="webhelptoc">
|
|
<xsl:with-param name="currentid" select="generate-id(.)"/>
|
|
</xsl:call-template>
|
|
</xsl:template>
|
|
|
|
|
|
<!-- The Header with the company logo -->
|
|
<xsl:template name="webhelpheader">
|
|
<xsl:param name="prev"/>
|
|
<xsl:param name="next"/>
|
|
<xsl:param name="nav.context"/>
|
|
|
|
<xsl:variable name="home" select="/*[1]"/>
|
|
<xsl:variable name="up" select="parent::*"/>
|
|
|
|
<div id="header">
|
|
<img style='margin-right: 2px; height: 59px; padding-right: 25px; padding-top: 8px' align="right"
|
|
src='{$webhelp.common.dir}images/logo.png' alt="Company Logo"/>
|
|
|
|
<!-- Display the page title and the main heading(parent) of it-->
|
|
<h1 align="center">
|
|
<xsl:apply-templates select="." mode="object.title.markup"/>
|
|
<br/>
|
|
<xsl:choose>
|
|
<xsl:when
|
|
test="count($up) > 0 and generate-id($up) != generate-id($home)">
|
|
<xsl:apply-templates select="$up" mode="object.title.markup"/>
|
|
</xsl:when>
|
|
<xsl:otherwise> </xsl:otherwise>
|
|
</xsl:choose>
|
|
</h1>
|
|
|
|
<!-- Prev and Next links generation-->
|
|
<div id="navheader" align="right">
|
|
<xsl:comment>
|
|
<!-- KEEP this code. In case of neither prev nor next links are available, this will help to
|
|
keep the integrity of the DOM tree-->
|
|
</xsl:comment>
|
|
<!--xsl:with-param name="prev" select="$prev"/>
|
|
<xsl:with-param name="next" select="$next"/>
|
|
<xsl:with-param name="nav.context" select="$nav.context"/-->
|
|
<table>
|
|
<tr>
|
|
<td style="height: 28px; width: 16px;">
|
|
<a id="showHideButton" onclick="showHideToc();"
|
|
class="pointLeft" title="Hide TOC tree">.
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<img src="{$webhelp.common.dir}images/highlight-blue.gif" alt="H" height="25px"
|
|
onclick="toggleHighlight()" id="showHideHighlight" style="cursor:pointer">
|
|
<xsl:attribute name="title">
|
|
<xsl:call-template name="gentext">
|
|
<xsl:with-param name="key" select="'HighlightButton'"/>
|
|
</xsl:call-template>
|
|
</xsl:attribute>
|
|
</img>
|
|
</td>
|
|
<xsl:if test="count($prev) > 0
|
|
or (count($up) > 0
|
|
and generate-id($up) != generate-id($home)
|
|
and $navig.showtitles != 0)
|
|
or count($next) > 0">
|
|
<td>
|
|
<xsl:if test="count($prev)>0">
|
|
<a accesskey="p">
|
|
<xsl:attribute name="href">
|
|
<xsl:call-template name="href.target">
|
|
<xsl:with-param name="object" select="$prev"/>
|
|
</xsl:call-template>
|
|
</xsl:attribute>
|
|
<xsl:call-template name="navig.content">
|
|
<xsl:with-param name="direction" select="'prev'"/>
|
|
</xsl:call-template>
|
|
</a>
|
|
</xsl:if>
|
|
|
|
<!-- "Up" link-->
|
|
<xsl:choose>
|
|
<xsl:when test="count($up)>0
|
|
and generate-id($up) != generate-id($home)">
|
|
|
|
|
<a accesskey="u">
|
|
<xsl:attribute name="href">
|
|
<xsl:call-template name="href.target">
|
|
<xsl:with-param name="object" select="$up"/>
|
|
</xsl:call-template>
|
|
</xsl:attribute>
|
|
<xsl:call-template name="navig.content">
|
|
<xsl:with-param name="direction" select="'up'"/>
|
|
</xsl:call-template>
|
|
</a>
|
|
</xsl:when>
|
|
<xsl:otherwise> </xsl:otherwise>
|
|
</xsl:choose>
|
|
|
|
<xsl:if test="count($next)>0">
|
|
|
|
|
<a accesskey="n">
|
|
<xsl:attribute name="href">
|
|
<xsl:call-template name="href.target">
|
|
<xsl:with-param name="object" select="$next"/>
|
|
</xsl:call-template>
|
|
</xsl:attribute>
|
|
<xsl:call-template name="navig.content">
|
|
<xsl:with-param name="direction" select="'next'"/>
|
|
</xsl:call-template>
|
|
</a>
|
|
</xsl:if>
|
|
</td>
|
|
</xsl:if>
|
|
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="webhelptoc">
|
|
<xsl:param name="currentid"/>
|
|
<xsl:choose>
|
|
<xsl:when test="$rootid != ''">
|
|
<xsl:variable name="title">
|
|
<xsl:if test="$webhelp.autolabel=1">
|
|
<xsl:variable name="label.markup">
|
|
<xsl:apply-templates select="key('id',$rootid)" mode="label.markup"/>
|
|
</xsl:variable>
|
|
<xsl:if test="normalize-space($label.markup)">
|
|
<xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
<xsl:apply-templates select="key('id',$rootid)" mode="title.markup"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="href">
|
|
<xsl:choose>
|
|
<xsl:when test="$manifest.in.base.dir != 0">
|
|
<xsl:call-template name="href.target">
|
|
<xsl:with-param name="object" select="key('id',$rootid)"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:call-template name="href.target.with.base.dir">
|
|
<xsl:with-param name="object" select="key('id',$rootid)"/>
|
|
</xsl:call-template>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
<xsl:variable name="title">
|
|
<xsl:if test="$webhelp.autolabel=1">
|
|
<xsl:variable name="label.markup">
|
|
<xsl:apply-templates select="/*" mode="label.markup"/>
|
|
</xsl:variable>
|
|
<xsl:if test="normalize-space($label.markup)">
|
|
<xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
<xsl:apply-templates select="/*" mode="title.markup"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="href">
|
|
<xsl:choose>
|
|
<xsl:when test="$manifest.in.base.dir != 0">
|
|
<xsl:call-template name="href.target">
|
|
<xsl:with-param name="object" select="/"/>
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:call-template name="href.target.with.base.dir">
|
|
<xsl:with-param name="object" select="/"/>
|
|
</xsl:call-template>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
|
|
<div>
|
|
<div id="leftnavigation" style="padding-top:3px; background-color:white;">
|
|
<div id="tabs">
|
|
<ul>
|
|
<li>
|
|
<a href="#treeDiv" tabindex="1">
|
|
<em>
|
|
<xsl:call-template name="gentext">
|
|
<xsl:with-param name="key" select="'TableofContents'"/>
|
|
</xsl:call-template>
|
|
</em>
|
|
</a>
|
|
</li>
|
|
<xsl:if test="$webhelp.include.search.tab != 'false'">
|
|
<li>
|
|
<a href="#searchDiv" tabindex="1">
|
|
<em>
|
|
<xsl:call-template name="gentext">
|
|
<xsl:with-param name="key" select="'Search'"/>
|
|
</xsl:call-template>
|
|
</em>
|
|
</a>
|
|
</li>
|
|
</xsl:if>
|
|
</ul>
|
|
<div id="treeDiv">
|
|
<img src="{$webhelp.common.dir}images/loading.gif" alt="loading table of contents..."
|
|
id="tocLoading" style="display:block;"/>
|
|
<div id="ulTreeDiv" style="display:none">
|
|
<ul id="tree" class="filetree">
|
|
<xsl:apply-templates select="/*/*" mode="webhelptoc">
|
|
<xsl:with-param name="currentid" select="$currentid"/>
|
|
</xsl:apply-templates>
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
<xsl:if test="$webhelp.include.search.tab != 'false'">
|
|
<div id="searchDiv">
|
|
<div id="search">
|
|
<form onsubmit="Verifie(ditaSearch_Form);return false"
|
|
name="ditaSearch_Form"
|
|
class="searchForm">
|
|
<fieldset class="searchFieldSet">
|
|
<legend>
|
|
<xsl:call-template name="gentext">
|
|
<xsl:with-param name="key" select="'Search'"/>
|
|
</xsl:call-template>
|
|
</legend>
|
|
<center>
|
|
<input id="textToSearch" name="textToSearch" type="text"
|
|
class="searchText"/>
|
|
<xsl:text disable-output-escaping="yes"> <![CDATA[ ]]> </xsl:text>
|
|
<input onclick="Verifie(ditaSearch_Form)" type="button"
|
|
class="searchButton"
|
|
value="Go" id="doSearch"/>
|
|
</center>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
<div id="searchResults">
|
|
<center> </center>
|
|
</div>
|
|
</div>
|
|
</xsl:if>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
<xsl:template
|
|
match="d:book|d:part|d:reference|d:preface|d:chapter|d:bibliography|d:appendix|d:article|d:glossary|d:section|d:simplesect|d:sect1|d:sect2|d:sect3|d:sect4|d:sect5|d:refentry|d:colophon|d:bibliodiv|d:index"
|
|
mode="webhelptoc">
|
|
<xsl:param name="currentid"/>
|
|
<xsl:variable name="title">
|
|
<xsl:if test="$webhelp.autolabel=1">
|
|
<xsl:variable name="label.markup">
|
|
<xsl:apply-templates select="." mode="label.markup"/>
|
|
</xsl:variable>
|
|
<xsl:if test="normalize-space($label.markup)">
|
|
<xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
<xsl:apply-templates select="." mode="title.markup"/>
|
|
</xsl:variable>
|
|
|
|
<xsl:variable name="href">
|
|
<xsl:choose>
|
|
<xsl:when test="$manifest.in.base.dir != 0">
|
|
<xsl:call-template name="href.target"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:call-template name="href.target.with.base.dir"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
|
|
<xsl:variable name="id" select="generate-id(.)"/>
|
|
<!--xsl:message>
|
|
<xsl: select="name(ancestor-or-self::*) "/>
|
|
</xsl:message-->
|
|
|
|
<xsl:if test="not(self::d:index) or (self::d:index and not($generate.index = 0))">
|
|
<!--li style="white-space: pre; line-height: 0em;"-->
|
|
<li tabindex="2">
|
|
<xsl:if test="$id = $currentid">
|
|
<xsl:attribute name="id">webhelp-currentid</xsl:attribute>
|
|
</xsl:if>
|
|
<span class="file">
|
|
<a href="{substring-after($href,concat($webhelp.base.dir,'/content/'))}">
|
|
<xsl:value-of select="$title"/>
|
|
</a>
|
|
</span>
|
|
<xsl:if test="d:part|d:reference|d:preface|d:chapter|d:bibliography|d:appendix|d:article|d:glossary|d:section|d:simplesect|d:sect1|d:sect2|d:sect3|d:sect4|d:sect5|d:refentry|d:colophon|d:bibliodiv">
|
|
<ul>
|
|
<xsl:apply-templates
|
|
select="d:part|d:reference|d:preface|d:chapter|d:bibliography|d:appendix|d:article|d:glossary|d:section|d:simplesect|d:sect1|d:sect2|d:sect3|d:sect4|d:sect5|d:refentry|d:colophon|d:bibliodiv"
|
|
mode="webhelptoc">
|
|
<xsl:with-param name="currentid" select="$currentid"/>
|
|
</xsl:apply-templates>
|
|
</ul>
|
|
</xsl:if>
|
|
</li>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="text()" mode="webhelptoc"/>
|
|
|
|
<xsl:template name="user.footer.content">
|
|
<script type="text/javascript" src="{$webhelp.common.dir}main.js">
|
|
<xsl:comment></xsl:comment>
|
|
</script>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="index.html">
|
|
<xsl:call-template name="write.chunk">
|
|
<xsl:with-param name="filename">
|
|
<!-- <xsl:if test="$manifest.in.base.dir != 0"> -->
|
|
<!-- <xsl:value-of select="$base.dir"/> -->
|
|
<!-- </xsl:if> -->
|
|
<xsl:choose>
|
|
<xsl:when test="$webhelp.start.filename">
|
|
<xsl:value-of select="concat($webhelp.base.dir,'/',$webhelp.start.filename)"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="'index.html'"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:with-param>
|
|
<xsl:with-param name="method" select="'xml'"/>
|
|
<xsl:with-param name="encoding" select="'utf-8'"/>
|
|
<xsl:with-param name="indent" select="'yes'"/>
|
|
<xsl:with-param name="content">
|
|
<html>
|
|
<head>
|
|
<link rel="shortcut icon" href="favicon.ico"/>
|
|
<meta http-equiv="Refresh" content="1; URL=content/{$default.topic}"/>
|
|
<title><xsl:value-of select="//d:title[1]"/> </title>
|
|
</head>
|
|
<body>
|
|
If not automatically redirected, click here: <a href="content/{$default.topic}">content/<xsl:value-of select="$default.topic"/></a>
|
|
</body>
|
|
</html>
|
|
</xsl:with-param>
|
|
</xsl:call-template>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="db:programlisting[@language] | db:screen[@language] | db:literallayout[@language]">
|
|
<xsl:variable name="lang" select="@language"/>
|
|
|
|
<xsl:variable name="brush">
|
|
<xsl:choose>
|
|
<xsl:when test="@language = 'bash' or @language = 'BASH' or @language = 'sh'">bash</xsl:when>
|
|
<xsl:when test="@language = 'javascript' or @language = 'JAVASCRIPT' or @language = 'js' or @language = 'JavaScript'">javascript</xsl:when>
|
|
<xsl:when test="@language = 'xml' or @language = 'XML'">xml</xsl:when>
|
|
<xsl:when test="@language = 'java' or @language = 'JAVA'">java</xsl:when>
|
|
<xsl:when test="@language = 'json' or @language = 'JSON'">json</xsl:when>
|
|
<xsl:when test="@language = 'python' or @language = 'PYTHON' or @language = 'py' or @language = 'PY'">python</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:message>
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
WARNING: Unsupported langague on a <xsl:value-of select="local-name()"/>
|
|
element: <xsl:value-of select="@language"/>
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
</xsl:message>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
|
|
<xsl:variable name="syntaxhighlighter.switches">
|
|
<xsl:choose>
|
|
<xsl:when test="contains(@role,'gutter:') or contains(@role,'first-line:') or contains(@role,'highlight:')"><xsl:value-of select="@role"/></xsl:when>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
|
|
<pre class="programlisting brush: {$brush}; {$syntaxhighlighter.switches}">
|
|
<xsl:apply-templates/>
|
|
</pre>
|
|
|
|
</xsl:template>
|
|
|
|
<xsl:include href="revhistory2atom.xsl"/>
|
|
|
|
</xsl:stylesheet>
|