Author: ben
Date: 2007-10-12 14:21:34 -0700 (Fri, 12 Oct 2007)
New Revision: 6830

Added:
   openlaszlo/trunk/docs/src/xsl/simple-driver.xsl
Modified:
   openlaszlo/trunk/
   openlaszlo/trunk/docs/includes/docbook.css
   openlaszlo/trunk/docs/includes/lzx-pretty-print.css
   openlaszlo/trunk/docs/includes/styles.css
   openlaszlo/trunk/docs/src/build.xml
   openlaszlo/trunk/docs/src/xsl/common-html.xsl
   openlaszlo/trunk/docs/src/xsl/js2doc2dbk.xsl
   openlaszlo/trunk/docs/src/xsl/parameters.xsl
   openlaszlo/trunk/docs/src/xsl/refguide-html.xsl
Log:
Change 20071010-ben-0 by [EMAIL PROTECTED] on 2007-10-10 17:26:57 PDT
    in /Users/ben/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Doctools improvements for reference. 

Technical Reviewer: raju (pending)
QA Reviewer: (pending)
Doc Reviewer: sundman (pending)

Documentation:
This change merges paperpie doctools work in to trunk. It makes
the generated documentation look superficially more like the 3.4
documentation. This mostly means filtering out some of the extra
information that had been added to the top of the page in reference 
entries. Several minor CSS changes have been made to match the 
look of the old documentation better. 

This does not yet list *all* the inherited attributes, methods, and 
events, but it gets *most* of the obvious ones.

Release Notes:

Details:
   docs/src/build.xml
      Turned up maximum memory to 1024m, which makes build go faster. 
      Made major doc build step be less verbose. 

   docs/src/xsl/js2doc2dbk.xsl
      Commented out some code I don't understand from jgrandy.
      Simplified information displayed at top of page. Moved
      where we list superclasses to match 3.4 doc. Added
      headings (Description, Attributes, Methods, Events) to match
      3.4 docs. Added xsl to create listing of inherited attributes,
      methods, and events,  with links to the reference for that member
      in the superclasses, in each reference entry. Reversed
      order of superclass chain listing, now goes from subclass
      to superclass. Took out
      xsl to generate info on class access, deprecated, preliminary,
      build flags, which file it's declared in. 
      
  docs/src/xsl/common-html.xsl
      Turned on "fixme" display. 
      
  docs/src/xsl/refguide-html.xsl 
      Changed first thing on page to be  name of tag, displayed 
      with angle brackets. Made the "purpose" be the second thing
      on the page, to match 3.4 docs. 
      
  docs/src/xsl/parameters.xsl      
      Configured docbook to not show up/next/prev/home stuff
      at top of each page, and other small cosmetic stuff in html
      output. 
      
   docs/includes/lzx-pretty-print.css      
   docs/includes/docbook.css          
   docs/includes/styles.css     
      Cosmetic changes to make the 4.1 docs look more like the 3.4
      docs. 
   
   
   

Tests:
ant clean; ant build doc 
passes. 
Pages in the reference still look decent, for instance:
http://localhost:8080/trunk/docs/reference/LzAnimator.html




Property changes on: openlaszlo/trunk
___________________________________________________________________
Name: svnmerge-integrated
   - /openlaszlo/branches/paperpie:1-6504 
/openlaszlo/branches/wafflecone:1-5746,5818-6068,6070-6205,6207-6213,6216-6265,6267-6368,6370-6431,6433-6450,6497,6661
 
/openlaszlo/trunk:1-3892,3894-3952,3954-4393,4395-4461,4463-4467,4469-4471,4473-5085,5087-5171,5173-5203,5205-5209,5211-5331,5333-5334
   + /openlaszlo/branches/paperpie:1-6504,6506-6574,6576-6795,6798-6801 
/openlaszlo/branches/wafflecone:1-5746,5818-6068,6070-6205,6207-6213,6216-6265,6267-6368,6370-6431,6433-6450,6497,6661
 
/openlaszlo/trunk:1-3892,3894-3952,3954-4393,4395-4461,4463-4467,4469-4471,4473-5085,5087-5171,5173-5203,5205-5209,5211-5331,5333-5334

Modified: openlaszlo/trunk/docs/includes/docbook.css
===================================================================
--- openlaszlo/trunk/docs/includes/docbook.css  2007-10-12 20:19:20 UTC (rev 
6829)
+++ openlaszlo/trunk/docs/includes/docbook.css  2007-10-12 21:21:34 UTC (rev 
6830)
@@ -6,12 +6,17 @@
 
 @import "styles.css";
 
-div.book, div.chapter, div.part, div.preface, div.appendix, div.index, 
div.glossary, div.refentry, div.reference {
-    padding-left : 60;
+div.book, div.chapter, div.part, div.preface, div.appendix, div.index, 
div.glossary,  div.reference {
+    padding-left : 10;
     padding-top : 20;
-    padding-right : 100;  
+    padding-right : 10;
 }
 
+div.refentry {
+    padding-left : 10;
+    padding-right : 10;
+}
+
 .toc .section {
     font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
     font-size : 12px;
@@ -26,9 +31,9 @@
     padding-left : 30px;
 }
 
-h1 { margin-left : -45; }
-h2 { margin-left: -30; }
-h3 { margin-left : -15; }
+h1 { margin-left : 0; }
+h2 { margin-left: 0; }
+h3 { margin-left : 0; }
 
 td { 
     vertical-align: top;
@@ -44,26 +49,29 @@
 }
 
 .refnamediv {
-    float: left;
+  margin-top: 20px;
+  margin-bottom: 30px;
 }
 
 .refsynopsisdiv {
-    float: right;
+    position: relative;
+    left:60%;
     max-width: 40%;
-    margin: 5pt;
+    margin-top: -80px;
     padding: 5pt;
-    border: 1px solid #7b839a;
-    background-color: #E0E0E0;
+    text-align: right; 
 }
 
 .refsynopsisdiv h2 {
     margin-left: 0px;
     font-size: 12px;
-    border-bottom: solid 1px #7b839a;
     margin-top: 5px;
     margin-bottom: 5px;
 }
 
+.refsynopsisdiv .term {
+    font-style: normal;
+}
 .indexdiv dl dd {
     padding-bottom: inherit;
 }
@@ -107,16 +115,33 @@
     background-color: #5b607c;
 }
 
-.variablelist dd {
-    border-bottom: solid 1px #e5e5e5
-}
-
 /* Refentry */
 
 .refsect3 {
     margin-top: 7pt;
 }
 
+.refsect2 h3 {
+    margin-top: 0px;
+    background-color:#DDDDFF;
+    color:#333333;
+    font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;
+    font-size:13px;
+    font-weight:bold;
+    padding-left: 3px;
+    padding-top: 3px;
+}
+
+.refsect2 {
+  border: 1px solid #7b839a ;
+  margin:5px;
+}
+
+.refsect2 p {
+  padding-left: 3px;
+  padding-right: 3px;
+}
+
 /* Segmented Lists */
 
 .segmentedlist > .title {

Modified: openlaszlo/trunk/docs/includes/lzx-pretty-print.css
===================================================================
--- openlaszlo/trunk/docs/includes/lzx-pretty-print.css 2007-10-12 20:19:20 UTC 
(rev 6829)
+++ openlaszlo/trunk/docs/includes/lzx-pretty-print.css 2007-10-12 21:21:34 UTC 
(rev 6830)
@@ -17,8 +17,20 @@
 .comment-markup {color: gray; }
 .constraint-markup {color: gray}
 .constraint-expression {color: red}
+.literal {
+    background-color: #eaeaea;
+    font-family: "Courier New",Courier,monospace;
+    font-size: 13;
+}
 
-/* Next two styles, .warningheader and .warningheader a, 
+.refpurpose {
+    margin-top: 20px;
+    font-style: italic;
+    font-size: 12px;
+    font-weight: normal;
+}
+
+/* Next two styles, .warningheader and .warningheader a,
 are for the in-progress tag for the OL4.0.5 reference only. 
 After 4.0.5, these can be deleted. [bshine 2007.08.30] 
 Bug LPP-4539. */

Modified: openlaszlo/trunk/docs/includes/styles.css
===================================================================
--- openlaszlo/trunk/docs/includes/styles.css   2007-10-12 20:19:20 UTC (rev 
6829)
+++ openlaszlo/trunk/docs/includes/styles.css   2007-10-12 21:21:34 UTC (rev 
6830)
@@ -18,11 +18,12 @@
 }
 
 h1 {
-    font-size : 18px;
+    font-size : 20px;
 }
 
 h2 {
-    font-size : 16px;
+    font-size : 18px;
+    margin-bottom: 20px;
 }
 
 h3 {
@@ -252,7 +253,7 @@
 
 /* Code ******************************************* */
 
-.code, .program, .fragment, tt {
+.code, .program, .fragment, tt, .varname {
     font-family : "Courier New", Courier, monospace;
     font-size : 13px;
     font-weight : bold;

Modified: openlaszlo/trunk/docs/src/build.xml
===================================================================
--- openlaszlo/trunk/docs/src/build.xml 2007-10-12 20:19:20 UTC (rev 6829)
+++ openlaszlo/trunk/docs/src/build.xml 2007-10-12 21:21:34 UTC (rev 6830)
@@ -208,7 +208,7 @@
     <java classname="com.icl.saxon.StyleSheet"
           fork="yes"
           failonerror="yes"
-          maxmemory="512m">
+          maxmemory="1024m">
       <classpath refid="saxon.processor.classpath"/>
       <jvmarg 
value="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
       <jvmarg 
value="-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
@@ -383,7 +383,7 @@
           unless="lfc.js2doc.uptodate">
 
     <mkdir dir="${js2doc.build.dir}" />
-    <property name="js2doc.args" value="-v --dir ${js2doc.build.dir} 
${lfc.src.dir}/LaszloLibrary.lzs" />
+    <property name="js2doc.args" value="--dir ${js2doc.build.dir} 
${lfc.src.dir}/LaszloLibrary.lzs" />
     <ant dir="${lps.server.dir}" target="js2doc" />
 
   </target>
@@ -412,7 +412,7 @@
   </target>
 
   <target name="lfc.js2doc.clean" depends="init">
-    <delete failonerror="false" file="${js2doc.build.dir}" />
+    <delete failonerror="false" dir="${js2doc.build.dir}" />
   </target>
 
   <target name="lzx2js2doc.transform" depends="init,docbook.catalog.generate">

Modified: openlaszlo/trunk/docs/src/xsl/common-html.xsl
===================================================================
--- openlaszlo/trunk/docs/src/xsl/common-html.xsl       2007-10-12 20:19:20 UTC 
(rev 6829)
+++ openlaszlo/trunk/docs/src/xsl/common-html.xsl       2007-10-12 21:21:34 UTC 
(rev 6830)
@@ -38,7 +38,7 @@
   <!-- class of html body element -->
   <xsl:param name="html.body.class"/>
   <!-- Show fixmes if true -->
-  <xsl:param name="show.fixmes" select="0"/>
+  <xsl:param name="show.fixmes" select="1"/>
 
   <xsl:param name="textdata.default.encoding"/>
   

Modified: openlaszlo/trunk/docs/src/xsl/js2doc2dbk.xsl
===================================================================
--- openlaszlo/trunk/docs/src/xsl/js2doc2dbk.xsl        2007-10-12 20:19:20 UTC 
(rev 6829)
+++ openlaszlo/trunk/docs/src/xsl/js2doc2dbk.xsl        2007-10-12 21:21:34 UTC 
(rev 6830)
@@ -21,8 +21,8 @@
 <!ENTITY privateslot    '(@name="prototype" or @name="__ivars__" or 
@name="dependencies" or @name="setters" or @name="tagname")'>
 
 ]>
-
-<xsl:stylesheet version="1.0" 
+        
+<xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
 
     <xsl:import href="js2doc-comment2dbk.xsl"/>
@@ -54,7 +54,7 @@
         <xsl:if test="count($decls) > 0">
           <reference id="{$topicid}" xreflabel="{$topicdesc}">
             <title><xsl:value-of select="$subtopic"/></title>
-            <xsl:message><xsl:value-of select="concat('found ', count($decls), 
' visible items in ', $topicdesc)"/></xsl:message>
+            <!-- [bshine commenting out jgrandy code with unknown purpose 
10.07.2007] <xsl:message><xsl:value-of select="concat('found ', count($decls), 
' visible items in ', $topicdesc)"/></xsl:message> -->
             <xsl:for-each select="$decls">
               <xsl:sort select="translate(@id,'_$','  ')"/>
               <xsl:apply-templates select="." mode="refentry"/>
@@ -78,7 +78,7 @@
         </reference>
       </xsl:if>
     </xsl:template>
-        
+                                                      
     <xsl:template name="files-all">
       <reference><title>Files</title>
         <xsl:variable name="units" select="//unit"/>
@@ -100,7 +100,7 @@
       <xsl:variable name="desc">
         <xsl:apply-templates select="." mode="desc"/>
       </xsl:variable>
-      
+        
       <refentry id="[EMAIL PROTECTED]" xreflabel="{$desc}">
         <xsl:if test="$lzxname"><anchor 
id="{concat('tag.',$lzxname)}"/></xsl:if>
         <refmeta>
@@ -120,21 +120,11 @@
           </xsl:if>
         </refnamediv>
         <refsynopsisdiv>
-          <xsl:call-template name="insert-refinfo"/>
+           <xsl:call-template name="insert-refinfo"/>
         </refsynopsisdiv>
-        <xsl:call-template name="declaration-description"/>
-        <xsl:if test="child::class">
-          <refsect1><title>Superclass Chain</title>
-            <xsl:call-template name="describe-superclass-chain">
-              <xsl:with-param name="class" select="child::class"/>
-            </xsl:call-template>
-          </refsect1>
-          <refsect1><title>Known Subclasses</title>
-            <xsl:call-template name="describe-known-subclasses"/>
-          </refsect1>
-        </xsl:if>
+        <xsl:call-template name="declaration-description"/>        
         <xsl:apply-templates select="." mode="refentry-details"/>
-        <xsl:apply-templates select="." mode="detailed-synopsis"/>
+        <xsl:apply-templates select="." mode="detailed-synopsis"/>             
   
       </refentry>
     </xsl:template>
     
@@ -188,7 +178,7 @@
         </refsect1>
       </xsl:if>
       <xsl:if test="doc/text">
-        <refsect1><title>Description</title>
+        <refsect1>
           <xsl:apply-templates select="doc/text" mode="doc2dbk"/>
         </refsect1>
       </xsl:if>
@@ -203,7 +193,7 @@
     
     <xsl:template match="property" mode="refentry-details">
       <refsect1>
-        <title>Details</title>
+        <title>Details</title> 
 
         <xsl:variable name="jsname" select="@name"/>
         <xsl:variable name="lzxname" select="&tagname;"/>
@@ -252,9 +242,14 @@
         <!-- Properties -->        
         <xsl:call-template name="describe-members">
           <xsl:with-param name="members" select="$ivars"/>
-          <xsl:with-param name="title" select="'Properties'"/>
+          <xsl:with-param name="title" select="'Attributes'"/>
         </xsl:call-template>
-
+        
+        <!-- Inherited Attributes --> 
+        <xsl:call-template name="describe-inherited-attributes">
+          <xsl:with-param name="class" select="class"></xsl:with-param>
+        </xsl:call-template>
+        
         <!-- Setters -->        
         <xsl:call-template name="describe-members">
           <xsl:with-param name="members" select="$svars"/>
@@ -271,12 +266,22 @@
           <xsl:with-param name="members" select="$pvars[child::function]"/>
           <xsl:with-param name="title" select="'Methods'"/>
         </xsl:call-template>
+        
+        <!-- Inherited Methods --> 
+        <xsl:call-template name="describe-inherited-methods">
+          <xsl:with-param name="class" select="class"></xsl:with-param>
+        </xsl:call-template>            
 
         <!-- (Prototype) Events -->        
         <xsl:call-template name="describe-members">
           <xsl:with-param name="members" select="[EMAIL PROTECTED]'LzEvent']"/>
           <xsl:with-param name="title" select="'Events'"/>
         </xsl:call-template>
+        
+        <!-- Inherited Events --> 
+        <xsl:call-template name="describe-inherited-events">
+          <xsl:with-param name="class" select="class"></xsl:with-param>
+        </xsl:call-template>    
 
         <!-- Prototype Properties -->
         <xsl:call-template name="describe-members">
@@ -536,11 +541,10 @@
     </xsl:template>
     
     <xsl:template name="describe-superclass-chain">
-      <xsl:param name="class"/>
+      <xsl:param name="class"/>       
       <xsl:call-template name="describe-superclass-chain-inner">
         <xsl:with-param name="class" select="$class"/>
-      </xsl:call-template>
-      <xsl:call-template name="classlabel"/>
+      </xsl:call-template>      
     </xsl:template>
     
     <xsl:template name="describe-superclass-chain-inner">
@@ -550,11 +554,11 @@
       <xsl:if test="$superclass">
         <xsl:choose>
           <xsl:when test="contains($visibility.filter, $superclass/@access)">
+            <xref linkend="{$superclass/@id}"/>
+            <xsl:text>&nbsp;&raquo; </xsl:text>            
             <xsl:call-template name="describe-superclass-chain-inner">
               <xsl:with-param name="class" select="$superclass/class"/>
-            </xsl:call-template>
-            <xref linkend="{$superclass/@id}"/>
-            <xsl:text>&nbsp;&raquo; </xsl:text>
+            </xsl:call-template>            
           </xsl:when>
           <xsl:otherwise>
             <xsl:value-of select="($superclass/@name | $superclass/doc/[EMAIL 
PROTECTED]'lzxname']/text)[1]"/>
@@ -689,51 +693,23 @@
     <xsl:template name="insert-refinfo">
       <variablelist>
       
-        <xsl:if test="&tagname;">
-          <varlistentry><term>LZX: <xsl:value-of 
select="&tagname;"/></term></varlistentry>
-        </xsl:if>
-        
         <xsl:if test="@name">
           <varlistentry><term>JavaScript: <xsl:value-of 
select="@name"/></term></varlistentry>
         </xsl:if>
 
-        <xsl:variable name="decltype"><xsl:apply-templates select="." 
mode="type"/></xsl:variable>
-        <xsl:if test="$decltype and $decltype != ''">
-          <varlistentry><term>Type: <xsl:value-of 
select="$decltype"/></term></varlistentry>
-        </xsl:if>
-
-        <varlistentry><term>Access: <xsl:apply-templates select="." 
mode="access"/></term></varlistentry>
-
-        <xsl:if test="contains(@keywords, 'deprecated') or contains(@keywords, 
'preliminary') or contains(@keywords, 'beta')">
-          <varlistentry><term>
-          <xsl:text>Status:</xsl:text>
-          <xsl:if test="contains(@keywords, 
'deprecated')">&nbsp;Deprecated</xsl:if>
-          <xsl:if test="contains(@keywords, 'preliminary') or 
contains(@keywords, 'beta')">&nbsp;Preliminary</xsl:if>
-          </term></varlistentry>
-        </xsl:if>
-
         <xsl:if test="@runtimes">
           <varlistentry><term>Runtimes: <xsl:value-of 
select="@runtimes"/></term></varlistentry>
         </xsl:if>
 
-        <xsl:if test="@includebuilds">
-          <varlistentry><term>Build Flags: <xsl:value-of 
select="@includebuilds"/></term></varlistentry>
+        <xsl:if test="child::class">
+          <refsect1>            
+            <xsl:text>Extends </xsl:text>
+            <xsl:call-template name="describe-superclass-chain">
+              <xsl:with-param name="class" select="child::class"/>
+            </xsl:call-template>
+          </refsect1>
         </xsl:if>
-
-        <xsl:variable name="topic" select="@topic"/>
-        <xsl:variable name="subtopic" select="@subtopic"/>
-        <xsl:if test="$topic">
-          <varlistentry><term>Topic: <xref 
linkend="{translate(concat('topic.',$topic,'.',$subtopic),' 
','_')}"/></term></varlistentry>
-        </xsl:if>
-
-        <xsl:variable name="parentid" select="@unitid"/>
-        <xsl:if test="$parentid">
-          <xsl:variable name="visibility"><xsl:value-of 
select="key('id',$parentid)/@access"/></xsl:variable>
-          <xsl:if test="contains($visibility.filter, $visibility)">
-            <varlistentry><term>Declared in: <xref 
linkend="{$parentid}"/></term></varlistentry>
-          </xsl:if>
-        </xsl:if>
-
+        
 <?ignore
         <!-- need to turn path into webapp url, not sure how to do that -->
         <xsl:variable name="path" select="@path"/>
@@ -749,10 +725,9 @@
     <xsl:template name="classlabel">
       <xsl:choose>
         <xsl:when test="&tagname;">
+          <xsl:text>&lt;</xsl:text>
           <xsl:value-of select="&tagname;"/>
-          <xsl:if test="@name and not(starts-with(@name,'lz.'))">
-            <xsl:text>&nbsp;(</xsl:text><xsl:value-of 
select="@name"/><xsl:text>)</xsl:text>
-          </xsl:if>
+          <xsl:text>&gt;</xsl:text>
         </xsl:when>
         <xsl:when test="@name">
           <xsl:value-of select="@name"/>
@@ -763,5 +738,135 @@
         </xsl:otherwise>
       </xsl:choose>
     </xsl:template>
+  
+  <xsl:template name="describe-inherited-attributes">
+    <xsl:param name="class"/>        
     
+    <xsl:variable name="jsname" select="@name"/>
+    <xsl:variable name="lzxname" select="&tagname;"/>
+    
+    <xsl:variable name="extends" select="$class/@extends"/>
+    <xsl:variable name="superclass" select="(key('id',$extends) | 
key('name-lzx',$extends))[1]"/>
+    <xsl:if test="$superclass">
+      <refsect2>
+        <title>
+          <xsl:text>Attributes inherited from&nbsp;</xsl:text>
+          <link linkend="{$superclass/@id}">
+            <xsl:text>&lt;</xsl:text>
+            <xsl:value-of select="$superclass/doc/[EMAIL 
PROTECTED]'lzxname']/text"/>
+            <xsl:text>&gt;</xsl:text>
+          </link>
+        </title>
+        <para>
+          <xsl:variable name="inheritedattrs" select="$superclass/class/[EMAIL 
PROTECTED]'__ivars__']/object/[EMAIL PROTECTED]'public']"></xsl:variable>
+          <xsl:variable name="initargs" select="$superclass/class/[EMAIL 
PROTECTED]'public']"></xsl:variable>
+          <xsl:variable name="allinheritedattrs" select="$inheritedattrs | 
$initargs" />
+          <xsl:for-each select="$allinheritedattrs">
+            <xsl:sort select="@name"/>            
+            <link linkend="[EMAIL PROTECTED]"><xsl:value-of 
select="@name"/></link>
+            <xsl:text>, </xsl:text>
+          </xsl:for-each>
+          <xsl:for-each select="$initargs">     
+            <xsl:sort select="@name"/>            
+            <link linkend="[EMAIL PROTECTED]"><xsl:value-of 
select="@name"/></link>
+            <xsl:text>, </xsl:text>
+          </xsl:for-each>                               
+        </para>
+      </refsect2>                  
+      <xsl:choose>
+        <xsl:when test="contains($visibility.filter, $superclass/@access)">
+          <xsl:call-template name="describe-inherited-attributes">
+            <xsl:with-param name="class" select="$superclass/class"/>
+          </xsl:call-template>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="($superclass/@name | $superclass/doc/[EMAIL 
PROTECTED]'lzxname']/text)[1]"/>
+          <xsl:text>&nbsp;(private)&nbsp;&raquo; </xsl:text>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:if>              
+  </xsl:template>  
+  
+  <xsl:template name="describe-inherited-methods">
+    <xsl:param name="class"/>        
+    
+    <xsl:variable name="jsname" select="@name"/>
+    <xsl:variable name="lzxname" select="&tagname;"/>
+    
+    <xsl:variable name="extends" select="$class/@extends"/>
+    <xsl:variable name="superclass" select="(key('id',$extends) | 
key('name-lzx',$extends))[1]"/>
+    <xsl:if test="$superclass">
+      <xsl:variable name="inheritedmethods" 
select="$superclass/class/property/object/[EMAIL 
PROTECTED]'public']/function"></xsl:variable>
+      <refsect2>
+        <title>
+          <xsl:text>Methods inherited from&nbsp;</xsl:text>          
+          <link linkend="{$superclass/@id}">
+            <xsl:text>&lt;</xsl:text>            
+            <xsl:value-of select="$superclass/doc/[EMAIL 
PROTECTED]'lzxname']/text"/>
+            <xsl:text>&gt;</xsl:text>            
+          </link>
+        </title>
+        <para>
+          <xsl:for-each select="$inheritedmethods">
+            <xsl:sort select="../@name"/>            
+            <link linkend="{../@id}"><xsl:value-of select="../@name"/></link>
+            <xsl:text>, </xsl:text>
+          </xsl:for-each>
+        </para>
+      </refsect2>
+      <xsl:choose>
+        <xsl:when test="contains($visibility.filter, $superclass/@access)">
+          <xsl:call-template name="describe-inherited-methods">
+            <xsl:with-param name="class" select="$superclass/class"/>
+          </xsl:call-template>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="($superclass/@name | $superclass/doc/[EMAIL 
PROTECTED]'lzxname']/text)[1]"/>
+          <xsl:text>&nbsp;(private)&nbsp;&raquo; </xsl:text>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:if>        
+  </xsl:template>  
+  
+  
+  <xsl:template name="describe-inherited-events">
+    <xsl:param name="class"/>        
+    
+    <xsl:variable name="jsname" select="@name"/>
+    <xsl:variable name="lzxname" select="&tagname;"/>
+    
+    <xsl:variable name="extends" select="$class/@extends"/>
+    <xsl:variable name="superclass" select="(key('id',$extends) | 
key('name-lzx',$extends))[1]"/>
+    <xsl:if test="$superclass">  
+      <xsl:variable name="inheritedevents" 
select="$superclass/class/property/object/[EMAIL PROTECTED]'LzEvent' and 
&ispublic;]"></xsl:variable>
+      <refsect2>
+        <title>
+          <xsl:text>Events inherited from&nbsp;</xsl:text>
+          <link linkend="{$superclass/@id}">
+            <xsl:text>&lt;</xsl:text>            
+            <xsl:value-of select="$superclass/doc/[EMAIL 
PROTECTED]'lzxname']/text"/>
+            <xsl:text>&gt;</xsl:text>            
+          </link>
+        </title>
+        <para>
+          <xsl:for-each select="$inheritedevents">
+            <xsl:sort select="@name" />
+            <link linkend="[EMAIL PROTECTED]"><xsl:value-of 
select="@name"/></link>
+            <xsl:text>, </xsl:text>
+          </xsl:for-each>
+        </para>
+      </refsect2>
+      <xsl:choose>
+        <xsl:when test="contains($visibility.filter, $superclass/@access)">
+          <xsl:call-template name="describe-inherited-events">
+            <xsl:with-param name="class" select="$superclass/class"/>
+          </xsl:call-template>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="($superclass/@name | $superclass/doc/[EMAIL 
PROTECTED]'lzxname']/text)[1]"/>
+          <xsl:text>&nbsp;(private)&nbsp;&raquo; </xsl:text>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:if>        
+  </xsl:template>    
 </xsl:stylesheet>
\ No newline at end of file

Modified: openlaszlo/trunk/docs/src/xsl/parameters.xsl
===================================================================
--- openlaszlo/trunk/docs/src/xsl/parameters.xsl        2007-10-12 20:19:20 UTC 
(rev 6829)
+++ openlaszlo/trunk/docs/src/xsl/parameters.xsl        2007-10-12 21:21:34 UTC 
(rev 6830)
@@ -50,6 +50,12 @@
   <!-- Miscellaneous -->
   <xsl:param name="show.comments">1</xsl:param>
 
+   <!-- Reference appearance -->
+   <xsl:param name="navig.showtitles">0</xsl:param>
+   <xsl:param name="suppress.header.navigation">1</xsl:param>
+   <xsl:param name="suppress.navigation">1</xsl:param>    
+
+
   <xsl:param name="generate.toc">
     set       toc,title,index
     book      toc,title,figure,table,example,equation,refentry

Modified: openlaszlo/trunk/docs/src/xsl/refguide-html.xsl
===================================================================
--- openlaszlo/trunk/docs/src/xsl/refguide-html.xsl     2007-10-12 20:19:20 UTC 
(rev 6829)
+++ openlaszlo/trunk/docs/src/xsl/refguide-html.xsl     2007-10-12 21:21:34 UTC 
(rev 6830)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc.  All Rights Reserved.                   *
+* Copyright 2006-2007 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
@@ -13,11 +13,42 @@
 
   <!-- change to 1 to turn off refentry metadata consistency checking.
        This is supposed to speed up build considerably, but on my machine
-       didn't make an appreciable difference. -->
+       didn't make an appreciable difference. -->  
   <xsl:param name="refentry.meta.get.quietly" select="0"/>
   
   <xsl:param name="man.indent.refsect" select="1"/>
 
   <xsl:param name="linenumbering.extension.frag" select="0"/>
 
+    <xsl:template match="refnamediv">
+        <div class="{name(.)}">
+            <xsl:call-template name="dir">
+                <xsl:with-param name="inherit" select="1"/>
+            </xsl:call-template>
+            <xsl:call-template name="anchor"/>
+            <!-- Just show the name of the tag, not "Name: " -->
+            <h2><xsl:apply-templates/></h2>
+        </div>
+    </xsl:template>
+
+
+    <xsl:template match="refpurpose">
+        <xsl:if test="node()">
+            <div class="refpurpose">
+                <xsl:apply-templates/>
+            </div>
+        </xsl:if>
+    </xsl:template>
+
+    <xsl:template match="refsynopsisdiv">
+        <div class="{name(.)}">
+            <xsl:call-template name="dir">
+                <xsl:with-param name="inherit" select="1"/>
+            </xsl:call-template>
+            <xsl:call-template name="anchor"/>
+            <xsl:apply-templates/>
+        </div>
+    </xsl:template>
+
+
 </xsl:stylesheet>
\ No newline at end of file

Copied: openlaszlo/trunk/docs/src/xsl/simple-driver.xsl (from rev 6773, 
openlaszlo/branches/paperpie/docs/src/xsl/simple-driver.xsl)


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to