incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cframp...@apache.org
Subject svn commit: r1309036 [3/11] - in /incubator/flex/trunk/asdoc: ./ templates/ templates/images/
Date Tue, 03 Apr 2012 16:52:09 GMT
Propchange: incubator/flex/trunk/asdoc/templates/ASDoc_terms.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/flex/trunk/asdoc/templates/ASDoc_terms.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/flex/trunk/asdoc/templates/ClassHeader.xslt
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/asdoc/templates/ClassHeader.xslt?rev=1309036&view=auto
==============================================================================
--- incubator/flex/trunk/asdoc/templates/ClassHeader.xslt (added)
+++ incubator/flex/trunk/asdoc/templates/ClassHeader.xslt Tue Apr  3 16:52:07 2012
@@ -0,0 +1,193 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://sf.net/saxon"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ifn="urn:internal:functions" exclude-result-prefixes="saxon
xs ifn">
+	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
+	<xsl:key name="baseclass" match="apiClassifier" use=".//apiBaseClassifier/text()"/>
+	<xsl:key name="id" match="//apiClassifier" use="@id"/>
+	<xsl:key name="idg" match="//apiClassifier" use="substring-after(@id,':')"/>
+	<xsl:key name="baseInter" match="//apiBaseInterface" use="text()"/>
+	<xsl:template match="/">
+		<xsl:apply-templates/>
+	</xsl:template>
+	<xsl:template match="apiPackage">
+		<apiPackage id="{@id}">
+			<apiName>
+				<xsl:value-of select="@id"/>
+			</apiName>
+			<xsl:copy-of select="./apiDetail"/>
+			<xsl:apply-templates select="apiClassifier"/>
+		</apiPackage>
+	</xsl:template>
+	<xsl:template match="apiClassifier">
+		<apiClassifier id="{@id}">
+			<apiName>
+				<xsl:value-of select="./apiName"/>
+			</apiName>
+			<xsl:apply-templates select="shortdesc"/>
+			<xsl:apply-templates select="prolog"/>
+			<xsl:apply-templates select="Keywords" mode="keys"/>
+			<xsl:apply-templates select="apiClassifierDetail"/>
+			<xsl:apply-templates select="related-links"/>
+		</apiClassifier>
+	</xsl:template>
+	<xsl:template match="apiClassifierDetail">
+		<apiClassifierDetail>
+			<xsl:apply-templates select="node()"/>
+			<Inheritancelist>
+				<BaseInterface>
+					<xsl:if test="./apiClassifierDef/apiInterface and ./apiClassifierDef/apiBaseInterface">
+						<xsl:for-each select="./apiClassifierDef/apiBaseInterface">
+							<xsl:sort select="substring-after(./apiClassifierDef/apiBaseInterface/.,':')" order="ascending"
data-type="text"/>
+							<Interface id="{.}"/>
+						</xsl:for-each>
+						<xsl:call-template name="nested"/>
+					</xsl:if>
+				</BaseInterface>
+				<Inheritance>
+					<xsl:variable name="baseClass" select=".//apiBaseClassifier/text()"/>
+					<xsl:for-each select=".//apiBaseClassifier">
+						<Inherit id="{$baseClass}"/>
+					</xsl:for-each>
+					<xsl:call-template name="inheritList">
+						<xsl:with-param name="base" select="$baseClass"/>
+					</xsl:call-template>
+				</Inheritance>
+				<Implements>
+					<xsl:for-each select=".//apiBaseInterface">
+						<Implement id="{@*|node()}"/>
+					</xsl:for-each>
+				</Implements>
+				<Subclasses>
+					<xsl:variable name="apiClass" select="ancestor::apiClassifier/@id"/>
+					<xsl:variable name="apiClassGlb" select="substring-after($apiClass,'globalClassifier:')"/>
+					<xsl:for-each select="key('baseclass',  $apiClass)">
+						<class id="{@id}"/>
+					</xsl:for-each>
+					<xsl:for-each select="key('baseclass',  $apiClassGlb)">
+						<class id="{@id}"/>
+					</xsl:for-each>
+				</Subclasses>
+				<Implementors>
+					<xsl:if test=".//apiInterface">
+						<xsl:variable name="apiClass" select="ancestor::apiClassifier/@id"/>
+						<xsl:for-each select="key('baseInter',$apiClass)">
+							<xsl:sort select="substring-after(ancestor::apiClassifier/@id,':')" order="ascending"/>
+							<xsl:if test="not(parent::apiClassifierDef/apiInterface)">
+								<Implementor id="{ancestor::apiClassifier/@id}"/>
+							</xsl:if>
+						</xsl:for-each>
+					</xsl:if>
+				</Implementors>
+				<Excludes>
+					<xsl:copy-of select="ancestor::apiClassifier/Excludes/Exclude"/>
+					<xsl:for-each select=".//apiBaseClassifier">
+						<xsl:call-template name="getexcludes"/>
+					</xsl:for-each>
+				</Excludes>
+			</Inheritancelist>
+		</apiClassifierDetail>
+	</xsl:template>
+	<xsl:template match="Keywords" mode="keys">
+		<xsl:apply-templates select="node()"/>
+	</xsl:template>
+	<xsl:template match="apiClassifierDef">
+		<apiClassifierDef>
+			<xsl:apply-templates select="node()"/>
+		</apiClassifierDef>
+	</xsl:template>
+	<xsl:template name="nested">
+		<xsl:variable name="apiBaseInter" select=".//apiBaseInterface/."/>
+		<xsl:for-each select="key('id', $apiBaseInter)/apiClassifierDetail/apiClassifierDef/apiBaseInterface">
+			<xsl:variable name="nested.apiBaseInter" select="."/>
+			<xsl:choose>
+				<xsl:when test="$apiBaseInter=$nested.apiBaseInter"/>
+				<xsl:otherwise>
+					<Interface id="{.}"/>
+				</xsl:otherwise>
+			</xsl:choose>
+		</xsl:for-each>
+		<xsl:call-template name="sub-nested"/>
+	</xsl:template>
+	<xsl:template name="sub-nested">
+		<xsl:variable name="apiBaseInter" select=".//apiBaseInterface/."/>
+		<xsl:variable name="subnested.apiBaseInter" select="key('id', $apiBaseInter)/apiClassifierDetail/apiClassifierDef/apiBaseInterface"/>
+		<xsl:for-each select="key('id', $subnested.apiBaseInter)/apiClassifierDetail/apiClassifierDef/apiBaseInterface">
+			<xsl:variable name="nested.apiBaseInter" select="."/>
+			<xsl:choose>
+				<xsl:when test="$subnested.apiBaseInter=$nested.apiBaseInter"/>
+				<xsl:otherwise>
+					<Interface id="{.}"/>
+				</xsl:otherwise>
+			</xsl:choose>
+		</xsl:for-each>
+	</xsl:template>
+	<xsl:template name="inheritList">
+		<xsl:param name="base"/>
+		<xsl:variable name="match">
+			<xsl:if test="contains($base,':')">
+				<xsl:value-of select="$base"/>
+			</xsl:if>
+			<xsl:if test="not(contains($base,':'))">
+				<xsl:text>globalClassifier:</xsl:text>
+				<xsl:value-of select="$base"/>
+			</xsl:if>
+		</xsl:variable>
+		<xsl:for-each select="key('id',$match)">
+			<xsl:variable name="find" select=".//apiBaseClassifier/."/>
+			<xsl:if test=".//apiBaseClassifier/.">
+				<Inherit id="{$find}"/>
+			</xsl:if>
+			<xsl:if test="not($find='Object')">
+				<xsl:call-template name="inheritList">
+					<xsl:with-param name="base" select="$find"/>
+				</xsl:call-template>
+			</xsl:if>
+		</xsl:for-each>
+	</xsl:template>
+	<xsl:template name="getexcludes">
+		<xsl:for-each select="key('id', ./text())">
+			<xsl:copy-of select=".//Excludes/Exclude"/>
+			<xsl:for-each select=".//apiBaseClassifier">
+				<xsl:call-template name="getexcludes"/>
+			</xsl:for-each>
+		</xsl:for-each>
+	</xsl:template>
+	<xsl:template match="shortdesc">
+		<shortdesc>
+			<xsl:apply-templates select="node()"/>
+		</shortdesc>
+	</xsl:template>
+	<xsl:template match="prolog">
+		<prolog>
+			<xsl:apply-templates select="node()"/>
+		</prolog>
+	</xsl:template>
+	<xsl:template match="related-links">
+		<related-links>
+			<xsl:apply-templates select="node()"/>
+		</related-links>
+	</xsl:template>
+	<xsl:template match="node()">
+		<xsl:copy copy-namespaces="no">
+			<xsl:copy-of select="@*"/>
+			<xsl:apply-templates select="node()"/>
+		</xsl:copy>
+	</xsl:template>
+</xsl:stylesheet>

Propchange: incubator/flex/trunk/asdoc/templates/ClassHeader.xslt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/trunk/asdoc/templates/Classes.xslt
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/asdoc/templates/Classes.xslt?rev=1309036&view=auto
==============================================================================
--- incubator/flex/trunk/asdoc/templates/Classes.xslt (added)
+++ incubator/flex/trunk/asdoc/templates/Classes.xslt Tue Apr  3 16:52:07 2012
@@ -0,0 +1,216 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://sf.net/saxon"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ifn="urn:internal:functions"
+	exclude-result-prefixes="saxon xs ifn">
+	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
+	<xsl:param name="ditaFileDir" select="''"/>
+	<xsl:template match="/">
+		<allClasses>
+			<xsl:apply-templates select="//apiItemRef">
+				<xsl:sort select="@href" order="ascending"/>
+			</xsl:apply-templates>
+		</allClasses>
+	</xsl:template>
+	<xsl:template match="apiItemRef">
+		<xsl:variable name="ditaFileName">
+			<xsl:value-of select="concat($ditaFileDir,@href)"/>
+		</xsl:variable>
+		<xsl:for-each select="document($ditaFileName)/apiPackage">
+			<apiPackage id="{@id}">
+				<apiName>
+					<xsl:value-of select="./apiName"/>
+				</apiName>
+				<xsl:copy-of select="./apiDetail"/>
+				<xsl:for-each select="//apiClassifier">
+					<xsl:variable name="id" select="@id"/>
+					<apiClassifier id="{@id}">
+						<apiName>
+							<xsl:value-of select="apiName/."/>
+						</apiName>
+						<xsl:apply-templates select="shortdesc"/>
+						<xsl:apply-templates select="prolog"/>
+						<xsl:apply-templates select="apiClassifierDetail"/>
+						<xsl:apply-templates select="related-links"/>
+						<Keywords>
+							<xsl:variable name="keywords">
+								<xsl:if test=".//Xkeyword">
+									<xsl:for-each select=".//keyword">
+										<xsl:sort order="ascending"/>
+										<xsl:value-of select="normalize-space()"/>
+										<xsl:text>, </xsl:text>
+									</xsl:for-each>
+								</xsl:if>
+								<xsl:value-of select="./apiName"/>
+								<xsl:if test="string-length(../apiName)">
+									<xsl:text>,</xsl:text>
+									<xsl:call-template name="convertFullName">
+										<xsl:with-param name="fullname" select="@id"/>
+									</xsl:call-template>
+								</xsl:if>
+								<xsl:if test="apiValue">
+									<xsl:text>,</xsl:text>
+									<xsl:for-each select="//apiValue">
+										<xsl:sort order="ascending"/>
+										<xsl:value-of select="./apiName"/>
+										<xsl:if test="position() != last()">
+											<xsl:text>,</xsl:text>
+										</xsl:if>
+									</xsl:for-each>
+								</xsl:if>
+								<xsl:if test="apiOperation">
+									<xsl:text>,</xsl:text>
+									<xsl:for-each select="//apiOperation">
+										<xsl:sort order="ascending"/>
+										<xsl:value-of select="./apiName"/>
+										<xsl:if test="position() != last()">
+											<xsl:text>,</xsl:text>
+										</xsl:if>
+									</xsl:for-each>
+								</xsl:if>
+							</xsl:variable>
+							<meta name="keywords" content="{$keywords}"/>
+						</Keywords>
+						<xsl:if test="./prolog/asMetadata/Exclude">
+							<Excludes>
+								<xsl:for-each select="./prolog/asMetadata/Exclude">
+									<Exclude name="{@name}" kind="{@kind}" class="+ topic/ph adobe-api-d/Exclude
"/>
+								</xsl:for-each>
+							</Excludes>
+						</xsl:if>
+					</apiClassifier>
+				</xsl:for-each>
+			</apiPackage>
+		</xsl:for-each>
+	</xsl:template>
+	<xsl:template name="convertFullName">
+		<xsl:param name="fullname"/>
+		<xsl:param name="separator">.</xsl:param>
+		<xsl:param name="justClass">false</xsl:param>
+		<xsl:variable name="trimmed">
+			<xsl:call-template name="search-and-replace">
+				<xsl:with-param name="input" select="$fullname"/>
+				<xsl:with-param name="search-string">:public</xsl:with-param>
+			</xsl:call-template>
+		</xsl:variable>
+		<xsl:variable name="trimmed2">
+			<xsl:call-template name="search-and-replace">
+				<xsl:with-param name="input" select="$trimmed"/>
+				<xsl:with-param name="search-string">:internal</xsl:with-param>
+			</xsl:call-template>
+		</xsl:variable>
+		<xsl:variable name="trimmed3" select="translate($trimmed2,':','.')"/>
+		<xsl:choose>
+			<xsl:when test="$justClass = 'true'">
+				<xsl:call-template name="substring-after-last">
+					<xsl:with-param name="input" select="translate($trimmed3,'/','.')"/>
+					<xsl:with-param name="substr">.</xsl:with-param>
+				</xsl:call-template>
+			</xsl:when>
+			<xsl:when test="contains($trimmed3,'/')">
+				<!-- inner class -->
+				<xsl:value-of select="translate(substring-before($trimmed3,'/'),'.',$separator)"/>
+				<xsl:text>.</xsl:text>
+				<xsl:variable name="trimmed4" select="substring-after($trimmed3,'/')"/>
+				<xsl:if test="contains($trimmed4,'.')">
+					<xsl:variable name="trimmed5">
+						<xsl:call-template name="substring-after-last">
+							<xsl:with-param name="input" select="$trimmed4"/>
+							<xsl:with-param name="substr" select="'.'"/>
+						</xsl:call-template>
+					</xsl:variable>
+					<xsl:value-of select="translate($trimmed5,'.',$separator)"/>
+				</xsl:if>
+				<xsl:if test="not(contains($trimmed4,'.'))">
+					<xsl:value-of select="translate($trimmed4,'.',$separator)"/>
+				</xsl:if>
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:value-of select="translate($trimmed3,'.',$separator)"/>
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:template>
+	<xsl:template name="search-and-replace">
+		<xsl:param name="input"/>
+		<xsl:param name="search-string"/>
+		<xsl:param name="replace-string"/>
+		<xsl:choose>
+			<xsl:when test="$search-string and contains($input,$search-string)">
+				<xsl:value-of select="substring-before($input,$search-string)"/>
+				<xsl:value-of select="$replace-string"/>
+				<xsl:call-template name="search-and-replace">
+					<xsl:with-param name="input" select="substring-after($input,$search-string)"/>
+					<xsl:with-param name="search-string" select="$search-string"/>
+					<xsl:with-param name="replace-string" select="$replace-string"/>
+				</xsl:call-template>
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:value-of select="$input"/>
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:template>
+	<xsl:template name="substring-after-last">
+		<xsl:param name="input"/>
+		<xsl:param name="substr"/>
+		<xsl:variable name="tmp" select="substring-after($input,$substr)"/>
+		<xsl:choose>
+			<xsl:when test="$substr and contains($tmp,$substr)">
+				<xsl:call-template name="substring-after-last">
+					<xsl:with-param name="input" select="$tmp"/>
+					<xsl:with-param name="substr" select="$substr"/>
+				</xsl:call-template>
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:value-of select="$tmp"/>
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:template>
+	<xsl:template name="isTopLevel">
+		<xsl:param name="packageName"/>
+		<xsl:value-of select="string-length($packageName)=0 or contains($packageName,'__Global__')"/>
+	</xsl:template>
+	<xsl:template match="related-links">
+		<related-links>
+			<xsl:apply-templates select="node()"/>
+		</related-links>
+	</xsl:template>
+	<xsl:template match="apiClassifierDetail">
+		<apiClassifierDetail>
+			<xsl:apply-templates select="node()"/>
+		</apiClassifierDetail>
+	</xsl:template>
+	<xsl:template match="shortdesc">
+		<shortdesc>
+			<xsl:apply-templates select="node()"/>
+		</shortdesc>
+	</xsl:template>
+	<xsl:template match="prolog">
+		<prolog>
+			<xsl:apply-templates select="node()"/>
+		</prolog>
+	</xsl:template>
+	<xsl:template match="node()">
+		<xsl:copy copy-namespaces="no">
+			<xsl:copy-of select="@*"/>
+			<xsl:apply-templates select="node()"/>
+		</xsl:copy>
+	</xsl:template>
+	<xsl:template match="styles"/>
+	<xsl:template match="prolog/asMetadata/Exclude"/>
+</xsl:stylesheet>

Propchange: incubator/flex/trunk/asdoc/templates/Classes.xslt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/trunk/asdoc/templates/Overviews_Base.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/asdoc/templates/Overviews_Base.xml?rev=1309036&view=auto
==============================================================================
--- incubator/flex/trunk/asdoc/templates/Overviews_Base.xml (added)
+++ incubator/flex/trunk/asdoc/templates/Overviews_Base.xml Tue Apr  3 16:52:07 2012
@@ -0,0 +1,45 @@
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<!-- this file normally should not be edited.  Use the command-line
+     parameters for ASDoc instead -->
+<overviews>
+    <!-- 
+	<all-packages>
+		<description></description>
+	</all-packages>
+	-->
+	<all-classes>
+		<description><![CDATA[Documentation for classes includes syntax, usage information,
and code samples for methods, properties, and event handlers and listeners for those APIs
that belong to a specific class in ActionScript. The classes are listed alphabetically. If
you are not sure to which class a certain method or property belongs, you can look it up in
the Index.]]></description>
+	</all-classes>
+	<deprecated>
+		<shortDescription><![CDATA[A list of deprecated items and suggested alternatives
when available.]]></shortDescription>
+		<description></description>
+	</deprecated>
+	<!--
+	<packages>
+		<package name="">
+			<shortDescription></shortDescription>
+			<description></description>
+			<propertiesDescription></propertiesDescription>
+			<functionsDescription></functionsDescription>
+		</package>
+	</packages>
+	-->
+</overviews>

Propchange: incubator/flex/trunk/asdoc/templates/Overviews_Base.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/flex/trunk/asdoc/templates/Overviews_Base.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/flex/trunk/asdoc/templates/PostProcessing.xslt
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/asdoc/templates/PostProcessing.xslt?rev=1309036&view=auto
==============================================================================
--- incubator/flex/trunk/asdoc/templates/PostProcessing.xslt (added)
+++ incubator/flex/trunk/asdoc/templates/PostProcessing.xslt Tue Apr  3 16:52:07 2012
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
+	<xsl:param name="ditaFileDir" select="''"/>
+	<xsl:variable name="classheader" select="document('ClassHeader.xml')"/>
+	<xsl:variable name="fieldSummary" select="document('PP_fieldSummary.xml')"/>
+	<xsl:variable name="methodSummary" select="document('pp_methodSummary.xml')"/>
+	<xsl:template match="node()">
+		<xsl:copy copy-namespaces="no">
+			<xsl:copy-of select="@*"/>
+			<xsl:apply-templates select="node()"/>
+		</xsl:copy>
+	</xsl:template>
+	<!-- For FieldSummary -->
+	<xsl:template match="apiName[parent::apiValue[not(shortdesc)] and parent::apiValue/apiValueDetail/apiValueDef/apiInheritDoc]">
+		<xsl:copy-of select="."/>
+		<xsl:variable name="name" select="."/>
+		<xsl:variable name="apiID" select="ancestor::apiClassifier/@id"/>
+		<xsl:choose>
+			<xsl:when test="$classheader//apiPackage/apiClassifier[@id=$apiID]">
+				<xsl:for-each select="$classheader//apiPackage/apiClassifier[@id=$apiID]/apiClassifierDetail/Inheritancelist/Inheritance/Inherit/@id">
+					<xsl:variable name="baseID" select="."/>
+					<xsl:choose>
+						<xsl:when test="$fieldSummary//apiPackage/apiClassifier[@id=$baseID]/apiOperation[apiName
= $name]/shortdesc">
+							<xsl:copy-of select="$fieldSummary//apiPackage/apiClassifier[@id=$baseID]/apiOperation[apiName
= $name]/shortdesc"/>
+						</xsl:when>
+					</xsl:choose>
+				</xsl:for-each>
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:message terminate="no">
+					<xsl:text>WARNING : Short Description not present for </xsl:text>
+					<xsl:value-of select="parent::apiValue/@id"/>
+				</xsl:message>
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:template>
+	<xsl:template match="apiValueDef[parent::apiValueDetail[not(apiDesc)] and parent::apiValueDetail/apiValueDef/apiInheritDoc]">
+		<xsl:copy-of select="."/>
+		<xsl:variable name="name" select="parent::apiValueDetail/parent::apiValue/apiName"/>
+		<xsl:variable name="apiID" select="ancestor::apiClassifier/@id"/>
+		<xsl:choose>
+			<xsl:when test="$classheader//apiPackage/apiClassifier[@id=$apiID]">
+				<xsl:for-each select="$classheader//apiPackage/apiClassifier[@id=$apiID]/apiClassifierDetail/Inheritancelist/Inheritance/Inherit/@id">
+					<xsl:variable name="baseID" select="."/>
+					<xsl:choose>
+						<xsl:when test="$fieldSummary//apiPackage/apiClassifier[@id=$baseID]/apiOperation[apiName
= $name]/apiValueDetail/apiDesc">
+							<xsl:copy-of select="$fieldSummary//apiPackage/apiClassifier[@id=$baseID]/apiOperation[apiName
= $name]/apiValueDetail/apiDesc"/>
+						</xsl:when>
+					</xsl:choose>
+				</xsl:for-each>
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:message terminate="no">
+					<xsl:text>WARNING : api Description not present for </xsl:text>
+					<xsl:value-of select="parent::apiValueDetail/parent::apiValue/@id"/>
+				</xsl:message>
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:template>
+	<!-- For MethodSummary -->
+	<xsl:template match="apiName[parent::apiOperation[not(shortdesc)] and parent::apiOperation/apiOperationDetail/apiOperationDef/apiInheritDoc]">
+		<xsl:copy-of select="."/>
+		<xsl:variable name="name" select="."/>
+		<xsl:variable name="apiID" select="ancestor::apiClassifier/@id"/>
+		<xsl:choose>
+			<xsl:when test="$classheader//apiPackage/apiClassifier[@id=$apiID]">
+				<xsl:for-each select="$classheader//apiPackage/apiClassifier[@id=$apiID]/apiClassifierDetail/Inheritancelist/Inheritance/Inherit/@id">
+					<xsl:variable name="baseID" select="."/>
+					<xsl:choose>
+						<xsl:when test="$methodSummary//apiPackage/apiClassifier[@id=$baseID]/apiOperation[apiName
= $name]/shortdesc">
+							<xsl:copy-of select="$methodSummary//apiPackage/apiClassifier[@id=$baseID]/apiOperation[apiName
= $name]/shortdesc"/>
+						</xsl:when>
+					</xsl:choose>
+				</xsl:for-each>
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:message terminate="no">
+					<xsl:text>WARNING : Short Description not present for </xsl:text>
+					<xsl:value-of select="parent::apiOperation/@id"/>
+				</xsl:message>
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:template>
+	<xsl:template match="apiOperationDef[parent::apiOperationDetail[not(apiDesc) or apiDesc[normalize-space(.)='
']] and parent::apiOperationDetail/apiOperationDef/apiInheritDoc]">
+		<xsl:copy-of select="."/>
+		<xsl:variable name="name" select="parent::apiOperationDetail/parent::apiOperation/apiName"/>
+		<xsl:variable name="apiID" select="ancestor::apiClassifier/@id"/>
+		<xsl:choose>
+			<xsl:when test="$classheader//apiPackage/apiClassifier[@id=$apiID]">
+				<xsl:for-each select="$classheader//apiPackage/apiClassifier[@id=$apiID]/apiClassifierDetail/Inheritancelist/Inheritance/Inherit/@id">
+					<xsl:variable name="baseID" select="."/>
+					<xsl:choose>
+						<xsl:when test="$methodSummary//apiPackage/apiClassifier[@id=$baseID]/apiOperation[apiName
= $name]/apiOperationDetail/apiDesc">
+							<xsl:copy-of select="$methodSummary//apiPackage/apiClassifier[@id=$baseID]/apiOperation[apiName
= $name]/apiOperationDetail/apiDesc"/>
+						</xsl:when>
+					</xsl:choose>
+				</xsl:for-each>
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:message terminate="no">
+					<xsl:text>WARNING : api Description not present for </xsl:text>
+					<xsl:value-of select="parent::apiOperationDetail/parent::apiOperation/@id"/>
+				</xsl:message>
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:template>
+	<xsl:template match="shortdesc[normalize-space(.)= ' ']"/>
+	<xsl:template match="shortdesc[2]"/>
+	<xsl:template match="apiDesc[normalize-space(.) =' ']"/>
+	<xsl:template match="apiDesc[2]"/>
+</xsl:stylesheet>

Propchange: incubator/flex/trunk/asdoc/templates/PostProcessing.xslt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/trunk/asdoc/templates/all-classes.xslt
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/asdoc/templates/all-classes.xslt?rev=1309036&view=auto
==============================================================================
--- incubator/flex/trunk/asdoc/templates/all-classes.xslt (added)
+++ incubator/flex/trunk/asdoc/templates/all-classes.xslt Tue Apr  3 16:52:07 2012
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://sf.net/saxon"
xmlns:str="http://exslt.org/strings" xmlns:ifn="urn:internal:functions"
+	exclude-result-prefixes="saxon str ifn">
+	<xsl:import href="asdoc-util.xslt"/>
+	<xsl:output encoding="UTF-8" method="html" omit-xml-declaration="yes" saxon:indent="3"
use-character-maps="disable" indent="yes"/>
+	<xsl:variable name="title" select="concat($asdoc_terms/row[entry[1][p/text() = 'allClasses']]/entry[2]/p,
' - ',$title-base)"/>
+	<xsl:param name="packages_map_name" select="'packagemap.xml'"/>
+	<xsl:param name="jslr" select="'flashclasses.xml'"/>
+	<xsl:param name="prog_language_name" select="''"/>
+	<xsl:template match="/">
+		<xsl:copy-of select="$noLiveDocs"/>
+		<xsl:copy-of select="$docType"/>
+		<xsl:element name="html">
+			<head>
+				<title>
+					<xsl:choose>
+						<xsl:when test="$prog_language_name='javascript'" />
+						<xsl:otherwise>
+							<xsl:value-of select="$title"/>
+						</xsl:otherwise>
+					</xsl:choose>
+				</title>
+				<base target="classFrame"/>
+				<xsl:call-template name="getStyleLink">
+					<xsl:with-param name="link" select="asdoc/link"/>
+				</xsl:call-template>
+			</head>
+			<body class="classFrameContent">
+				<xsl:choose>
+					<xsl:when test="$prog_language_name='javascript'"/>
+					<xsl:otherwise>
+						<h3>
+							<a href="class-summary.html" target="classFrame" style="color:black">
+								<xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'allClasses']]/entry[2]/p"/>
+							</a>
+						</h3>
+					</xsl:otherwise>
+				</xsl:choose>
+				<xsl:choose>
+					<xsl:when test="$prog_language_name='javascript'"/>
+					<xsl:otherwise>
+						<table cellpadding="0" cellspacing="0">
+							<xsl:apply-templates select="//apiClassifier">
+								<xsl:sort select="apiName" order="ascending" lang="en-US"/>
+							</xsl:apply-templates>
+						</table>
+					</xsl:otherwise>
+				</xsl:choose>
+			</body>
+		</xsl:element>
+		<xsl:copy-of select="$copyrightComment"/>
+	</xsl:template>
+	<xsl:template match="apiClassifier">
+		<xsl:variable name="name" select="./apiName"/>
+		<xsl:variable name="packageName" select="../apiName"/>
+		<xsl:variable name="isTopLevel">
+			<xsl:call-template name="isTopLevel">
+				<xsl:with-param name="packageName" select="$packageName"/>
+			</xsl:call-template>
+		</xsl:variable>
+		<xsl:variable name="classPath" select="translate($packageName,'.','/')"/>
+		<tr>
+			<td>
+				<xsl:choose>
+					<xsl:when test="$isTopLevel='false'">
+						<a href="{$classPath}/{$name}.html"  title="{$packageName}.{$name}">
+							<xsl:choose>
+								<xsl:when test="./apiClassifierDetail/apiClassifierDef/apiInterface">
+									<i>
+										<xsl:value-of select="$name"/>
+									</i>
+								</xsl:when>
+								<xsl:otherwise>
+									<xsl:value-of select="$name"/>
+								</xsl:otherwise>
+							</xsl:choose>
+						</a>
+					</xsl:when>
+					<xsl:otherwise>
+						<xsl:variable name="targetValue" select="concat('./',$name,'.html')"/>
+						<a href="{$targetValue}">
+							<xsl:choose>
+								<xsl:when test="./apiClassifierDetail/apiClassifierDef/apiInterface!=null">
+									<i>
+										<xsl:value-of select="$name"/>
+									</i>
+								</xsl:when>
+								<xsl:otherwise>
+									<xsl:value-of select="$name"/>
+								</xsl:otherwise>
+							</xsl:choose>
+						</a>
+					</xsl:otherwise>
+				</xsl:choose>
+				<xsl:choose>
+					<xsl:when test="$prog_language_name='javascript'"/>
+					<xsl:otherwise>
+						<xsl:if test="prolog/asMetadata/apiVersion/apiPlatform[@name='AIR'] and not (prolog/asMetadata/apiVersion/apiPlatform[@name='Flash'])">
+							<xsl:value-of select="$nbsp"/>
+							<img src="images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0"/>
+						</xsl:if>
+					</xsl:otherwise>
+				</xsl:choose>
+			</td>
+		</tr>
+	</xsl:template>
+</xsl:stylesheet>

Propchange: incubator/flex/trunk/asdoc/templates/all-classes.xslt
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message