You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cf...@apache.org on 2012/04/03 18:52:09 UTC
svn commit: r1309036 [10/11] - in /incubator/flex/trunk/asdoc: ./ templates/
templates/images/
Added: incubator/flex/trunk/asdoc/templates/methodSummary.xslt
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/asdoc/templates/methodSummary.xslt?rev=1309036&view=auto
==============================================================================
--- incubator/flex/trunk/asdoc/templates/methodSummary.xslt (added)
+++ incubator/flex/trunk/asdoc/templates/methodSummary.xslt Tue Apr 3 16:52:07 2012
@@ -0,0 +1,578 @@
+<?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"
+ xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" exclude-result-prefixes="saxon xs ifn ditaarch">
+ <xsl:character-map name="disable">
+ <xsl:output-character character="’" string="'"/>
+ </xsl:character-map>
+ <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" use-character-maps="disable"/>
+ <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:apply-templates select="apiClassifier"/>
+ </apiPackage>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template match="apiClassifier">
+ <apiClassifier id="{@id}">
+ <apiName>
+ <xsl:value-of select="./apiName"/>
+ </apiName>
+ <xsl:apply-templates select="apiClassifierDetail"/>
+ <xsl:apply-templates select="apiOperation"/>
+ <xsl:apply-templates select="apiConstructor" mode="apiCon"/>
+ </apiClassifier>
+ </xsl:template>
+ <xsl:template match="apiClassifierDetail">
+ <apiClassifierDetail>
+ <xsl:apply-templates select="apiClassifierDef"/>
+ <xsl:copy-of select="./example" copy-namespaces="no"/>
+ </apiClassifierDetail>
+ </xsl:template>
+ <xsl:template match="apiClassifierDef">
+ <apiClassifierDef>
+ <xsl:apply-templates select="node()"/>
+ </apiClassifierDef>
+ </xsl:template>
+ <xsl:template match="apiOperation">
+ <apiOperation id="{@id}">
+ <xsl:apply-templates select="node()"/>
+ </apiOperation>
+ </xsl:template>
+ <xsl:template match="adobeApiEvent">
+ <adobeApiEvent id="{@id}">
+ <xsl:apply-templates select="node()"/>
+ </adobeApiEvent>
+ </xsl:template>
+ <xsl:template match="apiParam">
+ <xsl:variable name="itemName" select="./apiItemName"/>
+ <xsl:variable name="itemType" select="./apiType"/>
+ <apiParam>
+ <xsl:apply-templates select="apiItemName"/>
+ <xsl:if test="$itemType">
+ <xsl:copy-of select="./apiType" copy-namespaces="no"/>
+ </xsl:if>
+ <xsl:apply-templates select="apiData"/>
+ <xsl:apply-templates select="apiOperationClassifier"/>
+ <xsl:choose>
+ <xsl:when test="parent::apiOperationDef[apiInheritDoc and apiParam[not(apiDesc) or apiDesc[normalize-space(.) = '']]]">
+ <xsl:call-template name="getInheritDocText">
+ <xsl:with-param name="baseClass" select="ancestor-or-self::apiClassifier/apiClassifierDetail/apiClassifierDef/apiBaseClassifier"/>
+ <xsl:with-param name="implementedInterface" select="ancestor-or-self::apiClassifier/apiClassifierDetail/apiBaseInterface"/>
+ <xsl:with-param name="descriptionType" select="'paramapiDesc'"/>
+ <xsl:with-param name="entryType" select="'apiOperation'"/>
+ <xsl:with-param name="nameToMatch" select="ancestor::apiOperation/apiName"/>
+ <xsl:with-param name="paramText" select="'apiParam'"/>
+ <xsl:with-param name="itemName" select="$itemName"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="apiDesc"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </apiParam>
+ </xsl:template>
+ <xsl:template match="apiReturn">
+ <apiReturn>
+ <xsl:variable name="itemType" select="./apiType"/>
+ <xsl:if test="$itemType">
+ <xsl:copy-of select="./apiType" copy-namespaces="no"/>
+ </xsl:if>
+ <xsl:apply-templates select="apiOperationClassifier"/>
+ <xsl:choose>
+ <xsl:when test="parent::apiOperationDef[apiInheritDoc and apiReturn[not(apiDesc) or apiDesc[normalize-space(.) = '']]]">
+ <xsl:call-template name="getInheritDocText">
+ <xsl:with-param name="baseClass" select="ancestor-or-self::apiClassifier/apiClassifierDetail/apiClassifierDef/apiBaseClassifier"/>
+ <xsl:with-param name="implementedInterface" select="ancestor-or-self::apiClassifier/apiClassifierDetail/apiBaseInterface"/>
+ <xsl:with-param name="descriptionType" select="'returnapiDesc'"/>
+ <xsl:with-param name="entryType" select="'apiOperation'"/>
+ <xsl:with-param name="nameToMatch" select="ancestor::apiOperation/apiName"/>
+ <xsl:with-param name="paramText" select="'apiParam'"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="apiDesc"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </apiReturn>
+ </xsl:template>
+ <xsl:template match="apiItemName">
+ <apiItemName>
+ <xsl:apply-templates select="node()"/>
+ </apiItemName>
+ </xsl:template>
+ <xsl:template match="apiData">
+ <apiData>
+ <xsl:apply-templates select="node()"/>
+ </apiData>
+ </xsl:template>
+ <xsl:template match="apiOperationClassifier">
+ <apiOperationClassifier>
+ <xsl:apply-templates select="node()"/>
+ </apiOperationClassifier>
+ </xsl:template>
+ <xsl:template match="shortdesc">
+ <xsl:choose>
+ <xsl:when test="parent::apiOperation/apiOperationDetail/apiOperationDef/apiInheritDoc">
+ <xsl:if test="ancestor::apiClassifier/apiClassifierDetail/apiClassifierDef/apiBaseClassifier or ancestor::apiClassifier/apiClassifierDetail/apiClassifierDef/apiBaseInterface ">
+ <xsl:call-template name="getInheritDocText">
+ <xsl:with-param name="baseClass" select="ancestor::apiClassifier/apiClassifierDetail/apiClassifierDef/apiBaseClassifier"/>
+ <xsl:with-param name="implementedInterface" select="ancestor::apiClassifier/apiClassifierDetail/apiClassifierDef/apiBaseInterface"/>
+ <xsl:with-param name="descriptionType" select="'shortdesc'"/>
+ <xsl:with-param name="entryType" select="'apiOperation'"/>
+ <xsl:with-param name="nameToMatch" select="parent::apiOperation/apiName"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:when>
+ <xsl:when test="@conref">
+ <xsl:if test="normalize-space(.)">
+ <shortdesc>
+ <xsl:apply-templates select="node()"/>
+ </shortdesc>
+ </xsl:if>
+ <xsl:variable name="entryType" select="'method'"/>
+ <xsl:variable name="currentPackage" select="ancestor-or-self::apiPackage/apiName"/>
+ <xsl:call-template name="getConRefText">
+ <xsl:with-param name="conref" select="@conref"/>
+ <xsl:with-param name="descriptionType" select="'shortdesc'"/>
+ <xsl:with-param name="entryType" select="$entryType"/>
+ <xsl:with-param name="currentPackage" select="$currentPackage"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <shortdesc>
+ <xsl:apply-templates select="node()"/>
+ </shortdesc>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+ <xsl:template match="apiDesc">
+ <xsl:choose>
+ <xsl:when test="@conref">
+ <xsl:variable name="entryType" select="'method'"/>
+ <xsl:variable name="currentPackage" select="ancestor-or-self::apiPackage/apiName"/>
+ <apiDesc>
+ <xsl:if test="normalize-space(.)">
+ <p class="- topic/p ">
+ <xsl:apply-templates select="node()"/>
+ </p>
+ </xsl:if>
+ <xsl:call-template name="getConRefText">
+ <xsl:with-param name="conref" select="@conref"/>
+ <xsl:with-param name="descriptionType" select="'apiDesc'"/>
+ <xsl:with-param name="entryType" select="$entryType"/>
+ <xsl:with-param name="currentPackage" select="$currentPackage"/>
+ </xsl:call-template>
+ </apiDesc>
+ </xsl:when>
+ <xsl:when test="parent::apiOperationDetail/apiOperationDef/apiInheritDoc">
+ <xsl:if test="ancestor::apiClassifier/apiClassifierDetail/apiClassifierDef/apiBaseClassifier or ancestor::apiClassifier/apiClassifierDetail/apiClassifierDef/apiBaseInterface ">
+ <xsl:call-template name="getInheritDocText">
+ <xsl:with-param name="baseClass" select="ancestor::apiClassifier/apiClassifierDetail/apiClassifierDef/apiBaseClassifier"/>
+ <xsl:with-param name="implementedInterface" select="ancestor::apiClassifier/apiClassifierDetail/apiClassifierDef/apiBaseInterface"/>
+ <xsl:with-param name="descriptionType" select="'apiDesc'"/>
+ <xsl:with-param name="entryType" select="'apiOperation'"/>
+ <xsl:with-param name="nameToMatch" select="ancestor::apiOperation/apiName"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+ <apiDesc>
+ <xsl:apply-templates select="node()"/>
+ </apiDesc>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+ <xsl:template match="apiConstructor" mode="apiCon">
+ <apiConstructor id="{@id}">
+ <xsl:apply-templates select="node()"/>
+ </apiConstructor>
+ </xsl:template>
+ <xsl:template name="getInheritDocText">
+ <xsl:param name="itemName"/>
+ <xsl:param name="paramText"/>
+ <xsl:param name="baseClass"/>
+ <xsl:param name="implementedInterface"/>
+ <xsl:param name="descriptionType"/>
+ <xsl:param name="entryType"/>
+ <xsl:param name="nameToMatch"/>
+ <xsl:param name="itemNameToMatch"/>
+ <xsl:param name="doNotProcessTags" select="false()"/>
+ <xsl:for-each select="ancestor::apiClassifier/apiClassifierDetail/apiClassifierDef/apiBaseInterface">
+ <xsl:call-template name="inheritDocFromInterfaces">
+ <xsl:with-param name="implementedInterface" select="."/>
+ <xsl:with-param name="descriptionType" select="$descriptionType"/>
+ <xsl:with-param name="entryType" select="$entryType"/>
+ <xsl:with-param name="nameToMatch" select="$nameToMatch"/>
+ <xsl:with-param name="doNotProcessTags" select="$doNotProcessTags"/>
+ <xsl:with-param name="paramText" select="$paramText"/>
+ <xsl:with-param name="itemName" select="$itemName"/>
+ </xsl:call-template>
+ </xsl:for-each>
+ <xsl:call-template name="inheritDocFromBaseClass">
+ <xsl:with-param name="baseClass" select="$baseClass"/>
+ <xsl:with-param name="descriptionType" select="$descriptionType"/>
+ <xsl:with-param name="entryType" select="$entryType"/>
+ <xsl:with-param name="nameToMatch" select="$nameToMatch"/>
+ <xsl:with-param name="itemNameToMatch" select="$itemNameToMatch"/>
+ <xsl:with-param name="doNotProcessTags" select="$doNotProcessTags"/>
+ <xsl:with-param name="paramText" select="$paramText"/>
+ <xsl:with-param name="itemName" select="$itemName"/>
+ </xsl:call-template>
+ </xsl:template>
+ <xsl:template name="inheritDocFromInterfaces">
+ <xsl:param name="itemName"/>
+ <xsl:param name="paramText"/>
+ <xsl:param name="implementedInterface"/>
+ <xsl:param name="descriptionType"/>
+ <xsl:param name="entryType"/>
+ <xsl:param name="nameToMatch"/>
+ <xsl:param name="doNotProcessTags" select="false()"/>
+ <xsl:for-each select="$implementedInterface">
+ <xsl:variable name="baseClass" select="."/>
+ <xsl:variable name="className">
+ <xsl:if test="contains($baseClass,':')">
+ <xsl:value-of select="substring-after($baseClass,':')"/>
+ </xsl:if>
+ <xsl:if test="not(contains($baseClass,':'))">
+ <xsl:value-of select="$baseClass"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="packageName">
+ <xsl:if test="contains($baseClass,':')">
+ <xsl:value-of select="substring-before($baseClass,':')"/>
+ </xsl:if>
+ <xsl:if test="not(contains($baseClass,':'))">
+ <xsl:value-of select="__Global__"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="xslDocPath">
+ <xsl:if test="contains($baseClass,':')">
+ <xsl:value-of select="concat($ditaFileDir,substring-before($baseClass,':'),'.xml')"/>
+ </xsl:if>
+ <xsl:if test="not(contains($baseClass,':'))">
+ <xsl:value-of select="concat($ditaFileDir,'__Global__.xml')"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$entryType='apiOperation'">
+ <xsl:for-each select="document($xslDocPath)/apiPackage/apiClassifier[apiName=$className and apiClassifierDetail/apiClassifierDef/apiInterface]/apiOperation[apiName=$nameToMatch]">
+ <xsl:choose>
+ <xsl:when test="$descriptionType='shortdesc'">
+ <xsl:for-each select="./shortdesc[text() != '']">
+ <shortdesc>
+ <xsl:apply-templates select="node()"/>
+ </shortdesc>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:when test="$descriptionType='apiDesc'">
+ <xsl:for-each select="./apiOperationDetail/apiDesc[normalize-space(.) != '']">
+ <apiDesc>
+ <xsl:apply-templates select="node()"/>
+ </apiDesc>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:when test="$descriptionType='paramapiDesc'">
+ <xsl:for-each select="./apiOperationDetail/apiOperationDef/apiParam[apiItemName=$itemName]">
+ <xsl:copy-of select="./apiDesc" copy-namespaces="no"/>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:when test="$descriptionType='returnapiDesc'">
+ <xsl:copy-of select="./apiOperationDetail/apiOperationDef/apiReturn/apiDesc" copy-namespaces="no"/>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:for-each>
+ </xsl:when>
+ </xsl:choose>
+ <!-- Now process the base interface of the current interface-->
+ <xsl:for-each select="document($xslDocPath)/apiPackage/apiClassifier[apiName=$className]/apiClassifierDetail/apiClassifierDef/apiBaseInterface">
+ <xsl:call-template name="inheritDocFromInterfaces">
+ <xsl:with-param name="implementedInterface" select="."/>
+ <xsl:with-param name="descriptionType" select="$descriptionType"/>
+ <xsl:with-param name="entryType" select="$entryType"/>
+ <xsl:with-param name="nameToMatch" select="$nameToMatch"/>
+ <xsl:with-param name="doNotProcessTags" select="$doNotProcessTags"/>
+ <xsl:with-param name="paramText" select="$paramText"/>
+ <xsl:with-param name="itemName" select="$itemName"/>
+ </xsl:call-template>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:template>
+ <xsl:template name="inheritDocFromBaseClass">
+ <xsl:param name="itemName"/>
+ <xsl:param name="paramText"/>
+ <xsl:param name="baseClass"/>
+ <xsl:param name="descriptionType"/>
+ <xsl:param name="entryType"/>
+ <xsl:param name="nameToMatch"/>
+ <xsl:param name="itemNameToMatch"/>
+ <xsl:param name="doNotProcessTags" select="false()"/>
+ <xsl:variable name="className">
+ <xsl:if test="contains($baseClass,':')">
+ <xsl:value-of select="substring-after($baseClass,':')"/>
+ </xsl:if>
+ <xsl:if test="not(contains($baseClass,':'))">
+ <xsl:value-of select="$baseClass"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="packageName">
+ <xsl:if test="contains($baseClass,':')">
+ <xsl:value-of select="substring-before($baseClass,':')"/>
+ </xsl:if>
+ <xsl:if test="not(contains($baseClass,':'))">
+ <xsl:value-of select="__Global__"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="xslDocPath">
+ <xsl:if test="contains($baseClass,':')">
+ <xsl:value-of select="concat($ditaFileDir,substring-before($baseClass,':'),'.xml')"/>
+ </xsl:if>
+ <xsl:if test="not(contains($baseClass,':'))">
+ <xsl:value-of select="concat($ditaFileDir,'__Global__.xml')"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$entryType='apiOperation'">
+ <xsl:for-each select="document($xslDocPath)/apiPackage/apiClassifier[apiName=$className and not(apiClassifierDetail/apiClassifierDef/apiInterface)]/apiOperation[apiName=$nameToMatch]">
+ <xsl:choose>
+ <xsl:when test="$descriptionType='shortdesc'">
+ <xsl:for-each select="./shortdesc[normalize-space(text()) != '']">
+ <shortdesc>
+ <xsl:apply-templates select="node()"/>
+ </shortdesc>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:when test="$descriptionType='apiDesc'">
+ <xsl:for-each select="./apiOperationDetail/apiDesc[normalize-space(.) != '']">
+ <apiDesc>
+ <xsl:apply-templates select="node()"/>
+ </apiDesc>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:when test="$descriptionType='paramapiDesc'">
+ <xsl:for-each select="./apiOperationDetail/apiOperationDef/apiParam[apiItemName=$itemName]">
+ <xsl:copy-of select="./apiDesc" copy-namespaces="no"/>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:when test="$descriptionType='returnapiDesc'">
+ <xsl:copy-of select="./apiOperationDetail/apiOperationDef/apiReturn/apiDesc" copy-namespaces="no"/>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:for-each>
+ </xsl:when>
+ </xsl:choose>
+ <!-- Now process the base class till object reached-->
+ <xsl:if test="not($className='Object')">
+ <xsl:variable name="newBaseClass"
+ select="document($xslDocPath)/apiPackage/apiClassifier[apiName=$className and not(apiClassifierDetail/apiClassifierDef/apiInterface)]/apiClassifierDetail/apiClassifierDef/apiBaseClassifier"/>
+ <xsl:if test="string-length($newBaseClass) > 0">
+ <xsl:call-template name="inheritDocFromBaseClass">
+ <xsl:with-param name="baseClass" select="$newBaseClass"/>
+ <xsl:with-param name="descriptionType" select="$descriptionType"/>
+ <xsl:with-param name="entryType" select="$entryType"/>
+ <xsl:with-param name="nameToMatch" select="$nameToMatch"/>
+ <xsl:with-param name="itemNameToMatch" select="$itemNameToMatch"/>
+ <xsl:with-param name="doNotProcessTags" select="$doNotProcessTags"/>
+ <xsl:with-param name="paramText" select="$paramText"/>
+ <xsl:with-param name="itemName" select="$itemName"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:if>
+ </xsl:template>
+ <xsl:template name="getConRefText">
+ <xsl:param name="text"/>
+ <xsl:param name="conref"/>
+ <xsl:param name="descriptionType"/>
+ <xsl:param name="entryType"/>
+ <xsl:param name="doNotProcessTags" select="false()"/>
+ <xsl:param name="currentPackage" select="ancestor-or-self::apiPackage/apiName"/>
+ <xsl:if test="string-length($conref) > 0">
+ <xsl:variable name="relativePath">
+ <xsl:call-template name="getRelativePath">
+ <xsl:with-param name="currentPath" select="$currentPackage"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:variable name="packageClassText">
+ <xsl:if test="contains($conref,'#') and contains(substring-before($conref,'#'),'.')">
+ <xsl:value-of select="substring-before($conref,'#')"/>
+ </xsl:if>
+ <xsl:if test="contains($conref,'#') and not(contains(substring-before($conref,'#'),'.'))">
+ <xsl:value-of select="concat($currentPackage,'.',substring-before($conref,'#'))"/>
+ </xsl:if>
+ <xsl:if test="not(contains($conref,'#'))">
+ <xsl:value-of select="$conref"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="className">
+ <xsl:if test="contains($conref,'#') and contains(substring-before($conref,'#'),'.')">
+ <xsl:call-template name="lastIndexOf">
+ <xsl:with-param name="string" select="$packageClassText"/>
+ <xsl:with-param name="char" select="'.'"/>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:if test="contains($conref,'#') and not(contains(substring-before($conref,'#'),'.'))">
+ <xsl:if test="string-length(substring-before($conref,'#')) = 0">
+ <xsl:value-of select="ancestor-or-self::apiPackage/apiClassifier/apiName"/>
+ </xsl:if>
+ <xsl:if test="string-length(substring-before($conref,'#')) > 0">
+ <xsl:value-of select="substring-before($conref,'#')"/>
+ </xsl:if>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="destPackageName1">
+ <xsl:value-of select="substring-before($packageClassText,concat('.',$className))"/>
+ </xsl:variable>
+ <xsl:variable name="destPackageName">
+ <xsl:if test="$destPackageName1 = '' or $destPackageName1='__Global__'">
+ <xsl:value-of select="'__Global__.xml'"/>
+ </xsl:if>
+ <xsl:if test="not($destPackageName1='') and not($destPackageName1='__Global__')">
+ <xsl:value-of select="concat($destPackageName1, '.xml')"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="entryTypeNameText" select="substring-after($conref,'#')"/>
+ <xsl:variable name="nameToMatch">
+ <xsl:if test="string-length($entryTypeNameText) = 0">
+ <xsl:value-of select="$className"/>
+ </xsl:if>
+ <xsl:if test="contains($entryTypeNameText,':')">
+ <xsl:value-of select="substring-after($entryTypeNameText,':')"/>
+ </xsl:if>
+ <xsl:if test="not(contains($entryTypeNameText,':')) and string-length($entryTypeNameText) > 0">
+ <xsl:if test="contains($entryTypeNameText,')')">
+ <xsl:value-of select="substring-before($entryTypeNameText,'(')"/>
+ </xsl:if>
+ <xsl:if test="not(contains($entryTypeNameText,')'))">
+ <xsl:value-of select="$entryTypeNameText"/>
+ </xsl:if>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="entryType">
+ <xsl:if test="string-length($entryTypeNameText) = 0">
+ <xsl:value-of select="'class'"/>
+ </xsl:if>
+ <xsl:if test="contains($entryTypeNameText,':')">
+ <xsl:value-of select="substring-before($entryTypeNameText,':')"/>
+ </xsl:if>
+ <xsl:if test="not(contains($entryTypeNameText,':')) and string-length($entryTypeNameText) > 0">
+ <xsl:if test="contains($entryTypeNameText,')')">
+ <xsl:value-of select="'method'"/>
+ </xsl:if>
+ <xsl:if test="not(contains($entryTypeNameText,')'))">
+ <xsl:value-of select="'property'"/>
+ </xsl:if>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:for-each select="document(concat($ditaFileDir,$destPackageName))/apiPackage//apiClassifier[apiName=$className]">
+ <xsl:if test="string-length($entryType) > 0">
+ <xsl:choose>
+ <xsl:when test="contains($entryType,'method')">
+ <xsl:for-each select="./apiOperation[apiName=$nameToMatch]">
+ <xsl:choose>
+ <xsl:when test="$descriptionType='shortdesc'">
+ <xsl:if test="./shortdesc[@conref]">
+ <xsl:call-template name="getConRefText">
+ <xsl:with-param name="conref" select="./shortdesc/@conref"/>
+ <xsl:with-param name="descriptionType" select="local-name(./shortdesc)"/>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:if test="not(./shortdesc[@conref])">
+ <xsl:for-each select="./shortdesc[text() != '']">
+ <shortdesc>
+ <xsl:apply-templates select="node()"/>
+ </shortdesc>
+ </xsl:for-each>
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:if test="./apiOperationDetail/apiDesc[@conref]">
+ <xsl:call-template name="getConRefText">
+ <xsl:with-param name="conref" select="./apiOperationDetail/apiDesc/@conref"/>
+ <xsl:with-param name="descriptionType" select="local-name(./apiOperationDetail/apiDesc)"/>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:if test="not(./apiOperationDetail/apiDesc[@conref])">
+ <xsl:for-each select="./apiOperationDetail/apiDesc">
+ <xsl:apply-templates select="node()"/>
+ </xsl:for-each>
+ </xsl:if>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:if>
+ </xsl:template>
+ <xsl:template name="getRelativePath">
+ <xsl:param name="currentPath"/>
+ <xsl:choose>
+ <xsl:when test="not($currentPath) or $currentPath='__Global__'">
+ <xsl:value-of select="''"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:if test="contains($currentPath,'.')">
+ <xsl:call-template name="getRelativePath">
+ <xsl:with-param name="currentPath" select="substring-after($currentPath,'.')"/>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:value-of select="'../'"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+ <xsl:template name="lastIndexOf">
+ <xsl:param name="string"/>
+ <xsl:param name="char"/>
+ <xsl:choose>
+ <xsl:when test="contains($string, $char)">
+ <xsl:call-template name="lastIndexOf">
+ <xsl:with-param name="string" select="substring-after($string, $char)"/>
+ <xsl:with-param name="char" select="$char"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$string"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+ <xsl:template match="keywords"/>
+ <xsl:template match="node()">
+ <xsl:copy copy-namespaces="no">
+ <xsl:copy-of select="@*" copy-namespaces="no"/>
+ <xsl:apply-templates select="node()"/>
+ </xsl:copy>
+ </xsl:template>
+</xsl:stylesheet>
Propchange: incubator/flex/trunk/asdoc/templates/methodSummary.xslt
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/flex/trunk/asdoc/templates/mxml-tags.html
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/asdoc/templates/mxml-tags.html?rev=1309036&view=auto
==============================================================================
--- incubator/flex/trunk/asdoc/templates/mxml-tags.html (added)
+++ incubator/flex/trunk/asdoc/templates/mxml-tags.html Tue Apr 3 16:52:07 2012
@@ -0,0 +1,35 @@
+<!--
+ 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.
+-->
+<html>
+<head>
+ <link rel="stylesheet" href="style.css" type="text/css" />
+ <title>MXML Only Components - Adobe Flex 3 Language Reference</title>
+</head>
+
+<body class="classFrameContent">
+ <h3>MXML Only Components</h3>
+ <a href="mxml/binding.html" target="classFrame"><mx:Binding></a><br />
+ <a href="mxml/component.html" target="classFrame"><mx:Component></a><br />
+ <a href="mxml/metadata.html" target="classFrame"><mx:Metadata></a><br />
+ <a href="mxml/model.html" target="classFrame"><mx:Model></a><br />
+ <a href="mxml/script.html" target="classFrame"><mx:Script></a><br />
+ <a href="mxml/style.html" target="classFrame"><mx:Style></a><br />
+ <a href="mxml/xml.html" target="classFrame"><mx:XML></a><br />
+ <a href="mxml/xmlList.html" target="classFrame"><mx:XMLList></a><br />
+</body>
+</html>
+
Propchange: incubator/flex/trunk/asdoc/templates/mxml-tags.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/flex/trunk/asdoc/templates/mxml-tags.html
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/flex/trunk/asdoc/templates/override.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/asdoc/templates/override.css?rev=1309036&view=auto
==============================================================================
--- incubator/flex/trunk/asdoc/templates/override.css (added)
+++ incubator/flex/trunk/asdoc/templates/override.css Tue Apr 3 16:52:07 2012
@@ -0,0 +1,18 @@
+/*
+ *
+ * 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.
+ *
+ */
Propchange: incubator/flex/trunk/asdoc/templates/override.css
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/flex/trunk/asdoc/templates/override.css
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/flex/trunk/asdoc/templates/package-detail.xslt
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/asdoc/templates/package-detail.xslt?rev=1309036&view=auto
==============================================================================
--- incubator/flex/trunk/asdoc/templates/package-detail.xslt (added)
+++ incubator/flex/trunk/asdoc/templates/package-detail.xslt Tue Apr 3 16:52:07 2012
@@ -0,0 +1,505 @@
+<?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:import href="asdoc-util.xslt"/>
+ <xsl:import href="class-files.xslt"/>
+ <xsl:output encoding="UTF-8" method="html" omit-xml-declaration="yes" use-character-maps="disable"/>
+ <xsl:param name="outputPath" select="''"/>
+ <xsl:param name="packageOverviewFile" select="'overviews.xml'"/>
+ <xsl:param name="packages_map_name" select="'packagemap.xml'"/>
+ <xsl:variable name="thinsp">
+ <xsl:text> </xsl:text>
+ </xsl:variable>
+ <xsl:template match="/">
+ <xsl:choose>
+ <xsl:when test="$prog_language_name='javascript'"/>
+ <xsl:otherwise>
+ <xsl:for-each select="apiMap//apiItemRef">
+ <xsl:sort select="@href" order="ascending" lang="en-US"/>
+ <xsl:variable name="ditaFileName">
+ <xsl:value-of select="concat($ditaFileDir,@href)"/>
+ </xsl:variable>
+ <xsl:for-each select="document($ditaFileName)/apiPackage">
+ <xsl:variable name="name" select="./apiName"/>
+ <xsl:variable name="isTopLevel">
+ <xsl:call-template name="isTopLevel">
+ <xsl:with-param name="packageName" select="$name"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:variable name="shortPackageName" select="$name"/>
+ <xsl:variable name="packageFile">
+ <xsl:value-of select="$outputPath"/>
+ <xsl:choose>
+ <xsl:when test="$isTopLevel='true'">package-detail.html</xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="translate($name,'.','/')"/>/package-detail.html</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="classListFile">
+ <xsl:choose>
+ <xsl:when test="$isTopLevel='true'">class-list.html</xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="translate($name,'.','/')"/>/class-list.html</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="packageName">
+ <xsl:choose>
+ <xsl:when test="$isTopLevel='true'">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'TopLevel']]/entry[2]/p"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="$asdoc_terms/row[entry[1][p/text() = 'PackagePackage']]/entry[2]/p" mode="terms">
+ <xsl:with-param name="package" select="$name"/>
+ </xsl:apply-templates>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="title">
+ <xsl:if test="$isTopLevel='true'">
+ <xsl:value-of select="concat($asdoc_terms/row[entry[1][p/text() = 'TopLevel']]/entry[2]/p,' - ',$title-base)"/>
+ </xsl:if>
+ <xsl:if test="$isTopLevel != 'true'">
+ <xsl:value-of select="concat($name,' ',$asdoc_terms/row[entry[1][p/text() = 'Package']]/entry[2]/p,' - ',$title-base)"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:result-document href="{$packageFile}" method="html">
+ <xsl:copy-of select="$noLiveDocs"/>
+ <xsl:copy-of select="$docType"/>
+ <xsl:value-of select="$markOfTheWeb"/>
+ <xsl:if test="$config/options[@ion='true']">
+ <xsl:comment>#config errmsg=""</xsl:comment>
+ </xsl:if>
+ <xsl:element name="html">
+ <head>
+ <xsl:call-template name="getStyleLink">
+ <xsl:with-param name="link" select="/asdoc/link"/>
+ <xsl:with-param name="packageName" select="$name"/>
+ </xsl:call-template>
+ <title>
+ <xsl:if test="$isTopLevel='true'">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'TopLevelConstantsFunctions']]/entry[2]/p"/>
+ </xsl:if>
+ <xsl:if test="$isTopLevel='false'">
+ <xsl:value-of select="$name"/>
+ </xsl:if>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Summary']]/entry[2]/p"/>
+ <xsl:call-template name="getPageTitlePostFix"/>
+ </title>
+ </head>
+ <xsl:element name="body">
+ <xsl:if test="$isEclipse">
+ <xsl:attribute name="class">
+ <xsl:text>eclipseBody</xsl:text>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:call-template name="getTitleScript">
+ <xsl:with-param name="title" select="$title"/>
+ <xsl:with-param name="packageName" select="$name"/>
+ </xsl:call-template>
+ <xsl:call-template name="getLinks2">
+ <xsl:with-param name="subTitle">
+ <xsl:choose>
+ <xsl:when test="$isTopLevel='true'">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'TopLevel']]/entry[2]/p"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="$shortPackageName"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:with-param>
+ <xsl:with-param name="fileName" select="'package-detail'"/>
+ <xsl:with-param name="fileName2" select="$classListFile"/>
+ <xsl:with-param name="packageName" select="$name"/>
+ <xsl:with-param name="showProperties" select="false()"/>
+ <xsl:with-param name="showMethods" select="false()"/>
+ <xsl:with-param name="showPackageConstants" select="boolean(count(apiValue[not(apiValueDetail/apiValueDef/apiProperty)]))"/>
+ <xsl:with-param name="showPackageProperties" select="boolean(count(apiValue[apiValueDetail/apiValueDef/apiProperty]))"/>
+ <xsl:with-param name="showPackageFunctions" select="boolean(count(apiOperation))"/>
+ <xsl:with-param name="showInterfaces" select="boolean(count(apiClassifier[apiClassifierDetail/apiClassifierDef/apiInterface]))"/>
+ <xsl:with-param name="showClasses" select="boolean(count(apiClassifier[not(apiClassifierDetail/apiClassifierDef/apiInterface)]))"/>
+ <xsl:with-param name="showPackageUse" select="false()"/>
+ </xsl:call-template>
+ <xsl:variable name="id" select="@id"/>
+ <div class="MainContent">
+ <xsl:variable name="annot" select="$id"/>
+ <xsl:variable name="pack" select="translate($annot,':','.')"/>
+ <xsl:apply-templates mode="annotate" select="$config/annotate/item[@type='package' and @name[starts-with($pack,.)]]"/>
+ <br/>
+ <xsl:if test="not($config/overviews/package)">
+ <xsl:variable name="packageComments" select="document($packageOverviewFile)/overviews/packages/package[@name=current()/apiName]"/>
+ <xsl:for-each select="$packageComments/description">
+ <p>
+ <xsl:call-template name="deTilda">
+ <xsl:with-param name="inText" select="."/>
+ </xsl:call-template>
+ </p>
+ <xsl:for-each select="$packageComments">
+ <xsl:call-template name="sees"/>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:if>
+ <xsl:if test="$config/overviews/package">
+ <xsl:variable name="pname" select="@name"/>
+ <xsl:for-each select="$config/overviews/package">
+ <xsl:variable name="packageOverview" select="document(.)/overviews/packages/package[@name=$pname]"/>
+ <xsl:if test="$packageOverview/longDescription">
+ <p>
+ <xsl:call-template name="deTilda">
+ <xsl:with-param name="inText" select="$packageOverview/description"/>
+ </xsl:call-template>
+ </p>
+ <xsl:for-each select="$packageOverview">
+ <xsl:call-template name="sees">
+ <xsl:with-param name="xrefId">
+ <xsl:if test="$isTopLevel='true'">
+ <xsl:text>global</xsl:text>
+ </xsl:if>
+ <xsl:if test="not($isTopLevel='true')">
+ <xsl:value-of select="$pname"/>
+ </xsl:if>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:for-each>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:if>
+ <br/>
+ <hr/>
+ <xsl:if test="apiValue/apiValueDetail/apiValueDef[apiProperty]">
+ <a name="fieldSummary"/>
+ <div class="summaryTableTitle">
+ <xsl:choose>
+ <xsl:when test="$isTopLevel='true'">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'GlobalProperties']]/entry[2]/p"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Property']]/entry[2]/p"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ <table cellpadding="3" cellspacing="0" class="summaryTable">
+ <tr>
+ <th>
+ <xsl:value-of select="$nbsp"/>
+ </th>
+ <th width="30%">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Property']]/entry[2]/p"/>
+ </th>
+ <th width="70%">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Description']]/entry[2]/p"/>
+ </th>
+ </tr>
+ <xsl:for-each select="apiValue/apiValueDetail/apiValueDef[apiProperty]">
+ <xsl:sort select="apiName" order="ascending" lang="en-US"/>
+ <xsl:variable name="name" select="apiName"/>
+ <tr class="prow{position() mod 2}">
+ <td class="summaryTablePaddingCol">
+ <xsl:value-of select="$nbsp"/>
+ </td>
+ <td class="summaryTableSecondCol">
+ <a href="package.html#{$name}">
+ <xsl:value-of select="$name"/>
+ </a>
+ </td>
+ <td class="summaryTableLastCol">
+ <xsl:call-template name="shortDescription"/>
+ <xsl:if test="not(string-length(normalize-space(shortDescription/.)))">
+ <xsl:value-of select="$nbsp"/>
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:if>
+ <xsl:if test="apiOperation">
+ <a name="methodSummary"/>
+ <div class="summaryTableTitle">
+ <xsl:choose>
+ <xsl:when test="$isTopLevel='true'">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'GlobalFunctions']]/entry[2]/p"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Functions']]/entry[2]/p"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ <table cellpadding="3" cellspacing="0" class="summaryTable">
+ <tr>
+ <th>
+ <xsl:value-of select="$nbsp"/>
+ </th>
+ <th width="30%">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'FunctionFunction']]/entry[2]/p"/>
+ </th>
+ <th width="70%">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Description']]/entry[2]/p"/>
+ </th>
+ </tr>
+ <xsl:for-each select="apiOperation">
+ <xsl:sort select="apiName" order="ascending" lang="en-US"/>
+ <xsl:variable name="name" select="apiName"/>
+ <tr class="prow{position() mod 2}">
+ <td class="summaryTablePaddingCol">
+ <xsl:value-of select="$nbsp"/>
+ </td>
+ <td class="summaryTableSecondCol">
+ <a href="package.html#{$name}()">
+ <xsl:value-of select="$name"/>
+ </a>
+ </td>
+ <td class="summaryTableLastCol">
+ <xsl:call-template name="shortDescriptionReview"/>
+ <xsl:call-template name="shortDescription"/>
+ <xsl:if test="not(string-length(normalize-space(./shortdesc/.)))">
+ <xsl:value-of select="$nbsp"/>
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:if>
+ <xsl:if test="apiValue[not(apiValueDetail/apiValueDef/apiProperty)]">
+ <a name="constantSummary"/>
+ <div class="summaryTableTitle">
+ <xsl:choose>
+ <xsl:when test="$isTopLevel='true'">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'GlobalConstants']]/entry[2]/p"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Constants']]/entry[2]/p"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ <table cellpadding="3" cellspacing="0" class="summaryTable">
+ <tr>
+ <th>
+ <xsl:value-of select="$nbsp"/>
+ </th>
+ <th width="30%">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Constant']]/entry[2]/p"/>
+ </th>
+ <th width="70%">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Description']]/entry[2]/p"/>
+ </th>
+ </tr>
+ <xsl:for-each select="apiValue[not(apiValueDetail/apiValueDef/apiProperty)]">
+ <xsl:sort select="apiName" order="ascending" lang="en-US"/>
+ <xsl:variable name="name" select="apiName"/>
+ <tr class="prow{position() mod 2}">
+ <td class="summaryTablePaddingCol">
+ <xsl:value-of select="$nbsp"/>
+ </td>
+ <td class="summaryTableSecondCol">
+ <a href="package.html#{$name}">
+ <xsl:value-of select="$name"/>
+ </a>
+ </td>
+ <td class="summaryTableLastCol">
+ <xsl:call-template name="shortDescription"/>
+ <xsl:if test="not(string-length(normalize-space(./shortdesc/.)))">
+ <xsl:value-of select="$nbsp"/>
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:if>
+ <xsl:if test="apiClassifier[apiClassifierDetail/apiClassifierDef/apiInterface]">
+ <a name="interfaceSummary"/>
+ <div class="summaryTableTitle">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Interfaces']]/entry[2]/p"/>
+ </div>
+ <table cellpadding="3" cellspacing="0" class="summaryTable">
+ <tr>
+ <th>
+ <xsl:value-of select="$nbsp"/>
+ </th>
+ <th width="30%">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Interface']]/entry[2]/p"/>
+ </th>
+ <th width="70%">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Description']]/entry[2]/p"/>
+ </th>
+ </tr>
+ <xsl:for-each select="apiClassifier[apiClassifierDetail/apiClassifierDef/apiInterface]">
+ <xsl:sort select="apiName" order="ascending" lang="en-US"/>
+ <xsl:variable name="name" select="apiName"/>
+ <xsl:variable name="packageName" select="ancestor::apiPackage/apiName"/>
+ <xsl:variable name="baseRef">
+ <xsl:call-template name="getBaseRef">
+ <xsl:with-param name="packageName" select="$packageName"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <tr class="prow{position() mod 2}">
+ <td class="summaryTablePaddingCol">
+ <xsl:value-of select="$nbsp"/>
+ </td>
+ <td class="summaryTableSecondCol">
+ <i>
+ <a href="{$name}.html">
+ <xsl:value-of select="$name"/>
+ </a>
+ </i>
+ <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"/>
+ <xsl:call-template name="insertAIRIcon">
+ <xsl:with-param name="baseRef" select="$baseRef"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="summaryTableLastCol">
+ <xsl:if test="deprecated">
+ <xsl:apply-templates select="deprecated"/>
+ </xsl:if>
+ <xsl:if test="not(deprecated)">
+ <xsl:call-template name="shortDescription"/>
+ <xsl:if test="not(string-length(normalize-space(./shortdesc/.)))">
+ <xsl:value-of select="$nbsp"/>
+ </xsl:if>
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:if>
+ <xsl:if test="apiClassifier[not(apiClassifierDetail/apiClassifierDef/apiInterface)]">
+ <a name="classSummary"/>
+ <div class="summaryTableTitle">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Classes']]/entry[2]/p"/>
+ </div>
+ <table cellpadding="3" cellspacing="0" class="summaryTable">
+ <tr>
+ <th>
+ <xsl:value-of select="$nbsp"/>
+ </th>
+ <th width="30%">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'ClassClass']]/entry[2]/p"/>
+ </th>
+ <th width="70%">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Description']]/entry[2]/p"/>
+ </th>
+ </tr>
+ <xsl:for-each select="apiClassifier[not(apiClassifierDetail/apiClassifierDef/apiInterface)]">
+ <xsl:sort select="apiName" order="ascending" lang="en-US"/>
+ <xsl:variable name="name" select="apiName"/>
+ <xsl:variable name="packageName" select="ancestor::apiPackage/apiName"/>
+ <xsl:variable name="baseRef">
+ <xsl:call-template name="getBaseRef">
+ <xsl:with-param name="packageName" select="$packageName"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <tr class="prow{position() mod 2}">
+ <td class="summaryTablePaddingCol">
+ <xsl:value-of select="$nbsp"/>
+ </td>
+ <td class="summaryTableSecondCol">
+ <a href="{$name}.html">
+ <xsl:value-of select="$name"/>
+ </a>
+ <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"/>
+ <xsl:call-template name="insertAIRIcon">
+ <xsl:with-param name="baseRef" select="$baseRef"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td class="summaryTableLastCol">
+ <xsl:if test="deprecated">
+ <xsl:apply-templates select="deprecated"/>
+ </xsl:if>
+ <xsl:if test="not(deprecated)">
+ <xsl:call-template name="shortDescription"/>
+ <xsl:if test="not(string-length(normalize-space(./shortdesc)))">
+ <xsl:value-of select="$nbsp"/>
+ </xsl:if>
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:if>
+ <p/>
+ <xsl:variable name="packageName" select="$name"/>
+ <xsl:variable name="baseRef">
+ <xsl:call-template name="getBaseRef">
+ <xsl:with-param name="packageName" select="$packageName"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <div>
+ <p/>
+ <xsl:if test="$isTopLevel='true'">
+ <xsl:call-template name="getFeedbackLink">
+ <xsl:with-param name="topic" select="'Top Level'"/>
+ <xsl:with-param name="baseRef" select="$baseRef"/>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:if test="$isTopLevel!='true'">
+ <xsl:call-template name="getFeedbackLink">
+ <xsl:with-param name="topic" select="$name"/>
+ <xsl:with-param name="baseRef" select="$baseRef"/>
+ </xsl:call-template>
+ </xsl:if>
+ <center class="copyright">
+ <xsl:copy-of select="$copyright"/>
+ </center>
+ </div>
+ </div>
+ <xsl:variable name="packageName" select="ancestor::apiPackage/apiName"/>
+ <xsl:variable name="baseRef">
+ <xsl:call-template name="getBaseRef">
+ <xsl:with-param name="packageName" select="$name"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:if test="$config/options[@ion='true']">
+ <div class="separator"> </div>
+ <xsl:comment>BEGIN IONCOMMENTS</xsl:comment>
+ <div id="ionComHere"> </div>
+ <xsl:comment>END IONCOMMENTS</xsl:comment>
+ <xsl:comment>#include virtual="ionComments.ssi"</xsl:comment>
+ <p id="creativecommons" class="creativecommons">
+ <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">
+ <img id="creativecommons_img" src="{$baseRef}images/CC.png"/>
+ </a>
+ </p>
+ <xsl:comment>#include virtual="/livedocs/googleAnalytics.ssi"</xsl:comment>
+ <xsl:comment>#include virtual="/ubi/analytics/analytics_ssi.html"</xsl:comment>
+ </xsl:if>
+ </xsl:element>
+ </xsl:element>
+ <xsl:copy-of select="$copyrightComment"/>
+ </xsl:result-document>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+</xsl:stylesheet>
Propchange: incubator/flex/trunk/asdoc/templates/package-detail.xslt
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/flex/trunk/asdoc/templates/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/asdoc/templates/package-frame.html?rev=1309036&view=auto
==============================================================================
--- incubator/flex/trunk/asdoc/templates/package-frame.html (added)
+++ incubator/flex/trunk/asdoc/templates/package-frame.html Tue Apr 3 16:52:07 2012
@@ -0,0 +1,34 @@
+<!--
+ 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.
+-->
+<html>
+<head>
+ <title>ActionScript 3.0 Language and Components Reference</title>
+</head>
+<frameset rows="40%,60%" border="2" framespacing="1" bordercolor="#AAAAAA">
+ <frame src="package-list.html" name="packageListFrame" scrolling="yes" />
+ <frame src="all-classes.html" name="classListFrame" scrolling="yes" />
+ <noframes>
+ <body>
+ <h2>Frame Alert</h2>
+ <p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
+ <br />
+ Link to<a href="package-summary.html">Non-frame version.</a>
+ </p>
+ </body>
+ </noframes>
+</frameset>
+</html>
\ No newline at end of file
Propchange: incubator/flex/trunk/asdoc/templates/package-frame.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/flex/trunk/asdoc/templates/package-frame.html
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/flex/trunk/asdoc/templates/package-list.xslt
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/asdoc/templates/package-list.xslt?rev=1309036&view=auto
==============================================================================
--- incubator/flex/trunk/asdoc/templates/package-list.xslt (added)
+++ incubator/flex/trunk/asdoc/templates/package-list.xslt Tue Apr 3 16:52:07 2012
@@ -0,0 +1,208 @@
+<?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:import href="asdoc-util.xslt"/>
+ <xsl:output encoding="UTF-8" method="html" omit-xml-declaration="yes" use-character-maps="disable"/>
+ <xsl:param name="packages_map_name" select="'packagemap.xml'"/>
+ <xsl:param name="ditaFileDir" select="''"/>
+ <xsl:template match="/">
+ <xsl:copy-of select="$noLiveDocs"/>
+ <xsl:copy-of select="$docType"/>
+ <xsl:element name="html">
+ <head>
+ <title><xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'PackageList']]/entry[2]/p"/> - <xsl:value-of select="$title-base"/></title>
+ <base target="classFrame"/>
+ <xsl:call-template name="getStyleLink">
+ <xsl:with-param name="link" select="asdoc/link"/>
+ </xsl:call-template>
+ <script language="javascript" src="asdoc.js" type="text/javascript"/>
+ </head>
+ <body class="classFrameContent">
+ <h3>
+ <a href="package-summary.html" onclick="javascript:loadClassListFrame('all-classes.html');" style="color:black">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Packages']]/entry[2]/p"/>
+ </a>
+ </h3>
+ <table cellpadding="0" cellspacing="0">
+ <xsl:for-each select="apiMap//apiItemRef">
+ <xsl:sort select="substring(@href, 0, string-length(@href)-4)" order="ascending" lang="en-US"/>
+ <xsl:variable name="ditaFileName">
+ <xsl:value-of select="concat($ditaFileDir,@href)"/>
+ </xsl:variable>
+ <xsl:if test="document($ditaFileName)/apiPackage[contains(apiName,'__Global__')]/apiClassifier">
+ <tr>
+ <td>
+ <a href="package-detail.html" onclick="javascript:loadClassListFrame('class-list.html');">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'TopLevel']]/entry[2]/p"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:for-each select="document($ditaFileName)/apiPackage[apiClassifier or apiOperation or apiValue]">
+ <xsl:sort select="apiName" order="ascending" lang="en-US"/>
+ <xsl:variable name="name" select="apiName"/>
+ <xsl:variable name="isTopLevel">
+ <xsl:call-template name="isTopLevel">
+ <xsl:with-param name="packageName" select="$name"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <tr>
+ <td>
+ <xsl:if test="$isTopLevel='false'">
+ <xsl:variable name="packagePath" select="translate($name,'.','/')"/>
+ <a href="{$packagePath}/package-detail.html" onclick="javascript:loadClassListFrame('{$packagePath}/class-list.html');">
+ <xsl:value-of select="$name"/>
+ </a>
+ <xsl:if test="position() != last()">
+ <br/>
+ </xsl:if>
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:for-each>
+ </table>
+ <xsl:if test="$config/languageElements[@show='true']">
+ <h3>
+ <a href="language-elements.html" style="color:black">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'LanguageElements']]/entry[2]/p"/>
+ </a>
+ </h3>
+ <table cellpadding="0" cellspacing="0">
+ <xsl:if test="$config/languageElements[@directives='true']">
+ <tr>
+ <td>
+ <a href="directives.html">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'CompilerDirectives']]/entry[2]/p"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="$config/languageElements[@constants='true']">
+ <tr>
+ <td>
+ <xsl:if test="$config/options[@docversion='3']">
+ <a href="package.html#constantSummary">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'GlobalConstants']]/entry[2]/p"/>
+ </a>
+ </xsl:if>
+ <xsl:if test="not($config/options[@docversion='3'])">
+ <a href="constants.html">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'GlobalConstants']]/entry[2]/p"/>
+ </a>
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="$config/languageElements[@functions='true']">
+ <tr>
+ <td>
+ <xsl:if test="$config/options[@docversion='3']">
+ <a href="package.html#methodSummary">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'GlobalFunctions']]/entry[2]/p"/>
+ </a>
+ </xsl:if>
+ <xsl:if test="not($config/options[@docversion='3'])">
+ <a href="global_functions.html">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'GlobalFunctions']]/entry[2]/p"/>
+ </a>
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="$config/languageElements[@properties='true']">
+ <tr>
+ <td>
+ <a href="global_props.html">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'GlobalProperties']]/entry[2]/p"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="$config/languageElements[@operators='true']">
+ <tr>
+ <td>
+ <a href="operators.html">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Operators']]/entry[2]/p"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="$config/languageElements[@statements='true']">
+ <tr>
+ <td>
+ <a href="statements.html">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'StatementsKeywordsDirectives']]/entry[2]/p"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="$config/languageElements[@specialTypes='true']">
+ <tr>
+ <td>
+ <a href="specialTypes.html">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'SpecialTypes']]/entry[2]/p"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:for-each select="$config/languageElements/element">
+ <tr>
+ <td>
+ <a href="{@href}" onclick="{@onclick}">
+ <xsl:value-of select="@label"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:if>
+ <xsl:if test="$config/appendixes[@show='true']">
+ <h3>
+ <a href="appendixes.html" style="color:black">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Appendix']]/entry[2]/p"/>
+ </a>
+ </h3>
+ <table cellpadding="0" cellspacing="0">
+ <xsl:if test="$config/appendixes[@deprecated='true']">
+ <tr>
+ <td>
+ <a href="deprecated.html">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Deprecated']]/entry[2]/p"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:for-each select="$config/appendixes/appendix">
+ <tr>
+ <td>
+ <a href="{@href}" onclick="{@onclick}">
+ <xsl:value-of select="$asdoc_terms/row[entry[1]/p = current()/@label]/entry[2]//p"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:if>
+ </body>
+ </xsl:element>
+ <xsl:copy-of select="$copyrightComment"/>
+ </xsl:template>
+</xsl:stylesheet>
Propchange: incubator/flex/trunk/asdoc/templates/package-list.xslt
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/flex/trunk/asdoc/templates/package-summary.xslt
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/asdoc/templates/package-summary.xslt?rev=1309036&view=auto
==============================================================================
--- incubator/flex/trunk/asdoc/templates/package-summary.xslt (added)
+++ incubator/flex/trunk/asdoc/templates/package-summary.xslt Tue Apr 3 16:52:07 2012
@@ -0,0 +1,217 @@
+<?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:import href="asdoc-util.xslt"/>
+ <xsl:output encoding="UTF-8" method="html" use-character-maps="disable"/>
+ <xsl:param name="localTitle" select="$localTitle"/>
+ <xsl:variable name="title" select="concat($asdoc_terms/row[entry[1][p/text() = $localTitle]]/entry[2]/p,' - ',$title-base)"/>
+ <xsl:param name="overviewsFile" select="'overviews.xml'"/>
+ <xsl:param name="ditaFileDir" select="''"/>
+ <xsl:param name="filter" select="'*'"/>
+ <xsl:param name="outfile" select="'package-summary'"/>
+ <xsl:param name="packages_map_name" select="'packagemap.xml'"/>
+ <xsl:param name="jslr" select="'flashclasses.xml'"/>
+ <xsl:param name="prog_language_name" select="''"/>
+ <xsl:variable name="useFilter">
+ <xsl:if test="contains($filter,'*')">
+ <xsl:value-of select="substring-before($filter,'*')"/>
+ </xsl:if>
+ <xsl:if test="not(contains($filter,'*'))">
+ <xsl:value-of select="$filter"/>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:template match="/">
+ <xsl:copy-of select="$noLiveDocs"/>
+ <xsl:copy-of select="$docType"/>
+ <xsl:value-of select="$markOfTheWeb"/>
+ <xsl:if test="$config/options[@livedocs='true']">
+ <xsl:comment>#config errmsg=""</xsl:comment>
+ </xsl:if>
+ <xsl:element name="html">
+ <head>
+ <title>
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = $localTitle]]/entry[2]/p"/>
+ <xsl:call-template name="getPageTitlePostFix"/>
+ </title>
+ <xsl:call-template name="getStyleLink">
+ <xsl:with-param name="link" select="asdoc/link"/>
+ </xsl:call-template>
+ </head>
+ <xsl:element name="body">
+ <xsl:if test="$isEclipse">
+ <xsl:attribute name="class">
+ <xsl:text>eclipseBody</xsl:text>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:call-template name="getTitleScript">
+ <xsl:with-param name="title" select="$title"/>
+ </xsl:call-template>
+ <xsl:call-template name="getLinks2">
+ <xsl:with-param name="subTitle">
+ <xsl:call-template name="search-and-replace">
+ <xsl:with-param name="input" select="$asdoc_terms/row[entry[1][p/text() = $localTitle]]/entry[2]/p"/>
+ <xsl:with-param name="search-string" select="' '"/>
+ <xsl:with-param name="replace-string" select="$nbsp"/>
+ </xsl:call-template>
+ </xsl:with-param>
+ <xsl:with-param name="fileName" select="$outfile"/>
+ <xsl:with-param name="showProperties" select="false()"/>
+ <xsl:with-param name="showMethods" select="false()"/>
+ <xsl:with-param name="showPackages" select="false()"/>
+ </xsl:call-template>
+ <div class="MainContent">
+ <br/>
+ <xsl:variable name="overviews" select="document($overviewsFile)/overviews"/>
+ <p>
+ <xsl:choose>
+ <xsl:when test="starts-with($useFilter,'mx.')">
+ <xsl:value-of disable-output-escaping="yes" select="$overviews/mx-packages/description/."/>
+ </xsl:when>
+ <xsl:when test="starts-with($useFilter,'flash.')">
+ <xsl:value-of disable-output-escaping="yes" select="$overviews/flash-packages/description/."/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of disable-output-escaping="yes" select="$overviews/all-packages/description/."/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </p>
+ <xsl:for-each select="$overviews/all-packages">
+ <xsl:call-template name="sees">
+ <xsl:with-param name="xrefId" select="'all-packages'"/>
+ </xsl:call-template>
+ </xsl:for-each>
+ <br/>
+ <table cellpadding="3" cellspacing="0" class="summaryTable">
+ <tr>
+ <th>
+ <xsl:value-of select="$nbsp"/>
+ </th>
+ <th width="30%">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Package']]/entry[2]/p"/>
+ </th>
+ <th width="70%">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'Description']]/entry[2]/p"/>
+ </th>
+ </tr>
+ <xsl:choose>
+ <xsl:when test="$prog_language_name='javascript'"/>
+
+ <xsl:otherwise>
+ <xsl:for-each select="apiMap//apiItemRef">
+ <xsl:sort select="substring(@href, 0, string-length(@href)-4)" order="ascending"/>
+ <xsl:variable name="ditaFileName">
+ <xsl:value-of select="concat($ditaFileDir,@href)"/>
+ </xsl:variable>
+ <xsl:variable name="rowNumber" select="concat('prow',position() mod 2)"/>
+ <xsl:for-each select="document($ditaFileName)/apiPackage[starts-with(apiName,$useFilter) or ($useFilter='flash.' and apiName='__Global__')]">
+ <xsl:sort select="apiName" order="ascending"/>
+ <xsl:variable name="name" select="apiName"/>
+ <xsl:variable name="isTopLevel">
+ <xsl:call-template name="isTopLevel">
+ <xsl:with-param name="packageName" select="$name"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:variable name="packageFile">
+ <xsl:if test="$isTopLevel='false'">
+ <xsl:value-of select="translate($name,'.','/')"/>
+ <xsl:text>/</xsl:text>
+ </xsl:if>
+ <xsl:text>package-detail.html</xsl:text>
+ </xsl:variable>
+ <xsl:variable name="classListFile">
+ <xsl:if test="$isTopLevel='false'">
+ <xsl:value-of select="translate($name,'.','/')"/>
+ <xsl:text>/</xsl:text>
+ </xsl:if>
+ <xsl:text>class-list.html</xsl:text>
+ </xsl:variable>
+ <xsl:if test="./apiClassifier or ./apiOperation or ./apiValue/apiProperty">
+ <xsl:variable name="name" select="apiName"/>
+ <tr class="{$rowNumber}">
+ <td class="summaryTablePaddingCol">
+ <xsl:value-of select="$nbsp"/>
+ </td>
+ <td class="summaryTableSecondCol">
+ <a href="{$packageFile}" onclick="javascript:loadClassListFrame('{$classListFile}');">
+ <xsl:if test="$isTopLevel='true'">
+ <xsl:value-of select="$asdoc_terms/row[entry[1][p/text() = 'TopLevel']]/entry[2]/p"/>
+ </xsl:if>
+ <xsl:if test="$isTopLevel='false'">
+ <xsl:value-of select="$name"/>
+ </xsl:if>
+ </a>
+ </td>
+ <td class="summaryTableLastCol">
+ <xsl:if test="not($config/overviews/package)">
+ <xsl:variable name="overview" select="document($overviewsFile)/overviews/packages/package[@name=current()/apiName]"/>
+ <xsl:for-each select="$overview/shortDescription">
+ <xsl:call-template name="deTilda">
+ <xsl:with-param name="inText" select="."/>
+ </xsl:call-template>
+ </xsl:for-each>
+ <xsl:if test="string-length(string-join($overview/shortDescription/., ' '))">
+ <xsl:value-of select="$nbsp"/>
+ </xsl:if>
+ </xsl:if>
+ <xsl:if test="$config/overviews/package">
+ <xsl:variable name="pname" select="ancestor-or-self::apiPackage/apiName"/>
+ <xsl:for-each select="$config/overviews/package">
+ <xsl:variable name="packageOverview" select="normalize-space(document(.)/overviews/packages/package[@name=$pname]/shortDescription/.)"/>
+ <xsl:if test="string-length($packageOverview)">
+ <xsl:call-template name="deTilda">
+ <xsl:with-param name="inText" select="$packageOverview"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:for-each>
+ <xsl:value-of select="$nbsp"/>
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table>
+ <p/>
+ <center class="copyright">
+ <xsl:copy-of select="$copyright"/>
+ </center>
+ </div>
+ <xsl:if test="$config/options[@livedocs='true']">
+ <div class="separator"> </div>
+ <xsl:comment>BEGIN IONCOMMENTS</xsl:comment>
+ <div id="ionComHere"> </div>
+ <xsl:comment>END IONCOMMENTS</xsl:comment>
+ <xsl:comment>#include virtual="ionComments.ssi"</xsl:comment>
+ <p id="creativecommons" class="creativecommons">
+ <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">
+ <img id="creativecommons_img" src="images/CC.png"/>
+ </a>
+ </p>
+ <xsl:comment>#include virtual="/livedocs/googleAnalytics.ssi"</xsl:comment>
+ <xsl:comment>#include virtual="/ubi/analytics/analytics_ssi.html"</xsl:comment>
+ </xsl:if>
+ </xsl:element>
+ </xsl:element>
+ <xsl:copy-of select="$copyrightComment"/>
+ </xsl:template>
+</xsl:stylesheet>
Propchange: incubator/flex/trunk/asdoc/templates/package-summary.xslt
------------------------------------------------------------------------------
svn:eol-style = native