| 1 |
<?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- |
|---|
| 4 |
|
|---|
| 5 |
Licensed under the Apache License, Version 2.0 (the "License"); |
|---|
| 6 |
you may not use this file except in compliance with the License. |
|---|
| 7 |
You may obtain a copy of the License at |
|---|
| 8 |
|
|---|
| 9 |
http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 10 |
|
|---|
| 11 |
Unless required by applicable law or agreed to in writing, software |
|---|
| 12 |
distributed under the License is distributed on an "AS IS" BASIS, |
|---|
| 13 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, |
|---|
| 14 |
either express or implied. See the License for the specific language |
|---|
| 15 |
governing permissions and limitations under the License. |
|---|
| 16 |
|
|---|
| 17 |
--> |
|---|
| 18 |
|
|---|
| 19 |
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|---|
| 20 |
xmlns:redirect="http://xml.apache.org/xalan/redirect" |
|---|
| 21 |
xmlns:str="http://exslt.org/strings" |
|---|
| 22 |
xmlns:exslt="http://exslt.org/common" |
|---|
| 23 |
extension-element-prefixes="redirect" |
|---|
| 24 |
exclude-result-prefixes="redirect str exslt"> |
|---|
| 25 |
|
|---|
| 26 |
<xsl:import href="asdoc-util.xsl" /> |
|---|
| 27 |
<xsl:import href="class-parts.xsl" /> |
|---|
| 28 |
|
|---|
| 29 |
<xsl:param name="outputPath" select="'../out'"/> |
|---|
| 30 |
<xsl:param name="showExamples">true</xsl:param> |
|---|
| 31 |
<xsl:param name="showIncludeExamples">true</xsl:param> |
|---|
| 32 |
<xsl:param name="showSWFs" select="'false'" /> |
|---|
| 33 |
<xsl:param name="tabSpaces" select="' '" /> |
|---|
| 34 |
<xsl:variable name="tab"> |
|---|
| 35 |
<xsl:text> </xsl:text> |
|---|
| 36 |
</xsl:variable> |
|---|
| 37 |
|
|---|
| 38 |
<xsl:template match="/"> |
|---|
| 39 |
<xsl:apply-templates select="//asClass[@name='Channel10']" /> |
|---|
| 40 |
</xsl:template> |
|---|
| 41 |
|
|---|
| 42 |
<xsl:template match="//asClass"> |
|---|
| 43 |
|
|---|
| 44 |
<xsl:variable name="isTopLevel"> |
|---|
| 45 |
<xsl:call-template name="isTopLevel"> |
|---|
| 46 |
<xsl:with-param name="packageName" select="@packageName"/> |
|---|
| 47 |
</xsl:call-template> |
|---|
| 48 |
</xsl:variable> |
|---|
| 49 |
<xsl:variable name="isInnerClass" select="ancestor::asClass"/> |
|---|
| 50 |
<xsl:variable name="packagePath" select="translate(@packageName, '.', '/')"/> |
|---|
| 51 |
<xsl:variable name="classFile"> |
|---|
| 52 |
<xsl:value-of select="$outputPath"/> |
|---|
| 53 |
<xsl:if test="$isTopLevel='false'"> |
|---|
| 54 |
<xsl:value-of select="$packagePath"/> |
|---|
| 55 |
<xsl:text>/</xsl:text> |
|---|
| 56 |
</xsl:if> |
|---|
| 57 |
<xsl:value-of select="@name"/> |
|---|
| 58 |
<xsl:text>.html</xsl:text> |
|---|
| 59 |
</xsl:variable> |
|---|
| 60 |
<xsl:variable name="title" select="concat(concat(@name,' - '),$title-base)"/> |
|---|
| 61 |
<xsl:variable name="classDeprecated"> |
|---|
| 62 |
<xsl:if test="deprecated"> |
|---|
| 63 |
<xsl:value-of select="'true'"/> |
|---|
| 64 |
</xsl:if> |
|---|
| 65 |
<xsl:if test="not(deprecated)"> |
|---|
| 66 |
<xsl:value-of select="'false'"/> |
|---|
| 67 |
</xsl:if> |
|---|
| 68 |
</xsl:variable> |
|---|
| 69 |
<xsl:variable name="baseRef"> |
|---|
| 70 |
<xsl:call-template name="getBaseRef"> |
|---|
| 71 |
<xsl:with-param name="packageName" select="@packageName" /> |
|---|
| 72 |
</xsl:call-template> |
|---|
| 73 |
</xsl:variable> |
|---|
| 74 |
|
|---|
| 75 |
<xsl:copy-of select="$docType"/> |
|---|
| 76 |
<xsl:element name="html"> |
|---|
| 77 |
<head> |
|---|
| 78 |
<xsl:call-template name="getKeywords"/> |
|---|
| 79 |
<title> |
|---|
| 80 |
<xsl:if test="$isTopLevel='false'"> |
|---|
| 81 |
<xsl:value-of select="@packageName" /> |
|---|
| 82 |
<xsl:text>.</xsl:text> |
|---|
| 83 |
</xsl:if> |
|---|
| 84 |
<xsl:value-of select="@name" /> |
|---|
| 85 |
<xsl:call-template name="getPageTitlePostFix" /> |
|---|
| 86 |
</title> |
|---|
| 87 |
<xsl:call-template name="getStyleLink"> |
|---|
| 88 |
<xsl:with-param name="link" select="/asdoc/link"/> |
|---|
| 89 |
<xsl:with-param name="packageName" select="@packageName"/> |
|---|
| 90 |
</xsl:call-template> |
|---|
| 91 |
<script type="text/javascript" src="{$baseRef}cookies.js">//</script> |
|---|
| 92 |
</head> |
|---|
| 93 |
<body id="asdoc-{concat(translate(@packageName,'.','-'),'-',@name)}"> |
|---|
| 94 |
|
|---|
| 95 |
<div id="iwebkit-topbar"> |
|---|
| 96 |
<div id="iwebkit-leftnav"> |
|---|
| 97 |
<a href="{$baseRef}index.html"><img src="{$baseRef}images/home.png" alt="home" /></a> |
|---|
| 98 |
<xsl:call-template name="getInlineScript"> |
|---|
| 99 |
<xsl:with-param name="script"> |
|---|
| 100 |
<xsl:text>if(document.referrer&&document.location.toString().split('#')[1]!=document.referrer.split('#')[1]) </xsl:text> |
|---|
| 101 |
<xsl:text>document.write(</xsl:text> |
|---|
| 102 |
<xsl:text>'<a href="'+document.referrer+'">Back</a>'</xsl:text> |
|---|
| 103 |
<xsl:text>);</xsl:text> |
|---|
| 104 |
</xsl:with-param> |
|---|
| 105 |
</xsl:call-template> |
|---|
| 106 |
</div> |
|---|
| 107 |
</div> |
|---|
| 108 |
<div id="iwebkit-content"> |
|---|
| 109 |
<xsl:call-template name="classHeader"> |
|---|
| 110 |
<xsl:with-param name="classDeprecated" select="$classDeprecated" /> |
|---|
| 111 |
</xsl:call-template> |
|---|
| 112 |
|
|---|
| 113 |
<!-- PUBLIC PROPERTY SUMMARY --> |
|---|
| 114 |
<xsl:call-template name="fieldSummary"> |
|---|
| 115 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 116 |
<xsl:with-param name="baseRef" select="$baseRef" /> |
|---|
| 117 |
</xsl:call-template> |
|---|
| 118 |
|
|---|
| 119 |
<!-- PROTECTED PROPERTY SUMMARY --> |
|---|
| 120 |
<xsl:call-template name="fieldSummary"> |
|---|
| 121 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 122 |
<xsl:with-param name="accessLevel" select="'protected'" /> |
|---|
| 123 |
<xsl:with-param name="baseRef" select="$baseRef" /> |
|---|
| 124 |
</xsl:call-template> |
|---|
| 125 |
|
|---|
| 126 |
<!-- METHOD SUMMARY --> |
|---|
| 127 |
<xsl:call-template name="methodSummary"> |
|---|
| 128 |
<xsl:with-param name="className" select="@name" /> |
|---|
| 129 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 130 |
<xsl:with-param name="baseRef" select="$baseRef" /> |
|---|
| 131 |
</xsl:call-template> |
|---|
| 132 |
|
|---|
| 133 |
<!-- PROTECTED METHOD SUMMARY --> |
|---|
| 134 |
<xsl:call-template name="methodSummary"> |
|---|
| 135 |
<xsl:with-param name="className" select="@name" /> |
|---|
| 136 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 137 |
<xsl:with-param name="baseRef" select="$baseRef" /> |
|---|
| 138 |
<xsl:with-param name="accessLevel" select="'protected'" /> |
|---|
| 139 |
</xsl:call-template> |
|---|
| 140 |
|
|---|
| 141 |
<!-- EVENT SUMMARY --> |
|---|
| 142 |
<xsl:call-template name="eventsGeneratedSummary"> |
|---|
| 143 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 144 |
<xsl:with-param name="baseRef" select="$baseRef" /> |
|---|
| 145 |
</xsl:call-template> |
|---|
| 146 |
|
|---|
| 147 |
<!-- STYLE SUMMARY --> |
|---|
| 148 |
<xsl:call-template name="stylesSummary"> |
|---|
| 149 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 150 |
<xsl:with-param name="baseRef" select="$baseRef" /> |
|---|
| 151 |
</xsl:call-template> |
|---|
| 152 |
|
|---|
| 153 |
<!-- EFFECT SUMMARY --> |
|---|
| 154 |
<xsl:call-template name="effectsSummary"> |
|---|
| 155 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 156 |
<xsl:with-param name="baseRef" select="$baseRef" /> |
|---|
| 157 |
</xsl:call-template> |
|---|
| 158 |
|
|---|
| 159 |
<!-- PUBLIC CONSTANT SUMMARY --> |
|---|
| 160 |
<xsl:call-template name="fieldSummary"> |
|---|
| 161 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 162 |
<xsl:with-param name="isConst" select="'true'" /> |
|---|
| 163 |
<xsl:with-param name="baseRef" select="$baseRef" /> |
|---|
| 164 |
</xsl:call-template> |
|---|
| 165 |
|
|---|
| 166 |
<!-- PROTECTED CONSTANT SUMMARY --> |
|---|
| 167 |
<xsl:call-template name="fieldSummary"> |
|---|
| 168 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 169 |
<xsl:with-param name="isConst" select="'true'" /> |
|---|
| 170 |
<xsl:with-param name="accessLevel" select="'protected'" /> |
|---|
| 171 |
<xsl:with-param name="baseRef" select="$baseRef" /> |
|---|
| 172 |
</xsl:call-template> |
|---|
| 173 |
|
|---|
| 174 |
<xsl:call-template name="getInlineScript"> |
|---|
| 175 |
<xsl:with-param name="script">showHideInherited();</xsl:with-param> |
|---|
| 176 |
</xsl:call-template> |
|---|
| 177 |
|
|---|
| 178 |
<!-- PROPERTY DETAIL --> |
|---|
| 179 |
<xsl:apply-templates select="fields" mode="detail"> |
|---|
| 180 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 181 |
<xsl:with-param name="baseRef" select="$baseRef" /> |
|---|
| 182 |
</xsl:apply-templates> |
|---|
| 183 |
|
|---|
| 184 |
<!-- CONSTRUCTOR DETAIL --> |
|---|
| 185 |
<xsl:if test="@type != 'interface' and count(constructors/constructor) > 0"> |
|---|
| 186 |
<span class="graytitle" id="constructorDetail"> |
|---|
| 187 |
<xsl:text>Constructor detail</xsl:text> |
|---|
| 188 |
</span> |
|---|
| 189 |
<ul class="pageitem"> |
|---|
| 190 |
<xsl:variable name="className" select="@name"/> |
|---|
| 191 |
<xsl:apply-templates select="constructors/constructor[@name = $className]" mode="detail"> |
|---|
| 192 |
<xsl:with-param name="isConstructor">true</xsl:with-param> |
|---|
| 193 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 194 |
<xsl:with-param name="baseRef" select="$baseRef" /> |
|---|
| 195 |
</xsl:apply-templates> |
|---|
| 196 |
</ul> |
|---|
| 197 |
</xsl:if> |
|---|
| 198 |
|
|---|
| 199 |
<!-- METHOD DETAIL --> |
|---|
| 200 |
<xsl:apply-templates select="methods" mode="detail"> |
|---|
| 201 |
<xsl:with-param name="className" select="@name"/> |
|---|
| 202 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 203 |
<xsl:with-param name="baseRef" select="$baseRef" /> |
|---|
| 204 |
</xsl:apply-templates> |
|---|
| 205 |
|
|---|
| 206 |
<!-- EVENT DETAIL --> |
|---|
| 207 |
<xsl:apply-templates select="eventsGenerated" mode="detail"> |
|---|
| 208 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 209 |
</xsl:apply-templates> |
|---|
| 210 |
|
|---|
| 211 |
<!-- CONSTANT DETAIL --> |
|---|
| 212 |
<xsl:apply-templates select="fields" mode="detail"> |
|---|
| 213 |
<xsl:with-param name="classDeprecated" select="$classDeprecated"/> |
|---|
| 214 |
<xsl:with-param name="isConst" select="'true'" /> |
|---|
| 215 |
<xsl:with-param name="baseRef" select="$baseRef" /> |
|---|
| 216 |
</xsl:apply-templates> |
|---|
| 217 |
|
|---|
| 218 |
<!-- INCLUDE EXAMPLES --> |
|---|
| 219 |
<xsl:if test="includeExamples/includeExample/codepart"> |
|---|
| 220 |
<xsl:call-template name="includeExamples"/> |
|---|
| 221 |
</xsl:if> |
|---|
| 222 |
</div> |
|---|
| 223 |
<xsl:call-template name="getFooter" /> |
|---|
| 224 |
</body> |
|---|
| 225 |
</xsl:element> |
|---|
| 226 |
<xsl:copy-of select="$copyrightComment"/> |
|---|
| 227 |
</xsl:template> |
|---|
| 228 |
|
|---|
| 229 |
</xsl:stylesheet> |
|---|