Author: steveh
Date: Thu Aug 5 10:45:52 2004
New Revision: 35750
Added:
incubator/beehive/trunk/netui/docs/tools/
incubator/beehive/trunk/netui/docs/tools/lib/
incubator/beehive/trunk/netui/docs/tools/lib/jsptagrefdoclet.jar
(contents, props changed)
incubator/beehive/trunk/netui/docs/tools/lib/jsptagrefschema.jar
(contents, props changed)
incubator/beehive/trunk/netui/docs/tools/static_files/
incubator/beehive/trunk/netui/docs/tools/static_files/index.html
(contents, props changed)
incubator/beehive/trunk/netui/docs/tools/static_files/stylesheet.css
(contents, props changed)
incubator/beehive/trunk/netui/docs/tools/xslt/
incubator/beehive/trunk/netui/docs/tools/xslt/alltaglibs-frame.xslt
incubator/beehive/trunk/netui/docs/tools/xslt/header_footer.xslt
incubator/beehive/trunk/netui/docs/tools/xslt/tag_topics.xslt
incubator/beehive/trunk/netui/docs/tools/xslt/taglib-frame.xslt
incubator/beehive/trunk/netui/docs/tools/xslt/taglib-overview-frame.xslt
incubator/beehive/trunk/netui/docs/tools/xslt/taglib-overview-summary.xslt
incubator/beehive/trunk/netui/docs/tools/xslt/taglib-summary.xslt
Modified:
incubator/beehive/trunk/netui/ant/javadoc.xml
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionMapping.java
Log:
New targets for building <netui> Tag Library reference docs.
The JAR files are a custom doclet that creates XML files based on the javadoc
content in the JAVA source.
The XSLT files transform the XML into HTML topics.
(Checkin includes a minor change to the javadoc comments in
PageFlowActionMapping.java, which was breaking the javadoc build.)
Modified: incubator/beehive/trunk/netui/ant/javadoc.xml
==============================================================================
--- incubator/beehive/trunk/netui/ant/javadoc.xml (original)
+++ incubator/beehive/trunk/netui/ant/javadoc.xml Thu Aug 5 10:45:52 2004
@@ -6,7 +6,11 @@
<property file="${os.BEEHIVE_HOME}/beehive.properties"/>
<property file="bootstrap.properties"/>
<property file="common.properties"/>
- <property name="docs.temp" value="${docs.dir}/temp"/>
+ <property name="docs.temp" value="${docs.dir}/temp"/>
+ <property name="docs.build.dir" value="${build.dir}/docs"/>
+
+ <property name="ant-launch.jar"
location="${ant.home}/lib/ant-launcher.jar"/>
+ <property file="../test/ant/test.properties"/>
<path id="javadoc.classpath">
<fileset dir="${struts.dir}" includes="*.jar"/>
@@ -14,7 +18,6 @@
<fileset dir="${xdoclet.dir}" includes="*.jar"/>
<fileset dir="${build.lib.dir}" includes="*.jar"/>
<fileset dir="${log4j.dir}/dist/lib" includes="*.jar"/>
- <fileset dir="${beehive.installed.dir}/jakarta-tomcat-5.0.25/server/lib"
includes="*.jar"/>
<fileset dir="${beehive.installed.dir}/jakarta-tomcat-5.0.25/common/lib"
includes="*.jar"/>
<pathelement path="${xbean.jar}"/>
<pathelement path="${jsr173.jar}"/>
@@ -23,22 +26,44 @@
<pathelement path="${ant.jar}"/>
</path>
+ <target name="usage">
+ <echo
message="================================================================================"/>
+ <echo message="| Usage
|"/>
+ <echo
message="================================================================================"/>
+ <echo message="build - Cleans and builds all doc, copies the result to
the forrest site. "/>
+ <echo message=" When calling the 'build' (or
'generate-taglib-ref-html') target, "/>
+ <echo message=" you must add the following flag to the command
line: "/>
+ <echo message=" -lib
%BEEHIVE_HOME%\netui\test\external\xalan-241.jar "/>
+ <echo message=" Your call to the 'build' target should look like
the following: "/>
+ <echo message=" prompt>ant -f javadoc.xml build -lib
%BEEHIVE_HOME%\netui\test\external\xalan-241.jar"/>
+ <echo message="clean - Deletes the built netui docs and associated temp
files."/>
+ <echo message="generate-taglib-ref - Generates the netui Tag Library
reference."/>
+ <echo message="generate-class-ref - Generates the Page Flow class
reference,"/>
+ <echo message=" using the standard Javadoc doclet."/>
+ <echo message="generate-taglib-ref-xml - sub task for generating the
netui Tag Library reference"/>
+ <echo message="generate-taglib-ref-html - sub task for generating the
netui Tag Library reference"/>
+ <echo message=" When calling the 'generate-taglib-ref-html' (or
'build') target,"/>
+ <echo message=" you must add the following flag to the command
line:"/>
+ <echo message=" -lib
%BEEHIVE_HOME%\netui\test\external\xalan-241.jar"/>
+ <echo message=" Calls to the 'generate=taglib-ref-html' target
should look like the following:"/>
+ <echo message=" prompt>ant -f javadoc.xml
generate-taglib-ref-html -lib
%BEEHIVE_HOME%\netui\test\external\xalan-241.jar"/>
+ <echo message="generate-conceptual-doc - not yet implemented"/>
+ <echo message="copy-to-forrest - Copies the built netui docs to the
forrest site."/>
+ <echo
message="================================================================================"/>
+ <echo message="|
|"/>
+ <echo
message="================================================================================"/>
+ </target>
+
<!-- You must deploy netui before you run this target, or any of its
sub-targets. -->
- <target name="redeploy_all" description="Generate Javadoc for all core
server and tags">
- <antcall target="clean-class-ref"/>
- <antcall target="clean-taglib-ref"/>
- <antcall target="generate-class-ref"/>
- <antcall target="generate-taglib-ref"/>
- </target>
-
- <target name="generate-all-ref" description="Generate Javadoc for all core
server and tags">
+ <target name="build" description="Generate Javadoc for all core server and
tags">
+ <antcall target="clean"/>
<antcall target="generate-class-ref"/>
<antcall target="generate-taglib-ref"/>
</target>
- <target name="clean-all-ref">
- <antcall target="clean-class-ref"/>
- <antcall target="clean-taglib-ref"/>
+ <target name="clean">
+ <delete dir="${docs.dir}/temp" failonerror="false"/>
+ <delete dir="${build.dir}/docs" failonerror="false"/>
</target>
<target name="generate-taglib-ref">
@@ -47,13 +72,13 @@
</target>
<target name="generate-class-ref">
- <javadoc destdir="${docs.dir}/dist/classref"
+ <javadoc destdir="${docs.build.dir}/java-class"
maxmemory="256M"
windowtitle="Page Flow API Documentation"
doctitle="Page Flow API Documentation"
version="true"
author="false"
- use="true"
+ use="false"
additionalparam="-breakiterator -noqualifier all"
useexternalfile="true"
classpathref="javadoc.classpath"
@@ -77,53 +102,31 @@
<tag name="jsptagref.attributedescription" enabled="false"
description=""/>
<tag name="jsptagref.databindable" enabled="false" description=""/>
<tag name="jsptagref.attributesyntaxvalue" enabled="false"
description=""/>
- <tag name="netui\:tag" enabled="false" description=""/>
- <tag name="netui.tldx\:tag" enabled="false" description=""/>
- <tag name="netui\:attribute" enabled="false" description=""/>
- <tag name="netui.tldx:attribute" enabled="false" description=""/>
- <packageset dir="${src.dir}/bootstrap" defaultexcludes="yes">
- <include name="org/apache/beehive/netui/**/*" />
- </packageset>
- <packageset dir="${src.dir}/compiler" defaultexcludes="yes">
- <include name="org/apache/beehive/netui/**/*" />
- </packageset>
- <packageset dir="${src.dir}/pageflow" defaultexcludes="yes">
- <include name="org/apache/beehive/netui/pageflow/config/**/*" />
- <include name="org/apache/beehive/netui/pageflow/handler/**/*" />
- <include name="org/apache/beehive/netui/pageflow/interceptor/**/*" />
- <include name="org/apache/beehive/netui/pageflow/internal/**/*" />
- <include name="org/apache/beehive/netui/pageflow/util/**/*" />
- <include name="org/apache/beehive/netui/pageflow/internal/**/*" />
- <include name="org/apache/beehive/netui/script/**/*" />
- </packageset>
- <packageset dir="${src.dir}/scoping" defaultexcludes="yes">
- <include name="org/apache/beehive/netui/**/*" />
- </packageset>
- <packageset dir="${src.dir}/tags-databinding" defaultexcludes="yes">
- <include name="org/apache/beehive/netui/databinding/**/*" />
- <include name="org/apache/beehive/netui/tags/**/*" />
- </packageset>
- <packageset dir="${src.dir}/tags-datagrid" defaultexcludes="yes">
- <include name="org/apache/beehive/netui/datagrid/**/*" />
- <include name="org/apache/beehive/netui/tags/**/*" />
- </packageset>
- <packageset dir="${src.dir}/tags-html" defaultexcludes="yes">
- <include name="org/apache/beehive/netui/tags/**/*" />
- </packageset>
- <packageset dir="${src.dir}/tags-template" defaultexcludes="yes">
- <include name="org/apache/beehive/netui/tags/**/*" />
- </packageset>
- <packageset dir="${src.dir}/util" defaultexcludes="yes">
- <include name="org/apache/beehive/netui/util/**/*" />
- </packageset>
+ <packageset dir="${src.dir}/bootstrap"/>
+ <packageset dir="${src.dir}/compiler"/>
+ <packageset dir="${src.dir}/pageflow">
+ <!-- When the following line is uncommented: you get this
exception:
+ [javadoc] java.util.MissingResourceException: Can't find
resource for bundle com.sun.tools.doclets
+ .formats.html.resources.standard, key
doclet.malformed_html_link_tag
+ -->
+ <!--exclude name="org/apache/beehive/netui/pageflow/config/**"/-->
+ </packageset>
+ <packageset dir="${src.dir}/scoping"/>
+ <packageset dir="${src.dir}/tags-databinding"/>
+ <packageset dir="${src.dir}/tags-html"/>
+ <packageset dir="${src.dir}/tags-template"/>
+ <!--packageset dir="${src.dir}/util"/-->
+ <!--fileset dir="${src.dir}/bootstrap" defaultexcludes="yes"/>
+ <fileset dir="${src.dir}/compiler" defaultexcludes="yes"/>
+ <fileset dir="${src.dir}/pageflow" defaultexcludes="yes"/>
+ <fileset dir="${src.dir}/scoping" defaultexcludes="yes"/>
+ <fileset dir="${src.dir}/tags-databinding" defaultexcludes="yes"/>
+ <fileset dir="${src.dir}/tags-html" defaultexcludes="yes"/>
+ <fileset dir="${src.dir}/tags-template" defaultexcludes="yes"/>
+ <fileset dir="${src.dir}/util" defaultexcludes="yes"/-->
</javadoc>
</target>
- <target name="clean-class-ref">
- <!--echo message="Deleting ${docs.dir}/dist"/-->
- <delete dir="${docs.dir}/dist/classref"/>
- </target>
-
<target name="generate-taglib-ref-xml" description="Uses a custom doclet
to generate XML from Java source files.">
<antcall target="copy-tld-files"/>
<antcall target="insert-namespace-for-tld"/>
@@ -131,8 +134,8 @@
<mkdir dir="${docs.temp}/xml/tagref"/>
<javadoc classpathref="javadoc.classpath"
destdir="${docs.temp}/xml/tagref">
- <doclet name="org.apache.beehive.netui.tools.doclet.jsptagref.JspTagRef"
-
path="${docs.dir}/tools/lib/jsptagrefdoclet.jar;${docs.dir}/tools/lib/jsptagrefschema.jar;${docs.dir}/tools/lib/xbean.jar;${xbean.jar};tools/lib/helputil.jar">
+ <doclet name="org.apache.beehive.netui.tools.doclet.jsptagref.JspTagDoc"
+
path="${docs.dir}/tools/lib/jsptagrefdoclet.jar;${docs.dir}/tools/lib/jsptagrefschema.jar;${xbean.jar};${jsr173.jar}">
<param name="-source" value="1.5"/>
<param name="-tlddir" value="${docs.temp}/tld"/>
<param name="-breakiterator"/>
@@ -140,6 +143,7 @@
<packageset dir="${src.dir}/tags-databinding">
<include name="org/apache/beehive/netui/tags/databinding/bundle"/>
<include
name="org/apache/beehive/netui/tags/databinding/cellrepeater"/>
+ <include name="org/apache/beehive/netui/tags/databinding/datagrid"/>
<include name="org/apache/beehive/netui/tags/databinding/invoke"/>
<include name="org/apache/beehive/netui/tags/databinding/message"/>
<include name="org/apache/beehive/netui/tags/databinding/pageinput"/>
@@ -147,10 +151,7 @@
<include
name="org/apache/beehive/netui/tags/databinding/repeater/choice"/>
<include
name="org/apache/beehive/netui/tags/databinding/repeater/pad"/>
<include name="org/apache/beehive/netui/tags/databinding/script"/>
- </packageset>
- <packageset dir="${src.dir}/tags-datagrid">
- <include name="org/apache/beehive/netui/tags/datagrid"/>
- <include name="org/apache/beehive/netui/datagrid/model"/>
+ <include name="org/apache/beehive/netui/tags/databinding/xml"/>
</packageset>
<packageset dir="${src.dir}/tags-html">
<include name="org/apache/beehive/netui/tags/html"/>
@@ -161,39 +162,80 @@
</packageset>
</javadoc>
</target>
-
+
<target name="generate-taglib-ref-html" description="Transform the XML into
HTML.">
- <!-- Cleans and recreates the dest dir -->
- <delete dir="${docs.dir}/dist/taglib" failonerror="false"/>
- <mkdir dir="${docs.dir}/dist/taglib"/>
- <!-- Move the static files into place -->
- <copy todir="${docs.dir}/dist/taglib">
- <fileset dir="${docs.dir}/tools/static_files">
- </fileset>
- </copy>
- <!-- Generates the tag ref TOC nav page -->
- <!--xslt in="doclets/doclets/temp/xml/tagref/summary.xml"
- out="doclets/doclets/temp/html/toc.html"
- style="doclets/doclets/xslt/tag_ref_toc.xslt"
- <param name="localRelativePath" expression="../../../"/>
- </xslt-->
- <!-- Generates the overview-summary page -->
- <!--xslt in="doclets/doclets/temp/xml/tagref/summary.xml"
- out="doclets/doclets/temp/html/overview-summary.html"
- style="doclets/doclets/xslt/tag_ref_summary.xslt">
- <param name="localRelativePath" expression="../../../"/>
- </xslt-->
+ <!-- Cleans and recreates the top level taglib dir -->
+ <delete dir="${docs.build.dir}/taglib" failonerror="false"/>
+ <mkdir dir="${docs.build.dir}/taglib"/>
+ <!-- Move the static files (= the CSS and frame-defining index.html page)
into place -->
+ <copy todir="${docs.build.dir}/taglib">
+ <fileset dir="${docs.dir}/tools/static_files"/>
+ </copy>
+ <!-- #### Creates the Tag Libraray HTML #### -->
+ <!-- ... the overview-summary of taglibs (=initial display in right-frame)
-->
+ <xslt in="${docs.dir}/temp/xml/tagref/overview.xml"
+ out="${docs.build.dir}/taglib/taglib-overview-summary.html"
+ style="${docs.dir}/tools/xslt/taglib-overview-summary.xslt">
+ <param name="taglibLocation" expression="${docs.build.dir}/taglib"/>
+ </xslt>
+ <!-- ... the framed taglib overview (= upper-left) -->
+ <xslt in="${docs.dir}/temp/xml/tagref/overview.xml"
+ out="${docs.build.dir}/taglib/taglib-overview-frame.html"
+ style="${docs.dir}/tools/xslt/taglib-overview-frame.xslt">
+ <param name="taglibLocation" expression="${docs.build.dir}/taglib"/>
+ </xslt>
+ <!-- ... the framed list of all JSP tags in all libraries (= lower-left
frame) -->
+ <xslt in="${docs.dir}/temp/xml/tagref/overview.xml"
+ out="${docs.build.dir}/taglib/alltaglibs-frame.html"
+ style="${docs.dir}/tools/xslt/alltaglibs-frame.xslt">
+ <param name="taglibLocation" expression="${docs.build.dir}/taglib"/>
+ </xslt>
+ <!-- ... the taglib-frame pages (=displayed in lower-left frame when
upper-left frame links are clicked) -->
+ <!-- ******** Depends on xalan-241.jar!!!
+ ******** You must call this target from the command line with the
following flag:
+ ******** -lib %BEEHIVE_HOME%\netui\test\external\xalan-241.jar -->
+ <xslt in="${docs.dir}/temp/xml/tagref/overview.xml"
+ out="${docs.build.dir}/taglib/taglib-frame-ignore.html"
+ style="${docs.dir}/tools/xslt/taglib-frame.xslt">
+ <param name="taglibLocation" expression="${docs.build.dir}/taglib"/>
+ </xslt>
+ <!-- ... the taglib-summary pages (=displayed in right frame when 'tag
library' links in the tag topics are clicked) -->
+ <!-- ******** Depends on xalan-241.jar!!!
+ ******** You must call this target from the command line with the
following flag:
+ ******** -lib %BEEHIVE_HOME%\netui\test\external\xalan-241.jar -->
+ <xslt in="${docs.dir}/temp/xml/tagref/overview.xml"
+ out="${docs.build.dir}/taglib/taglib-summary-ignore.html"
+ style="${docs.dir}/tools/xslt/taglib-summary.xslt">
+ <param name="taglibLocation" expression="${docs.build.dir}/taglib"/>
+ </xslt>
+ <!-- ... the taglib-frame pages (=displayed in lower-left frame when
upper-left frame links are clicked) -->
+ <!-- ******** Depends on saxon.jar!!! saxon.jar must be in
BEEHIVE_HOME/installed/apache-ant-1.6.1/lib ********
+ ******** saxon.jar can be downloaded from
http://voxel.dl.sourceforge.net/sourceforge/saxon/saxon6_5_3.zip ******** -->
+ <!--<xslt in="${docs.dir}/temp/xml/tagref/overview.xml"
+ out="${docs.build.dir}/taglib/taglib-frame-ignore.html"
+ style="${docs.dir}/tools/xslt/taglib-frame-saxon.xslt">
+ <param name="taglibLocation" expression="${docs.build.dir}/taglib"/>
+ </xslt>-->
+ <!-- ... the taglib-summary pages (=displayed in right frame when 'tag
library' links in the tag topics are clicked) -->
+ <!-- ******** Depends on saxon.jar!!! saxon.jar must be in
BEEHIVE_HOME/installed/apache-ant-1.6.1/lib ********
+ ******** saxon.jar can be downloaded from
http://voxel.dl.sourceforge.net/sourceforge/saxon/saxon6_5_3.zip ******** -->
+ <!--<xslt in="${docs.dir}/temp/xml/tagref/overview.xml"
+ out="${docs.build.dir}/taglib/taglib-summary-ignore.html"
+ style="${docs.dir}/tools/xslt/taglib-summary-saxon.xslt">
+ <param name="taglibLocation" expression="${docs.build.dir}/taglib"/>
+ </xslt>-->
+ <!-- ... the individual tag topics -->
<xslt basedir="${docs.temp}/xml/tagref"
- destdir="${docs.dir}/dist/taglib"
- style="${docs.dir}/tools/xslt/tag_ref_classic.xslt"
+ destdir="${docs.build.dir}/taglib"
+ style="${docs.dir}/tools/xslt/tag_topics.xslt"
includes="**/*.xml">
- <param name="localRelativePath" expression="../../../"/>
+ <param name="taglibLocation" expression="${docs.build.dir}/taglib"/>
</xslt>
</target>
<!-- Get the latest TLD files and unzip them to a temp folder. From there,
they'll be grabbed by
the JspTagRef doclet for generating tag topics. -->
- <target name="copy-tld-files" description="Extract TLD files from their zip
container.">
+ <target name="copy-tld-files" description="copies tld files to another
directory, the copies are modified by insert-namespace-for-tld">
<delete dir="${docs.temp}/tld" failonerror="false"/>
<mkdir dir="${docs.temp}/tld"/>
<copy todir="${docs.temp}/tld" overwrite="true">
@@ -211,15 +253,10 @@
</replace>
</target>
- <target name="clean-taglib-ref">
- <!--echo message="Deleting ${docs.dir}/dist"/-->
- <delete dir="${docs.dir}/dist/taglib"/>
- </target>
-
- <target name="usage">
- <java fork="no" classname="org.apache.tools.ant.Main">
- <arg line="-projecthelp"/>
- </java>
+ <target name="copy-to-forrest" description="">
+ <copy todir="${beehive.dir}/site/src/documentation/content/docs"
overwrite="true">
+ <fileset dir="${docs.build.dir}"/>
+ </copy>
</target>
</project>
Added: incubator/beehive/trunk/netui/docs/tools/lib/jsptagrefdoclet.jar
==============================================================================
Binary file. No diff available.
Added: incubator/beehive/trunk/netui/docs/tools/lib/jsptagrefschema.jar
==============================================================================
Binary file. No diff available.
Added: incubator/beehive/trunk/netui/docs/tools/static_files/index.html
==============================================================================
--- (empty file)
+++ incubator/beehive/trunk/netui/docs/tools/static_files/index.html Thu Aug
5 10:45:52 2004
@@ -0,0 +1,37 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc on Tue Jul 27 12:23:19 PDT 2004-->
+<TITLE>
+Page Flow API Documentation
+</TITLE>
+<SCRIPT type="text/javascript">
+ targetPage = "" + window.location.search;
+ if (targetPage != "" && targetPage != "undefined")
+ targetPage = targetPage.substring(1);
+ function loadFrames() {
+ if (targetPage != "" && targetPage != "undefined")
+ top.classFrame.location = top.targetPage;
+ }
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+</HEAD>
+<FRAMESET cols="20%,80%" title="" onLoad="top.loadFrames()">
+<FRAMESET rows="30%,70%" title="" onLoad="top.loadFrames()">
+<FRAME src="taglib-overview-frame.html" name="upper-left" title="All Packages">
+<FRAME src="alltaglibs-frame.html" name="lower-left" title="All classes and
interfaces (except non-static nested types)">
+</FRAMESET>
+<FRAME src="taglib-overview-summary.html" name="right-frame" title="Package,
class and interface descriptions" scrolling="yes">
+<NOFRAMES>
+<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="overview-summary.html">Non-frame version.</A>
+</NOFRAMES>
+</FRAMESET>
+</HTML>
Added: incubator/beehive/trunk/netui/docs/tools/static_files/stylesheet.css
==============================================================================
--- (empty file)
+++ incubator/beehive/trunk/netui/docs/tools/static_files/stylesheet.css
Thu Aug 5 10:45:52 2004
@@ -0,0 +1,29 @@
+/* Javadoc style sheet */
+
+/* Define colors, fonts and other style attributes here to override the
defaults */
+
+/* Page background color */
+body { background-color: #FFFFFF }
+
+/* Headings */
+h1 { font-size: 145% }
+
+/* Table colors */
+.TableHeadingColor { background: #CCCCFF } /* Dark mauve */
+.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */
+.TableRowColor { background: #FFFFFF } /* White */
+
+/* Font used in left-hand frame lists */
+.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif
}
+.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif
}
+.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif
}
+
+/* Navigation bar fonts and colors */
+.NavBarCell1 { background-color:#EEEEFF;} /* Light mauve */
+.NavBarCell1Rev { background-color:#00008B;} /* Dark Blue */
+.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;}
+.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;}
+
+.NavBarCell2 { font-family: Arial, Helvetica, sans-serif;
background-color:#FFFFFF;}
+.NavBarCell3 { font-family: Arial, Helvetica, sans-serif;
background-color:#FFFFFF;}
+
Added: incubator/beehive/trunk/netui/docs/tools/xslt/alltaglibs-frame.xslt
==============================================================================
--- (empty file)
+++ incubator/beehive/trunk/netui/docs/tools/xslt/alltaglibs-frame.xslt Thu Aug
5 10:45:52 2004
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:ref="http://apache.org/beehive/netui/tools/doclet/schema">
+
+ <!--===============================================================
+ Makes the alltaglibs-frame.html page.
+ This page is displayed in the lower-left frame, and lists
+ all JSP tags in all tag libraries.
+ ================================================================-->
+ <xsl:template match="/">
+ <HTML>
+ <HEAD>
+ <TITLE>
+ All Classes (Page Flow API Documentation)
+ </TITLE>
+ <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css"
TITLE="Style"/>
+ </HEAD>
+ <BODY BGCOLOR="white">
+ <FONT size="+1" CLASS="FrameHeadingFont"><B>All Tags</B></FONT>
+ <BR/>
+ <TABLE BORDER="0" WIDTH="100%" SUMMARY="">
+ <TR>
+ <TD NOWRAP="true">
+ <FONT CLASS="FrameItemFont">
+ <!-- Loop through all the JSP tags in all libraries: make
a link for each tag. -->
+ <xsl:for-each
select="ref:jsp-tag-ref-index/ref:jsp-taglib-summary/ref:jsp-tag-summary/ref:name">
+ <xsl:sort select="../../ref:prefix"/>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="../../ref:uri/@uriPath"/>/<xsl:value-of
select="."/>.html</xsl:attribute>
+ <xsl:attribute
name="target">right-frame</xsl:attribute>
+ <<xsl:value-of
select="../../ref:prefix"/>:<xsl:value-of select="."/>><br/>
+ </xsl:element>
+ </xsl:for-each>
+ </FONT>
+ </TD>
+ </TR>
+ </TABLE>
+ </BODY>
+ </HTML>
+ </xsl:template>
+</xsl:stylesheet>
+
+
Added: incubator/beehive/trunk/netui/docs/tools/xslt/header_footer.xslt
==============================================================================
--- (empty file)
+++ incubator/beehive/trunk/netui/docs/tools/xslt/header_footer.xslt Thu Aug
5 10:45:52 2004
@@ -0,0 +1,97 @@
+<?xml version="1.0"?>
+<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:ref="http://apache.org/beehive/netui/tools/doclet/schema"
+ xmlns:xalan="http://xml.apache.org/xslt">
+
+ <!-- Makes the header and footer NAVBAR Sections
////////////////////////////////////////////////-->
+ <xsl:template name="navbar">
+ <xsl:param name="relPathToRoot"/>
+ <xsl:param name="displayDetails"/>
+ <xsl:param name="uri-path"
select="ref:jsp-tag/ref:handler-class/@packagePath" />
+ <table border="0" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td colspan="3" bgcolor="#EEEEFF" class="NavBarCell1">
+ <a name="navbar_top_firstrow"><!-- --></a>
+ <table border="0" cellpadding="0" cellspacing="3">
+ <tr align="center" valign="top">
+ <td bgcolor="#EEEEFF" class="NavBarCell1">
+ <a
href="{$relPathToRoot}taglib-overview-summary.html" style=""><font
class="NavBarFont1"><b>Overview</b></font></a><!-- |-->
+ </td>
+ <!--<td bgcolor="#EEEEFF" class="NavBarCell1">
+ <a
href="{$relPathToRoot}/deprecated-list.html" style="text-decoration:none"><font
class="NavBarFont1"><b>Deprecated</b></font></a> |
+ </td>
+ <td bgcolor="#EEEEFF" class="NavBarCell1">
+ <a href="{$relPathToRoot}/index-all.html"
style="text-decoration:none"><font
class="NavBarFont1"><b>Index</b></font></a> |
+ </td>-->
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td bgcolor="white" class="NavBarCell2">
+ <font SIZE="-2">
+ <!-- #### Get the overview.xml file and write out
links to the overview pages for each tag library. #### -->
+ TAG LIBRARIES:
+ <xsl:for-each
select="document('../../temp/xml/tagref/overview.xml')/ref:jsp-tag-ref-index/ref:jsp-taglib-summary/ref:prefix">
+ <xsl:sort select="../ref:prefix"/>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="$relPathToRoot"/>taglib-overview-summary.html#<xsl:value-of
select="//ref:prefix"/></xsl:attribute>
+ <xsl:attribute
name="style"><!--text-decoration:none--></xsl:attribute>
+ <b><<xsl:value-of
select="../ref:prefix"/>></b>
+ </xsl:element>
+ <!-- prints a |-symbol between each link -->
+ <xsl:choose>
+ <xsl:when test="position()!=last()">
+ |
+ </xsl:when>
+ <xsl:otherwise>
+
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </font>
+ </td>
+ <td bgcolor="white" class="NavBarCell2">
+ <!--<FONT SIZE="-2">
+ <A HREF="{$relPathToRoot}index.html"
target="_top"><B>FRAMES</B></A>
+ <A HREF="AnchorColumn.html" target="_top"><B>NO
FRAMES</B></A>
+ <SCRIPT type="text/javascript">-->
+ <!--
+ if(window==top) {
+ document.writeln('<A
HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+ }
+ //-->
+ <!--</SCRIPT>
+ <NOSCRIPT>
+ <A
HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+ </NOSCRIPT>
+ </FONT>-->
+ </td>
+ </tr>
+ <xsl:if test="$displayDetails">
+ <tr>
+ <td valign="top" bgcolor="white" class="NavBarCell3">
+ <font SIZE="-2">
+ DETAIL: <a href="#syntax">Syntax</a> |
+ <a href="#description">Description</a> |
+ <a href="#attributes">Attributes</a> |
+ <a href="#example">Example</a>
+ </font>
+ </td>
+ <td valign="top" class="NavBarCell3">
+ <font SIZE="-2">
+ Implementing Class:
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="$relPathToRoot"/>../java-class/<xsl:value-of
select="$uri-path"/>/<xsl:value-of
select="ref:jsp-tag/ref:handler-class/@typeName"/>.html</xsl:attribute>
+ <xsl:attribute name="target">_blank</xsl:attribute>
+ <b><xsl:value-of
select="ref:jsp-tag/ref:handler-class/@inPackage"/>.<xsl:value-of
select="ref:jsp-tag/ref:handler-class/@typeName"/></b>
+ </xsl:element>
+ </font>
+ </td>
+ </tr>
+ </xsl:if>
+ </table>
+ <hr/>
+ </xsl:template>
+</xsl:stylesheet>
Added: incubator/beehive/trunk/netui/docs/tools/xslt/tag_topics.xslt
==============================================================================
--- (empty file)
+++ incubator/beehive/trunk/netui/docs/tools/xslt/tag_topics.xslt Thu Aug
5 10:45:52 2004
@@ -0,0 +1,434 @@
+<?xml version="1.0"?>
+<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:ref="http://apache.org/beehive/netui/tools/doclet/schema"
+ xmlns:xalan="http://xml.apache.org/xslt">
+ <xsl:import href="header_footer.xslt"/>
+ <xsl:param name="taglibLocation" />
+
+
+ <!--===============================================================
+ Makes the individual JSP tag topics.
+ ================================================================-->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <link rel="stylesheet" type="text/css"
href="../../../stylesheet.css" title="Style"/>
+ <title>
+ <xsl:value-of
select="ref:jsp-tag/ref:prefix"/>:<xsl:value-of select="ref:jsp-tag/ref:name"/>
Tag
+ </title>
+ </head>
+ <body>
+
+ <!-- NAVBAR Section (the navbar template is in the file
header_footer.xslt) -->
+ <xsl:call-template name="navbar">
+ <xsl:with-param name="relPathToRoot" select="'../../../'"/>
+ <xsl:with-param name="displayDetails" select="'true'"/>
+ </xsl:call-template>
+
+ <xsl:for-each select="ref:jsp-tag">
+
+ <!-- Main title for the topic -->
+ <h2>
+ <<xsl:value-of select="ref:prefix"/>:<xsl:value-of
select="ref:name"/>> Tag
+ </h2>
+
+ <!-- LEAD sentence of the description -->
+ <p><xsl:apply-templates
select="ref:tagdescription/ref:lead"/></p>
+
+ <!-- SYNTAX section -->
+ <xsl:if test="ref:attributes/ref:attribute">
+ <xsl:call-template name="syntax-section"/>
+ </xsl:if>
+
+ <!-- DESCRIPTION Section -->
+ <p><xsl:apply-templates
select="ref:tagdescription/ref:detail"/></p>
+
+ <!-- ATTRIBUTES Section -->
+ <xsl:if test="ref:attributes/ref:attribute">
+ <xsl:call-template name="attributes-list"/>
+ </xsl:if>
+
+ <!-- EXAMPLE Section -->
+ <xsl:if test="ref:example">
+ <xsl:call-template name="example-code"/>
+ </xsl:if>
+
+ <!-- 'SEE' Section -->
+ <xsl:if test="ref:see">
+ <xsl:call-template name="seeTagTemplate"/>
+ </xsl:if>
+
+ </xsl:for-each>
+
+ <!-- NAVBAR Section (here forms a footer) (the navbar template
is in the file header_footer.xslt) -->
+ <xsl:call-template name="navbar">
+ <xsl:with-param name="relPathToRoot" select="'../../../'"/>
+ <xsl:with-param name="displayDetails" select="'true'"/>
+ </xsl:call-template>
+
+ </body>
+ </html>
+ </xsl:template>
+
+ <!-- LEAD Sentence
///////////////////////////////////////////////////////////////////////////-->
+ <xsl:template match="ref:tagdescription/ref:lead">
+ <xsl:for-each select="node()">
+ <xsl:choose>
+ <xsl:when test="local-name(.)='link'">
+ <xsl:call-template
name="inlineLinkTemplate"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="."
disable-output-escaping="yes"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </xsl:template>
+
+ <!-- SYNTAX Section
///////////////////////////////////////////////////////////////////////////-->
+ <xsl:template name="syntax-section">
+ <table border="1" width="100%" cellpadding="3" cellspacing="0">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="2">
+ <font SIZE="+2">
+ <b><a name="syntax">Syntax</a></b>
+ </font>
+ </td>
+ </tr>
+ </table>
+ <p>
+ <code>
+ <<xsl:value-of select="ref:prefix"/>:<xsl:value-of
select="ref:name"/>
+
+ <xsl:if test="ref:attributes">
+ <xsl:text> </xsl:text>
+ <xsl:for-each select="ref:attributes/ref:attribute">
+ <br/>
+ <xsl:text>    </xsl:text>
+ <xsl:choose>
+ <xsl:when test="ref:required='false'">[<xsl:element
name="a"><xsl:attribute name="href">#<xsl:value-of
select="ref:name"/></xsl:attribute><xsl:value-of
select="ref:name"/></xsl:element>="<xsl:choose>
+ <xsl:when test="ref:attributesyntaxvalue">
+ <xsl:for-each
select="ref:attributesyntaxvalue">
+ <xsl:call-template
name="text-with-links"/>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:otherwise>
+ <i><xsl:value-of select="ref:name"/></i>
+ </xsl:otherwise>
+ </xsl:choose>"]<xsl:text> </xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:element name="a"><xsl:attribute
name="href">#<xsl:value-of select="ref:name"/></xsl:attribute><xsl:value-of
select="ref:name"/></xsl:element>="<i><xsl:choose><xsl:when
test="ref:attributesyntaxvalue"><xsl:value-of select="ref:attributesyntaxvalue"
disable-output-escaping="yes"/></xsl:when><xsl:otherwise><xsl:value-of
select="ref:name"/></xsl:otherwise></xsl:choose></i>"<xsl:text> </xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </xsl:if>/>
+ </code>
+ </p>
+ </xsl:template>
+
+ <!-- DESCRIPTION Section
///////////////////////////////////////////////////////////////////////////-->
+ <xsl:template match="ref:tagdescription/ref:detail">
+ <table border="1" width="100%" cellpadding="3" cellspacing="0">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="2">
+ <font SIZE="+2"><b><a
name="description">Description</a></b></font>
+ </td>
+ </tr>
+ </table>
+ <p><xsl:for-each select="node()">
+ <xsl:choose>
+ <xsl:when test="local-name(.)='link'">
+ <xsl:call-template
name="inlineLinkTemplate"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="."
disable-output-escaping="yes"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each></p>
+ </xsl:template>
+
+ <!-- ATTRIBUTES Section
///////////////////////////////////////////////////////////////////////////-->
+ <xsl:template name="attributes-list">
+ <table border="1" width="100%" cellpadding="4" cellspacing="0">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="2">
+ <font SIZE="+2"><b><a
name="attributes">Attributes</a></b></font>
+ </td>
+ </tr>
+ <xsl:for-each select="ref:attributes/ref:attribute">
+ <tr>
+ <td width="13%">
+ <strong>
+ <xsl:element name="a">
+ <xsl:attribute name="name">
+ <xsl:value-of select="ref:name"/>
+ </xsl:attribute>
+ </xsl:element>
+ <xsl:value-of select="ref:name"/>
+ </strong>
+ </td>
+ <td width="87%" align="left">
+ <table border="0">
+ <!--tr>
+ <td bgcolor="#eeeeff">
+ <font size="-1">
+ Required:
+ <strong>
+ <xsl:choose>
+ <xsl:when test="ref:required =
'true'">Yes</xsl:when>
+ <xsl:when test="ref:required =
'false'">No</xsl:when>
+ </xsl:choose>
+ </strong>
+ </font>
+ </td>
+ <td>
+ |
+ </td>
+ <td bgcolor="#eeeeff">
+ <font size="-1">
+ Supports runtime evaluation:
+ <strong>
+ <xsl:choose>
+ <xsl:when test="ref:rtexprvalue =
'true'">Yes</xsl:when>
+ <xsl:when test="ref:rtexprvalue =
'false'">No</xsl:when>
+ </xsl:choose>
+ </strong>
+ </font>
+ </td>
+ <td>
+ |
+ </td>
+ <td bgcolor="#eeeeff">
+ <font size="-1">
+ Data bindable:
+ <strong>
+ <xsl:choose>
+ <xsl:when test="ref:databindable
= 'true'">Yes</xsl:when>
+ <xsl:when test="ref:databindable
= 'false'">No</xsl:when>
+ <xsl:otherwise><xsl:value-of
select="ref:databindable"/></xsl:otherwise>
+ </xsl:choose>
+ </strong>
+ </font>
+ </td>
+ </tr-->
+ <tr bgcolor="#eeeeff">
+ <td>
+ <font SIZE="-1">
+ Required:
+ <strong>
+ <xsl:choose>
+ <xsl:when test="ref:required
= 'true'">Yes</xsl:when>
+ <xsl:when test="ref:required
= 'false'">No</xsl:when>
+ </xsl:choose>
+ </strong> |
+ Supports runtime evaluation:
+ <strong>
+ <xsl:choose>
+ <xsl:when
test="ref:rtexprvalue = 'true'">Yes</xsl:when>
+ <xsl:when
test="ref:rtexprvalue = 'false'">No</xsl:when>
+ </xsl:choose>
+ </strong> |
+ Data bindable:
+ <strong>
+ <xsl:choose>
+ <xsl:when
test="ref:databindable = 'true'">Yes</xsl:when>
+ <xsl:when
test="ref:databindable = 'false'">No</xsl:when>
+ <xsl:otherwise><xsl:value-of
select="ref:databindable"/></xsl:otherwise>
+ </xsl:choose>
+ </strong>
+ </font>
+ </td>
+ </tr>
+ <tr>
+ <td bgcolor="white" colspan="5">
+ <hr/>
+ </td>
+ </tr>
+ </table>
+ <xsl:for-each select="ref:attributedescription">
+ <xsl:call-template name="text-with-links"/>
+ </xsl:for-each>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ <br/>
+ </xsl:template>
+
+ <!-- SAMPLE Section
///////////////////////////////////////////////////////////////////////////-->
+ <xsl:template name="example-code">
+ <table border="1" width="100%" cellpadding="3" cellspacing="0">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="2">
+ <font SIZE="+2"><b><a name="example">Example</a></b></font>
+ </td>
+ </tr>
+ </table>
+ <p>
+ <xsl:for-each select="ref:example">
+ <xsl:call-template name="text-with-links"/>
+ </xsl:for-each>
+ </p>
+ </xsl:template>
+
+ <!-- 'SEE' SECTION
///////////////////////////////////////////////////////////////////////////-->
+ <xsl:template name="seeTagTemplate">
+ <h2>Related Topics</h2>
+ <xsl:for-each select="ref:see">
+ <p>
+ <xsl:choose>
+ <xsl:when test="@uriPath">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="//ref:jsp-tag/@docRoot"/>/<xsl:value-of
select="@uriPath"/>/<xsl:value-of select="@tagName"/>.html</xsl:attribute>
+ <xsl:attribute name="target">_self</xsl:attribute>
+ <<xsl:value-of
select="@tagPrefix"/>:<xsl:value-of select="@tagName"/>> Tag
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="@typeName">
+ <xsl:call-template name="linkTemplate"/>
+ </xsl:when>
+ <xsl:when test="@href">
+ <xsl:value-of select="@href"
disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="." disable-output-escaping="yes"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </p>
+ <xsl:if test="position()!=last()"><!--<br/>--></xsl:if>
+ <xsl:if test="position()=last()-1"/>
+ </xsl:for-each>
+ </xsl:template>
+
+ <!-- Link Templates
///////////////////////////////////////////////////////////////////////////-->
+
+ <xsl:template name="text-with-links">
+ <xsl:for-each select="node()">
+ <xsl:choose>
+ <xsl:when test="local-name(.)='link'">
+ <xsl:call-template
name="inlineLinkTemplate"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="."
disable-output-escaping="yes"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template name="inlineLinkTemplate">
+ <xsl:choose>
+ <xsl:when test="@uriPath">
+ <xsl:element name="a">
+ <xsl:attribute name="href">
+ <xsl:value-of
select="//ref:jsp-tag/@docRoot"/>/<xsl:value-of
select="@uriPath"/>/<xsl:value-of select="@tagName"/>.html</xsl:attribute>
+ <xsl:attribute
name="target">_self</xsl:attribute>
+ <xsl:choose>
+ <xsl:when
test="string(.)">
+
<!--<xsl:value-of select="." disable-output-escaping="yes"/>-->
+
<<xsl:value-of select="@tagPrefix"/>:<xsl:value-of select="@tagName"/>>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of
select="@tagName"/>
+ <!--<<xsl:value-of
select="@tagPrefix"/>:<xsl:value-of select="@tagName"/>>-->
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="@packagePath">
+ <xsl:call-template name="linkTemplate"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of
select="@inPackage"/><xsl:text>.</xsl:text><xsl:value-of select="@typeName"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="linkTemplate">
+ <xsl:choose>
+ <xsl:when test="string(@uriPath)">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="//ref:jsp-tag/@docRoot"/>/<xsl:value-of
select="@uriPath"/>/<xsl:value-of select="@tagName"/>.html</xsl:attribute>
+ <xsl:attribute name="target">_self</xsl:attribute>
+ <xsl:choose>
+ <xsl:when
test="string(.)"><xsl:value-of select="."
disable-output-escaping="yes"/></xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@tagName"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="string(@packagePath)">
+ <xsl:choose>
+ <xsl:when
test="starts-with(@packagePath,'http')">
+ <xsl:call-template
name="externalLinkTemplate"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template
name="internalLinkTemplate"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="@href">
+ <xsl:value-of select="@href"
disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of
select="@inPackage"/><xsl:text>.</xsl:text><xsl:value-of select="@typeName"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- Opens in the same window; base path leads only to root of ref doc
tree -->
+ <xsl:template name="internalLinkTemplate">
+ <xsl:choose>
+ <xsl:when test="@signature">
+ <xsl:choose>
+ <xsl:when test="string(@typeName)">
+ <xsl:element name="a">
+ <xsl:attribute
name="href"><xsl:value-of
select="//ref:jsp-tag/@docRoot"/>/../java-class/<xsl:value-of
select="@packagePath"/>/<xsl:value-of select="@typeName"/>.html#<xsl:value-of
select="@signature"/></xsl:attribute>
+ <xsl:attribute
name="target">_blank</xsl:attribute> -->
+ <xsl:value-of
select="."/>
+ </xsl:element>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:if test="string(@typeName)">
+ <xsl:element name="a">
+ <xsl:attribute
name="href"><xsl:value-of
select="//ref:jsp-tag/@docRoot"/>/../java-class/<xsl:value-of
select="@packagePath"/>/<xsl:value-of select="@typeName"/>.html</xsl:attribute>
+ <xsl:attribute
name="target">_blank</xsl:attribute>
+ <xsl:value-of
select="."/>
+ </xsl:element>
+ </xsl:if>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- Opens in a new window; base path leads to an external web site. -->
+ <xsl:template name="externalLinkTemplate">
+ <xsl:choose>
+ <xsl:when test="@signature">
+ <xsl:choose>
+ <xsl:when test="string(@typeName)">
+ <xsl:element name="a">
+ <xsl:attribute
name="href"><xsl:value-of select="@packagePath"/><xsl:value-of
select="@typeName"/>.html#<xsl:value-of select="@signature"/></xsl:attribute>
+ <xsl:attribute
name="target">_blank</xsl:attribute>
+ <xsl:value-of
select="."/>
+ </xsl:element>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="string(@typeName)">
+ <xsl:element name="a">
+ <xsl:attribute
name="href"><xsl:value-of select="@packagePath"/><xsl:value-of
select="@typeName"/>.html</xsl:attribute>
+ <xsl:attribute
name="target">_blank</xsl:attribute>
+ <xsl:value-of
select="."/>
+ </xsl:element>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: incubator/beehive/trunk/netui/docs/tools/xslt/taglib-frame.xslt
==============================================================================
--- (empty file)
+++ incubator/beehive/trunk/netui/docs/tools/xslt/taglib-frame.xslt Thu Aug
5 10:45:52 2004
@@ -0,0 +1,59 @@
+<?xml version="1.0"?>
+<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:ref="http://apache.org/beehive/netui/tools/doclet/schema"
+ xmlns:xalan="org.apache.xalan.lib.Redirect"
+ extension-element-prefixes="xalan"
+ version="1.0">
+ <xsl:param name="taglibLocation" />
+
+ <xsl:template match="/">
+ <xsl:call-template name="make-taglib-frame-pages"/>
+ </xsl:template>
+
+ <!-- #### Makes the individual taglib-frame.html pages #### -->
+ <xsl:template name="make-taglib-frame-pages">
+ <!-- #### Go through the Tag Libraries... #### -->
+ <xsl:for-each select="ref:jsp-tag-ref-index/ref:jsp-taglib-summary">
+ <xsl:sort select="ref:prefix"/>
+ <!-- #### make an HTML file for each Tag Library... #### -->
+ <xsl:variable name="filename" select="concat($taglibLocation, '/',
ref:uri/@uriPath, '/taglib-frame.html')"/>
+ <xalan:write select="$filename">
+ <HTML>
+ <HEAD>
+ <LINK REL ="stylesheet" TYPE="text/css"
HREF="../../../stylesheet.css" TITLE="Style"/>
+ </HEAD>
+ <BODY BGCOLOR="white">
+ <!-- #### make a link to a summary page, to be displayed
in the right-hand frame #### -->
+ <TABLE BORDER="0" WIDTH="100%" SUMMARY=""><tr><td
nowrap="nowrap">
+ <FONT size="+1" CLASS="FrameTitleFont">
+ Tag Library:
+ <xsl:element name="a">
+ <xsl:attribute
name="href">taglib-summary.html</xsl:attribute>
+ <xsl:attribute name="target">right-frame</xsl:attribute>
+ <<xsl:value-of select="ref:prefix"/>>
+ </xsl:element>
+ </FONT>
+ </td></tr></TABLE>
+ <TABLE BORDER="0" WIDTH="100%" SUMMARY=""><tr><td
nowrap="nowrap">
+ <FONT size="+1" CLASS="FrameHeadingFont">Tags</FONT>
+ <BR/>
+ <!-- #### go through JSP tags in the current
library... #### -->
+ <xsl:for-each select="ref:jsp-tag-summary">
+ <!-- #### ...and make a link for each JSP tag ####
-->
+ <FONT CLASS="FrameItemFont">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="ref:name"/>.html</xsl:attribute>
+ <xsl:attribute
name="target">right-frame</xsl:attribute>
+ <<xsl:value-of
select="../ref:prefix"/>:<xsl:value-of select="ref:name"/>>
+ </xsl:element><br/>
+ </FONT>
+ </xsl:for-each>
+ </td></tr></TABLE>
+ </BODY>
+ </HTML>
+ </xalan:write>
+ </xsl:for-each>
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
Added: incubator/beehive/trunk/netui/docs/tools/xslt/taglib-overview-frame.xslt
==============================================================================
--- (empty file)
+++ incubator/beehive/trunk/netui/docs/tools/xslt/taglib-overview-frame.xslt
Thu Aug 5 10:45:52 2004
@@ -0,0 +1,50 @@
+<?xml version="1.0"?>
+<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:ref="http://apache.org/beehive/netui/tools/doclet/schema">
+ <xsl:param name="taglibLocation" />
+ <xsl:param name="doc-root" select="$taglibLocation"/>
+
+
+ <!--===============================================================
+ Makes the individual taglib-overview-frame.html pages.
+ ================================================================-->
+ <xsl:template match="/">
+ <HTML>
+ <HEAD>
+ <TITLE>All Tag Libraries</TITLE>
+ <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css"
TITLE="Style"/>
+ </HEAD>
+ <BODY BGCOLOR="white">
+ <TABLE BORDER="0" WIDTH="100%" SUMMARY="">
+ <TR>
+ <TH ALIGN="left" NOWRAP="true"><FONT size="+1"
CLASS="FrameTitleFont"><B></B></FONT></TH>
+ </TR>
+ </TABLE>
+ <TABLE BORDER="0" WIDTH="100%" SUMMARY="">
+ <TR>
+ <TD NOWRAP="true"><FONT CLASS="FrameItemFont"><A
HREF="alltaglibs-frame.html" target="lower-left">All Tag Libraries</A></FONT>
+ <P>
+ <FONT size="+1" CLASS="FrameHeadingFont">Tag
Libraries</FONT>
+ <BR/>
+ <FONT CLASS="FrameItemFont">
+ <xsl:for-each
select="ref:jsp-tag-ref-index/ref:jsp-taglib-summary">
+ <xsl:sort select="ref:prefix"/>
+ <xsl:element name="a">
+ <xsl:attribute
name="href"><xsl:value-of
select="ref:uri/@uriPath"/>/taglib-frame.html</xsl:attribute>
+ <xsl:attribute
name="target">lower-left</xsl:attribute>
+ <<xsl:value-of
select="ref:prefix"/>> tags<br/>
+ </xsl:element>
+ </xsl:for-each>
+ </FONT>
+ </P>
+ </TD>
+ </TR>
+ </TABLE>
+ </BODY>
+ </HTML>
+ </xsl:template>
+</xsl:stylesheet>
+
+
Added:
incubator/beehive/trunk/netui/docs/tools/xslt/taglib-overview-summary.xslt
==============================================================================
--- (empty file)
+++ incubator/beehive/trunk/netui/docs/tools/xslt/taglib-overview-summary.xslt
Thu Aug 5 10:45:52 2004
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:ref="http://apache.org/beehive/netui/tools/doclet/schema">
+ <xsl:import href="header_footer.xslt"/>
+
+ <!--===============================================================
+ Makes the taglib-overview-summary.html page.
+ ================================================================-->
+ <xsl:template match="/">
+ <HTML>
+ <HEAD>
+ <TITLE>
+ Overview (Page Flow Tag Library Documentation)
+ </TITLE>
+ <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css"
TITLE="Style"/>
+ </HEAD>
+ <BODY BGCOLOR="white" onload="windowTitle();">
+ <!-- ========= START OF TOP NAVBAR ======= -->
+ <xsl:call-template name="navbar">
+ <xsl:with-param name="relPathToRoot" select="'./'"/>
+ </xsl:call-template>
+ <!-- ========= END OF TOP NAVBAR ========= -->
+ <CENTER>
+ <H1>
+ Page Flow Tag Library Documentation
+ </H1>
+ </CENTER>
+ <xsl:for-each
select="ref:jsp-tag-ref-index/ref:jsp-taglib-summary">
+ <xsl:sort select="ref:prefix"/>
+ <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0"
SUMMARY="">
+ <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+ <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+1">
+ <!-- Makes a bare anchor, not a link -->
+ <xsl:element name="a">
+ <xsl:attribute name="name"><xsl:value-of
select="ref:prefix"/></xsl:attribute>
+ </xsl:element>
+ <B><<xsl:value-of select="ref:prefix"/>> Tag Library
Summary</B></FONT></TH>
+ </TR>
+ <xsl:for-each select="ref:jsp-tag-summary">
+ <xsl:sort select="ref:name"/>
+ <TR BGCOLOR="white" CLASS="TableRowColor">
+ <TD WIDTH="20%" nowrap="nowrap"><B>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="../ref:uri/@uriPath"/>/<xsl:value-of
select="ref:name"/>.html</xsl:attribute>
+ <<xsl:value-of
select="../ref:prefix"/>:<xsl:value-of select="ref:name"/>>
+ </xsl:element><br/>
+ </B></TD>
+ <TD><xsl:value-of select="ref:tagdescription/ref:lead"
disable-output-escaping="yes"/> </TD>
+ </TR>
+ </xsl:for-each>
+ </TABLE>
+ <br/>
+ </xsl:for-each>
+ <HR/>
+ <!-- ======= START OF BOTTOM NAVBAR ====== -->
+ <xsl:call-template name="navbar">
+ <xsl:with-param name="relPathToRoot" select="'./'"/>
+ </xsl:call-template>
+ <!-- ======== END OF BOTTOM NAVBAR ======= -->
+ </BODY>
+ </HTML>
+ </xsl:template>
+</xsl:stylesheet>
Added: incubator/beehive/trunk/netui/docs/tools/xslt/taglib-summary.xslt
==============================================================================
--- (empty file)
+++ incubator/beehive/trunk/netui/docs/tools/xslt/taglib-summary.xslt Thu Aug
5 10:45:52 2004
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:ref="http://apache.org/beehive/netui/tools/doclet/schema"
+ xmlns:xalan="org.apache.xalan.lib.Redirect"
+ extension-element-prefixes="xalan"
+ version="1.0">
+ <xsl:import href="header_footer.xslt"/>
+ <xsl:param name="taglibLocation"/>
+
+ <xsl:template match="/">
+ <xsl:call-template name="make-taglib-summary-pages"/>
+ </xsl:template>
+
+ <!--===============================================================
+ Makes the individual taglib-summary.html pages.
+ For each <jsp-taglib-summary> element in overview.xml,
+ a taglib-summary.html page is made.
+ ================================================================-->
+ <xsl:template name="make-taglib-summary-pages">
+ <xsl:for-each select="ref:jsp-tag-ref-index/ref:jsp-taglib-summary">
+ <xsl:sort select="ref:prefix"/>
+ <xsl:variable name="filename" select="concat($taglibLocation, '/',
ref:uri/@uriPath, '/taglib-summary.html')"/>
+ <xalan:write select="$filename">
+ <HTML>
+ <HEAD>
+ <TITLE>
+ The <<xsl:value-of select="ref:prefix"/>> Tag
Library (Page Flow Tag Library Documentation)
+ </TITLE>
+ <LINK REL ="stylesheet" TYPE="text/css"
HREF="../../../stylesheet.css" TITLE="Style"/>
+ </HEAD>
+ <BODY BGCOLOR="white" onload="windowTitle();">
+ <!-- ========= START OF TOP NAVBAR ========= -->
+ <xsl:call-template name="navbar">
+ <xsl:with-param name="relPathToRoot"
select="'../../../'"/>
+ </xsl:call-template>
+ <!-- ========= END OF TOP NAVBAR ========= -->
+ <H2>
+ The <<xsl:value-of select="ref:prefix"/>> Tag
Library
+ </H2>
+ <P>
+ <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3"
CELLSPACING="0" SUMMARY="">
+ <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+ <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+ <B>Tag Summary</B></FONT></TH>
+ </TR>
+ <!-- ========= Write out links to the individual JSP tag
topics ========= -->
+ <xsl:for-each select="ref:jsp-tag-summary">
+ <TR BGCOLOR="white" CLASS="TableRowColor">
+ <TD WIDTH="15%" nowrap="nowrap"><B> <xsl:element
name="a">
+ <xsl:attribute name="href">../../../<xsl:value-of
select="../ref:uri/@uriPath"/>/<xsl:value-of
select="ref:name"/>.html</xsl:attribute>
+ <xsl:attribute
name="target">right-frame</xsl:attribute>
+ <<xsl:value-of
select="../ref:prefix"/>:<xsl:value-of select="ref:name"/>>
+ </xsl:element></B></TD>
+ <TD><xsl:value-of select="ref:tagdescription/ref:lead"
disable-output-escaping="yes"/> </TD>
+ </TR>
+ </xsl:for-each>
+ </TABLE>
+ </P>
+ <P>
+ <HR/>
+ <!-- ======= START OF BOTTOM NAVBAR ====== -->
+ <xsl:call-template name="navbar">
+ <xsl:with-param name="relPathToRoot"
select="'../../../'"/>
+ </xsl:call-template>
+ <!-- ======== END OF BOTTOM NAVBAR ======= -->
+ </P>
+ </BODY>
+ </HTML>
+ </xalan:write>
+ </xsl:for-each>
+ </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
Modified:
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionMapping.java
==============================================================================
---
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionMapping.java
(original)
+++
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionMapping.java
Thu Aug 5 10:45:52 2004
@@ -25,7 +25,7 @@
/**
- * Bean class to handle our extensions to the Struts <action> tag.
+ * Bean class to handle our extensions to the Struts <action> tag.
* @exclude
*/
public class PageFlowActionMapping extends ActionMapping