Author: abelevich
Date: 2011-03-28 11:18:43 -0400 (Mon, 28 Mar 2011)
New Revision: 22323
Added:
modules/build/resources/trunk/vdl-doc/pom.xml
modules/build/resources/trunk/vdl-doc/src/
modules/build/resources/trunk/vdl-doc/src/main/
modules/build/resources/trunk/vdl-doc/src/main/properties/
modules/build/resources/trunk/vdl-doc/src/main/properties/properties.xml
modules/build/resources/trunk/vdl-doc/src/main/xsl/
modules/build/resources/trunk/vdl-doc/src/main/xsl/alltags-frame.html.xsl
modules/build/resources/trunk/vdl-doc/src/main/xsl/alltags-noframe.html.xsl
modules/build/resources/trunk/vdl-doc/src/main/xsl/function.html.xsl
modules/build/resources/trunk/vdl-doc/src/main/xsl/help-doc.html.xsl
modules/build/resources/trunk/vdl-doc/src/main/xsl/index.html.xsl
modules/build/resources/trunk/vdl-doc/src/main/xsl/overview-frame.html.xsl
modules/build/resources/trunk/vdl-doc/src/main/xsl/overview-summary.html.xsl
modules/build/resources/trunk/vdl-doc/src/main/xsl/stylesheet.css
modules/build/resources/trunk/vdl-doc/src/main/xsl/tag.html.xsl
modules/build/resources/trunk/vdl-doc/src/main/xsl/tld-frame.html.xsl
modules/build/resources/trunk/vdl-doc/src/main/xsl/tld-summary.html.xsl
Log:
https://issues.jboss.org/browse/RF-10598 Get a basic tld document build going with the
files as they are
Added: modules/build/resources/trunk/vdl-doc/pom.xml
===================================================================
--- modules/build/resources/trunk/vdl-doc/pom.xml (rev 0)
+++ modules/build/resources/trunk/vdl-doc/pom.xml 2011-03-28 15:18:43 UTC (rev 22323)
@@ -0,0 +1,230 @@
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.richfaces.vdl</groupId>
+ <artifactId>vdl-doc</artifactId>
+ <version>1.0-SNAPSHOT</version>
+
+ <name>vdl-doc</name>
+ <url>http://richfaces.org</url>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-components-ui</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <!-- To define the plugin version in your parent POM -->
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>xml-maven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>transform</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <transformationSets>
+ <transformationSet>
+ <dir>src/main/properties</dir>
+
<stylesheet>src/main/xsl/tld-frame.html.xsl</stylesheet>
+ <parameters>
+ <parameter>
+ <name>output-dir</name>
+ <value>target/vdldoc</value>
+ </parameter>
+ </parameters>
+ <fileMappers>
+ <fileMapper
+
implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
+ <pattern>^(.*)\.(.*)$</pattern>
+
<replacement>tld-frame-list.txt</replacement>
+ </fileMapper>
+ </fileMappers>
+ </transformationSet>
+ <transformationSet>
+ <dir>src/main/properties</dir>
+
<stylesheet>src/main/xsl/tld-summary.html.xsl</stylesheet>
+ <parameters>
+ <parameter>
+ <name>output-dir</name>
+ <value>target/vdldoc</value>
+ </parameter>
+ </parameters>
+ <fileMappers>
+ <fileMapper
+
implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
+ <pattern>^(.*)\.(.*)$</pattern>
+
<replacement>tld-summary-list.txt</replacement>
+ </fileMapper>
+ </fileMappers>
+ </transformationSet>
+ <transformationSet>
+ <dir>src/main/properties</dir>
+
<stylesheet>src/main/xsl/tag.html.xsl</stylesheet>
+ <parameters>
+ <parameter>
+ <name>output-dir</name>
+ <value>target/vdldoc</value>
+ </parameter>
+ </parameters>
+ <fileMappers>
+ <fileMapper
+
implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
+ <pattern>^(.*)\.(.*)$</pattern>
+ <replacement>tag-list.txt</replacement>
+ </fileMapper>
+ </fileMappers>
+ </transformationSet>
+
+ <transformationSet>
+ <dir>src/main/properties</dir>
+
<outputDir>${project.build.directory}/vdldoc</outputDir>
+
<stylesheet>src/main/xsl/alltags-frame.html.xsl</stylesheet>
+ <fileMappers>
+ <fileMapper
+
implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
+ <pattern>^(.*)\.(.*)$</pattern>
+
<replacement>alltags-frame.html</replacement>
+ </fileMapper>
+ </fileMappers>
+ </transformationSet>
+ <transformationSet>
+ <dir>src/main/properties</dir>
+
<outputDir>${project.build.directory}/vdldoc</outputDir>
+
<stylesheet>src/main/xsl/alltags-noframe.html.xsl</stylesheet>
+ <fileMappers>
+ <fileMapper
+
implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
+ <pattern>^(.*)\.(.*)$</pattern>
+
<replacement>alltags-noframe.html</replacement>
+ </fileMapper>
+ </fileMappers>
+ </transformationSet>
+ <transformationSet>
+ <dir>src/main/properties</dir>
+
<outputDir>${project.build.directory}/vdldoc</outputDir>
+
<stylesheet>src/main/xsl/index.html.xsl</stylesheet>
+ <fileMappers>
+ <fileMapper
+
implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
+ <pattern>^(.*)\.(.*)$</pattern>
+ <replacement>index.html</replacement>
+ </fileMapper>
+ </fileMappers>
+ </transformationSet>
+ <transformationSet>
+ <dir>src/main/properties</dir>
+
<outputDir>${project.build.directory}/vdldoc</outputDir>
+
<stylesheet>src/main/xsl/help-doc.html.xsl</stylesheet>
+ <fileMappers>
+ <fileMapper
+
implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
+ <pattern>^(.*)\.(.*)$</pattern>
+ <replacement>help-doc.html</replacement>
+ </fileMapper>
+ </fileMappers>
+ </transformationSet>
+ <transformationSet>
+ <dir>src/main/properties</dir>
+
<outputDir>${project.build.directory}/vdldoc</outputDir>
+
<stylesheet>src/main/xsl/overview-frame.html.xsl</stylesheet>
+ <fileMappers>
+ <fileMapper
+
implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
+ <pattern>^(.*)\.(.*)$</pattern>
+
<replacement>overview-frame.html</replacement>
+ </fileMapper>
+ </fileMappers>
+ </transformationSet>
+ <transformationSet>
+ <dir>src/main/properties</dir>
+
<outputDir>${project.build.directory}/vdldoc</outputDir>
+
<stylesheet>src/main/xsl/overview-summary.html.xsl</stylesheet>
+ <fileMappers>
+ <fileMapper
+
implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
+ <pattern>^(.*)\.(.*)$</pattern>
+
<replacement>overview-summary.html</replacement>
+ </fileMapper>
+ </fileMappers>
+ </transformationSet>
+ <transformationSet>
+ <dir>src/main/properties</dir>
+
<stylesheet>src/main/xsl/function.html.xsl</stylesheet>
+ <parameters>
+ <parameter>
+ <name>output-dir</name>
+ <value>target/vdldoc/</value>
+ </parameter>
+ </parameters>
+ <fileMappers>
+ <fileMapper
+
implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
+ <pattern>^(.*)\.(.*)$</pattern>
+
<replacement>function-list.txt</replacement>
+ </fileMapper>
+ </fileMappers>
+ </transformationSet>
+
+ </transformationSets>
+
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>net.sf.saxon</groupId>
+ <artifactId>saxon</artifactId>
+ <version>8.7</version>
+ </dependency>
+
+
+ </dependencies>
+ </plugin>
+ <plugin>
+ <!-- unpack necessary dependencies for collecting jsdoc and javadocs
-->
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>deps</id>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-components-ui</artifactId>
+ </artifactItem>
+ </artifactItems>
+ <includes>**/*.taglib.xml</includes>
+
<outputDirectory>${project.build.directory}/taglibs/</outputDirectory>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2.1</version>
+ <configuration>
+ <descriptors>
+
<descriptor>src/assembly/distribution.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: modules/build/resources/trunk/vdl-doc/src/main/properties/properties.xml
===================================================================
--- modules/build/resources/trunk/vdl-doc/src/main/properties/properties.xml
(rev 0)
+++ modules/build/resources/trunk/vdl-doc/src/main/properties/properties.xml 2011-03-28
15:18:43 UTC (rev 22323)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<properties>
+ <window-title>VDL Documentation</window-title>
+ <doc-title>Tag Library Documentation Generator - Generated
Documentation</doc-title>
+
+ <taglibs>
+ <taglib short-name="a4j">
+ <display-name>Ajax4JSF</display-name>
+ <doc-title>Ajax4JSF VDL Documentation</doc-title>
+ <path>../../../target/taglibs/META-INF/a4j.taglib.xml</path>
+ <description>description</description>
+ </taglib>
+ <taglib short-name="rich">
+ <display-name>RichFaces</display-name>
+ <doc-title>RichFaces VDL Documentation</doc-title>
+ <path>../../../target/taglibs/META-INF/rich.taglib.xml</path>
+ <description>description</description>
+ </taglib>
+ </taglibs>
+</properties>
\ No newline at end of file
Added: modules/build/resources/trunk/vdl-doc/src/main/xsl/alltags-frame.html.xsl
===================================================================
--- modules/build/resources/trunk/vdl-doc/src/main/xsl/alltags-frame.html.xsl
(rev 0)
+++ modules/build/resources/trunk/vdl-doc/src/main/xsl/alltags-frame.html.xsl 2011-03-28
15:18:43 UTC (rev 22323)
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : alltags-frame.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the all tags frame (lower left corner), listing all tags
+ and functions included in all tag libraries for this generation.
+-->
+
+<xsl:stylesheet version="1.0"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>All Tags / Functions</title>
+ <link rel="stylesheet" type="text/css"
href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="All Tags / Functions";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <font size="+1" class="FrameHeadingFont">
+ <b>All Tags / Functions</b></font>
+ <br/>
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true"><font
class="FrameItemFont">
+ <xsl:for-each select="/properties/taglibs/taglib">
+ <xsl:apply-templates
+
select="document(path)//javaee:tag|document(path)//javaee:function">
+ <xsl:sort select="/javaee:facelet-taglib/@id"/>
+ <xsl:sort select="javaee:tag-name"/>
+ <xsl:sort select="javaee:function-name"/>
+ </xsl:apply-templates>
+ </xsl:for-each>
+ </font></td>
+ </tr>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="/javaee:facelet-taglib/@id"/>/<xsl:value-of
select="javaee:tag-name"/>.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <xsl:value-of
select="/javaee:facelet-taglib/@id"/>:<xsl:value-of
select="javaee:tag-name"/>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+
+ <!--
+ - Same as above, but add the () to indicate it's a function
+ - and change the HTML to .fn.html
+ -->
+ <xsl:template match="javaee:function">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="/javaee:facelet-taglib/@id"/>/<xsl:value-of
select="javaee:function-name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <i><xsl:value-of
select="/javaee:facelet-taglib/@id"/>:<xsl:value-of
select="javaee:function-name"/>()</i>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: modules/build/resources/trunk/vdl-doc/src/main/xsl/alltags-noframe.html.xsl
===================================================================
--- modules/build/resources/trunk/vdl-doc/src/main/xsl/alltags-noframe.html.xsl
(rev 0)
+++ modules/build/resources/trunk/vdl-doc/src/main/xsl/alltags-noframe.html.xsl 2011-03-28
15:18:43 UTC (rev 22323)
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : alltags-frame.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the all tags page, listing all tags
+ and functions included in all tag libraries for this generation.
+-->
+
+<xsl:stylesheet version="1.0"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>All Tags / Functions</title>
+ <link rel="stylesheet" type="text/css"
href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="All Tags / Functions";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <font size="+1" class="FrameHeadingFont">
+ <b>All Tags / Functions</b></font>
+ <br/>
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true"><font
class="FrameItemFont">
+ <xsl:for-each select="/properties/taglibs/taglib">
+ <xsl:apply-templates
+
select="document(path)//javaee:tag|document(path)//javaee:function">
+ <xsl:sort select="/javaee:facelet-taglib/@id"/>
+ <xsl:sort select="javaee:tag-name"/>
+ <xsl:sort select="javaee:function-name"/>
+ </xsl:apply-templates>
+ </xsl:for-each>
+ </font></td>
+ </tr>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="/javaee:facelet-taglib/@id"/>/<xsl:value-of
select="javaee:tag-name"/>.html</xsl:attribute>
+ <xsl:attribute name="target"></xsl:attribute>
+ <xsl:value-of
select="/javaee:facelet-taglib/@id"/>:<xsl:value-of
select="javaee:tag-name"/></xsl:element>
+ <br/>
+ </xsl:template>
+
+ <!--
+ - Same as above, but add the () to indicate it's a function
+ - and change the HTML to .fn.html
+ -->
+ <xsl:template match="javaee:function">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="/javaee:facelet-taglib/@id"/>/<xsl:value-of
select="javaee:function-name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target"></xsl:attribute>
+ <i><xsl:value-of
select="/javaee:facelet-taglib/@id"/>:<xsl:value-of
select="javaee:function-name"/>()</i></xsl:element>
+ <br/>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: modules/build/resources/trunk/vdl-doc/src/main/xsl/function.html.xsl
===================================================================
--- modules/build/resources/trunk/vdl-doc/src/main/xsl/function.html.xsl
(rev 0)
+++ modules/build/resources/trunk/vdl-doc/src/main/xsl/function.html.xsl 2011-03-28
15:18:43 UTC (rev 22323)
@@ -0,0 +1,371 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : function.html.xsl
+ Created on : Februrary 25, 2003, 7:39 PM
+ Author : mroth
+ Description:
+ Creates the function detail page (right frame), listing the known
+ information for a given function in a tag library.
+-->
+
+<xsl:stylesheet version="1.0"
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <xsl:output method="text" indent="no"/>
+ <xsl:output method="html" indent="yes"
name="html"/>
+
+ <xsl:param name="output-dir">default</xsl:param>
+ <xsl:variable name="window-title">
+ <xsl:value-of select="properties/window-title"/>
+ </xsl:variable>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:for-each select="/properties/taglibs/taglib">
+ <xsl:apply-templates
select="document(path)/javaee:facelet-taglib"/>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template match="javaee:facelet-taglib">
+ <xsl:for-each select="//javaee:function">
+ <xsl:variable name="filename"
+ select="concat($output-dir,'/',
/javaee:facelet-taglib/@id,
'/',javaee:function-name,'.fn.html')"/>
+ <xsl:value-of select="$filename"/>
+ ---
+ <xsl:result-document href="{$filename}"
format="html">
+ <xsl:apply-templates select="."/>
+ </xsl:result-document>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template match="javaee:function">
+ <xsl:variable name="tldname">
+ <xsl:choose>
+ <xsl:when test="display-name!=''">
+ <xsl:value-of select="display-name"/>
+ </xsl:when>
+ <xsl:when test="../@id!=''">
+ <xsl:value-of select="../@id"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="title">
+ <xsl:value-of select="javaee:function-name"/>
+ (<xsl:value-of select="$window-title"/>)
+ </xsl:variable>
+ <html>
+ <head>
+ <title>
+ <xsl:value-of select="$title"/>
+ </title>
+ <meta name="keywords" content="$title"/>
+ <link rel="stylesheet" type="text/css"
href="../stylesheet.css"
+ title="Style"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="<xsl:value-of
select="normalize-space($title)"/>";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_top"><!-- --></a>
+ <table border="0" width="100%"
cellpadding="1" 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="../overview-summary.html">
+ <font CLASS="NavBarFont1">
+ <b>Overview</b>
+ </font>
+ </a>
+  
+ </td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">  
+ <a href="tld-summary.html">
+ <font CLASS="NavBarFont1">
+ <b>Library</b>
+ </font>
+ </a>
+  
+ </td>
+ <td BGCOLOR="#FFFFFF"
CLASS="NavBarCell1Rev">  <font
CLASS="NavBarFont1Rev">
+  Tag </font> 
+ </td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">  
+ <a HREF="../help-doc.html">
+ <font CLASS="NavBarFont1">
+ <b>Help</b>
+ </font>
+ </a>
+  
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top"
ROWSPAN="3">
+ <em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white"
CLASS="NavBarCell2">
+ <font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font>
+ </td>
+ <td BGCOLOR="white"
CLASS="NavBarCell2">
+ <font SIZE="-2">
+  
+ <a HREF="../index.html"
TARGET="_top">
+ <b>FRAMES</b>
+ </a>
+  
+  
+ <xsl:element name="a">
+ <xsl:attribute
name="href"><xsl:value-of
select="javaee:function-name"/>.fn.html
+ </xsl:attribute>
+ <xsl:attribute
name="target">_top</xsl:attribute>
+ <b>NO FRAMES</b>
+ </xsl:element>
+  
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A
HREF="alltags-noframe.html" TARGET=""><B>All
Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html"
TARGET="">
+ <b>All Tags</b>
+ </a>
+ </noscript>
+ </font>
+ </td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+
+ <hr/>
+ <h2>
+ <font size="-1">
+ <xsl:value-of select="$tldname"/>
+ </font>
+ <br/>
+ Function
+ <xsl:value-of select="javaee:function-name"/>
+ </h2>
+ <code>
+ <xsl:value-of
select='substring-before(normalize-space(javaee:function-signature),"
")'/>
+ <b> <xsl:value-of
select="javaee:function-name"/>
+ </b>
+ (<xsl:value-of
+
select='substring-after(normalize-space(javaee:function-signature),"(")'/>
+ </code>
+ <hr/>
+ <xsl:value-of select="javaee:description"
disable-output-escaping="yes"/>
+ <br/>
+ <p/>
+ <xsl:if test="javaee:example!=''">
+ <b>Example:</b>
+ <br/>
+ <pre>
+ <xsl:value-of select="javaee:example"/>
+ </pre>
+ <p/>
+ </xsl:if>
+ <hr/>
+
+ <!-- Function Information -->
+ <table border="1" cellpadding="3"
cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF"
class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2">
+ <b>Function Information</b>
+ </font>
+ </td>
+ </tr>
+ <tr>
+ <td>Function Class</td>
+ <td>
+ <xsl:choose>
+ <xsl:when
test="javaee:function-class!=''">
+ <xsl:value-of
select="javaee:function-class"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>Function Signature</td>
+ <td>
+ <xsl:choose>
+ <xsl:when
test="javaee:function-signature!=''">
+ <xsl:value-of
select="javaee:function-signature"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>Display Name</td>
+ <td>
+ <xsl:choose>
+ <xsl:when
test="javaee:display-name!=''">
+ <xsl:value-of
select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </table>
+ <br/>
+ <p/>
+
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_bottom"><!-- --></a>
+ <table border="0" width="100%"
cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">
+ <a NAME="navbar_bottom_firstrow"><!--
--></a>
+ <table BORDER="0" CELLPADDING="0"
CELLSPACING="3">
+ <tr ALIGN="center"
VALIGN="top">
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">  
+ <a
href="../overview-summary.html">
+ <font CLASS="NavBarFont1">
+ <b>Overview</b>
+ </font>
+ </a>
+  
+ </td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">  
+ <a href="tld-summary.html">
+ <font CLASS="NavBarFont1">
+ <b>Library</b>
+ </font>
+ </a>
+  
+ </td>
+ <td BGCOLOR="#FFFFFF"
CLASS="NavBarCell1Rev">  <font
CLASS="NavBarFont1Rev">
+  Tag </font> 
+ </td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">  
+ <a HREF="../help-doc.html">
+ <font CLASS="NavBarFont1">
+ <b>Help</b>
+ </font>
+ </a>
+  
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top"
ROWSPAN="3">
+ <em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white"
CLASS="NavBarCell2">
+ <font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font>
+ </td>
+ <td BGCOLOR="white"
CLASS="NavBarCell2">
+ <font SIZE="-2">
+  
+ <a HREF="../index.html"
TARGET="_top">
+ <b>FRAMES</b>
+ </a>
+  
+  
+ <xsl:element name="a">
+ <xsl:attribute
name="href"><xsl:value-of
select="javaee:function-name"/>.fn.html
+ </xsl:attribute>
+ <xsl:attribute
name="target">_top</xsl:attribute>
+ <b>NO FRAMES</b>
+ </xsl:element>
+  
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A
HREF="alltags-noframe.html" TARGET=""><B>All
Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html"
TARGET="">
+ <b>All Tags</b>
+ </a>
+ </noscript>
+ </font>
+ </td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+ <hr/>
+ <small>
+ <i>
+ Output Generated by
+ <a
href="http://taglibrarydoc.dev.java.net/"
target="_blank">Tag Library Documentation
+ Generator</a>.
+ Java, JSP, and JavaServer Pages are trademarks or
+ registered trademarks of Sun Microsystems, Inc. in the US and
other
+ countries. Copyright 2002-4 Sun Microsystems, Inc.
+ 4150 Network Circle
+ Santa Clara, CA 95054, U.S.A.
+ All Rights Reserved.
+ </i>
+ </small>
+ </body>
+ </html>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: modules/build/resources/trunk/vdl-doc/src/main/xsl/help-doc.html.xsl
===================================================================
--- modules/build/resources/trunk/vdl-doc/src/main/xsl/help-doc.html.xsl
(rev 0)
+++ modules/build/resources/trunk/vdl-doc/src/main/xsl/help-doc.html.xsl 2011-03-28
15:18:43 UTC (rev 22323)
@@ -0,0 +1,235 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : help-doc.html.xsl
+ Created on : October 2, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the help-doc page for Tag Library Documentation Generator
+-->
+
+<xsl:stylesheet version="1.0"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <HTML>
+ <HEAD>
+ <TITLE>
+ API Help (<xsl:value-of select="properties/window-title"/>)
+ </TITLE>
+ <LINK REL ="stylesheet" TYPE="text/css"
HREF="stylesheet.css" TITLE="Style"/>
+ </HEAD>
+ <SCRIPT>
+ function asd() {
+ parent.document.title="API Help (<xsl:value-of
select="normalize-space(properties/window-title)"/>)";
+ }
+ </SCRIPT>
+ <BODY BGCOLOR="white" onload="asd();">
+ <a name="navbar_top"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1"
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="#FFFFFF" CLASS="NavBarCell1">
 <a href="overview-summary.html"><font
CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<font
CLASS="NavBarFont1"> Library </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<font
CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1Rev">  <font
CLASS="NavBarFont1Rev"><b>Help</b></font> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top"
ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font
SIZE="-2">
+  PREV 
+  NEXT 
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font
SIZE="-2">
+  <a HREF="index.html"
TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="help-doc.html"
TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html"
TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="alltags-noframe.html"
TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <HR/>
+ <CENTER>
+ <H1>How This Tag Library Document Is Organized</H1>
+ </CENTER>
+ This TLD (Tag Library Descriptor) document has pages corresponding
+ to the items in the navigation bar, described as follows.
+ <H3>Overview</H3>
+ <BLOCKQUOTE>
+ <P/>
+ The <A HREF="overview-summary.html">Overview</A> page
is the front
+ page of this TLD document and provides a list of all tag libraries
+ with a summary for each.
+ </BLOCKQUOTE>
+ <H3>Library</H3>
+ <BLOCKQUOTE>
+ <P/>
+ Each tag library has a page that contains a list of its
+ validator, listeners, tags, and functions, with a summary for each.
+ This page can contain four categories:
+ <UL>
+ <li>Validator</li>
+ <li>Listeners</li>
+ <li>Tags</li>
+ <li>Functions</li>
+ </UL>
+ </BLOCKQUOTE>
+ <H3>Validator</H3>
+ <BLOCKQUOTE>
+ <P/>
+ A tag library can have at most one validator. If a tag library
+ has a validator, it has its own page describing the validator,
+ the class that implements the validator, and the available
+ initialization parameters.
+ </BLOCKQUOTE>
+ <h3>Listeners</h3>
+ <blockquote>
+ <p/>
+ A tag library can have zero or more listeners. If a tag library
+ has at least one listener, a page is generated that lists all
+ listener classes registered for the tag library.
+ </blockquote>
+ <h3>Tags</h3>
+ <blockquote>
+ <p/>
+ A tag library can have zero or more tags. Each tag has its own
+ page that describes the tag, its display name, its unique action
+ name, the class that implements the tag, the TagExtraInfo class,
+ the body content type, scripting variable information, attributes,
+ whether the tag supports dynamic attributes, and an optional
+ example use of the tag.
+ </blockquote>
+ <h3>Functions</h3>
+ <blockquote>
+ <p/>
+ A tag library can contain zero or more EL functions. If a tag
+ library has at least one function, a page is generated that lists
+ all functions, the class that implements the function, the
+ function signature, and an optional example use of the function.
+ </blockquote>
+ <!--
+ <H3>Index</H3>
+ <BLOCKQUOTE>
+ The <A HREF="index-files/index-1.html">Index</A>
contains an
+ alphabetic list of all validators, listeners, tags, functions,
+ variables, and attributes.
+ </BLOCKQUOTE>
+ -->
+ <H3>Prev/Next</H3>
+ <blockquote>
+ These links take you to the next or previous validator, listener,
+ tag, function, or related page.
+ </blockquote>
+ <H3>Frames/No Frames</H3>
+ <blockquote>
+ These links show and hide the HTML frames. All pages are available
+ with or without frames.
+ </blockquote>
+ <BR/>
+ <HR/>
+ <a name="navbar_bottom"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1"
cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">
+ <a NAME="navbar_bottom_firstrow"><!--
--></a>
+ <table BORDER="0" CELLPADDING="0"
CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1">
 <a href="overview-summary.html"><font
CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<font
CLASS="NavBarFont1"> Library </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<font
CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1Rev">  <font
CLASS="NavBarFont1Rev"><b>Help</b></font> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top"
ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font
SIZE="-2">
+  PREV 
+  NEXT 
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font
SIZE="-2">
+  <a HREF="index.html"
TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="help-doc.html"
TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html"
TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="alltags-noframe.html"
TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <HR/>
+ <small><i>
+ Output Generated by
+ <a
href="http://taglibrarydoc.dev.java.net/"
target="_blank">Tag Library Documentation Generator</a>.
+ Java, JSP, and JavaServer Pages are trademarks or
+ registered trademarks of Sun Microsystems, Inc. in the US and other
+ countries. Copyright 2002-4 Sun Microsystems, Inc.
+ 4150 Network Circle
+ Santa Clara, CA 95054, U.S.A.
+ All Rights Reserved.
+ </i></small>
+ </BODY>
+ </HTML>
+ </xsl:template>
+</xsl:stylesheet>
Added: modules/build/resources/trunk/vdl-doc/src/main/xsl/index.html.xsl
===================================================================
--- modules/build/resources/trunk/vdl-doc/src/main/xsl/index.html.xsl
(rev 0)
+++ modules/build/resources/trunk/vdl-doc/src/main/xsl/index.html.xsl 2011-03-28 15:18:43
UTC (rev 22323)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : index.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the index page for Tag Library Documentation Generator
+-->
+
+<xsl:stylesheet version="1.0"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>
+ <xsl:value-of select="properties/window-title"/>
+ </title>
+ </head>
+ <frameset cols="20%,80%">
+ <frameset rows="30%,70%">
+ <frame src="overview-frame.html"
name="tldListFrame"/>
+ <frame src="alltags-frame.html" name="tldFrame"/>
+ </frameset>
+ <frame src="overview-summary.html" name="tagFrame"/>
+ </frameset>
+ <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>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>
Added: modules/build/resources/trunk/vdl-doc/src/main/xsl/overview-frame.html.xsl
===================================================================
--- modules/build/resources/trunk/vdl-doc/src/main/xsl/overview-frame.html.xsl
(rev 0)
+++ modules/build/resources/trunk/vdl-doc/src/main/xsl/overview-frame.html.xsl 2011-03-28
15:18:43 UTC (rev 22323)
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : overview-frame.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the overview frame (upper left corner), listing all tag
+ libraries included in this generation.
+-->
+
+<xsl:stylesheet version="1.0"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:fo="http://www.w3.org/1999/XSL/Format"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>
+ Overview (<xsl:value-of select="properties/window-title"/>)
+ </title>
+ <link rel="stylesheet" type="text/css"
href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd() {
+ parent.document.title="Overview (<xsl:value-of
select="normalize-space(properties/window-title)"/>)";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameTitleFont">
+ <b><xsl:value-of
select="properties/doc-title"/></b>
+ </font>
+ </td>
+ </tr>
+ </table>
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true">
+ <font class="FrameItemFont">
+ <a href="alltags-frame.html"
target="tldFrame"><xsl:text>All Tags /
Functions</xsl:text></a>
+ </font>
+ <p/>
+ <font size="+1" class="FrameHeadingFont">
+ Tag Libraries
+ </font>
+ <br/>
+ <xsl:apply-templates
select="/properties/taglibs/taglib"/>
+ </td>
+ </tr>
+ </table>
+ <p/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="taglib">
+ <font class="FrameItemFont">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="@short-name"/>/tld-frame.html</xsl:attribute>
+ <xsl:attribute name="target">tldFrame</xsl:attribute>
+ <xsl:choose>
+ <xsl:when test="display-name!=''">
+ <xsl:value-of select="display-name"/>
+ </xsl:when>
+ <xsl:when test="@short-name!=''">
+ <xsl:value-of select="@short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </font>
+ <br/>
+ </xsl:template>
+</xsl:stylesheet>
Added: modules/build/resources/trunk/vdl-doc/src/main/xsl/overview-summary.html.xsl
===================================================================
--- modules/build/resources/trunk/vdl-doc/src/main/xsl/overview-summary.html.xsl
(rev 0)
+++
modules/build/resources/trunk/vdl-doc/src/main/xsl/overview-summary.html.xsl 2011-03-28
15:18:43 UTC (rev 22323)
@@ -0,0 +1,208 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : overview-summary.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates an overview summary (right frame), listing all tag
+ libraries included in this generation.
+-->
+
+<xsl:stylesheet version="1.0"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>
+ Overview (<xsl:value-of select="properties/window-title"/>)
+ </title>
+ <link rel="stylesheet" type="text/css"
href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd() {
+ parent.document.title="Overview (<xsl:value-of
select="normalize-space(properties/window-title)"/>)";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_top"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1"
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="#FFFFFF"
CLASS="NavBarCell1Rev"> <font
CLASS="NavBarFont1Rev"><b> Overview </b></font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<font
CLASS="NavBarFont1"> Library </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<font
CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 <a HREF="help-doc.html"><font
CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top"
ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font
SIZE="-2">
+ <!-- PREV -->
+ <!-- NEXT -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font
SIZE="-2">
+  <a HREF="index.html"
TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="overview-summary.html"
TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html"
TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="alltags-noframe.html"
TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+ <hr/>
+ <center>
+ <h2><xsl:value-of
select="properties/doc-title"/></h2>
+ </center>
+ <table BORDER="1" CELLPADDING="3"
CELLSPACING="0" WIDTH="100%">
+ <tr BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+ <td COLSPAN="2"><font SIZE="+2">
+ <b>Tag Libraries</b>
+ </font></td>
+ </tr>
+ <xsl:apply-templates select="/properties/taglibs/taglib"/>
+ </table>
+ <p/>
+ <hr/>
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_bottom"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1"
cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">
+ <a NAME="navbar_bottom_firstrow"><!--
--></a>
+ <table BORDER="0" CELLPADDING="0"
CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#FFFFFF"
CLASS="NavBarCell1Rev"> <font
CLASS="NavBarFont1Rev"><b> Overview </b></font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<font
CLASS="NavBarFont1"> Library </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<font
CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 <a HREF="help-doc.html"><font
CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top"
ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font
SIZE="-2">
+ <!-- PREV -->
+ <!-- NEXT -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font
SIZE="-2">
+  <a HREF="index.html"
TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="overview-summary.html"
TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html"
TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="alltags-noframe.html"
TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+ <hr/>
+ <small><i>
+ Output Generated by
+ <a
href="http://taglibrarydoc.dev.java.net/"
target="_blank">Tag Library Documentation Generator</a>.
+ Java, JSP, and JavaServer Pages are trademarks or
+ registered trademarks of Sun Microsystems, Inc. in the US and other
+ countries. Copyright 2002-4 Sun Microsystems, Inc.
+ 4150 Network Circle
+ Santa Clara, CA 95054, U.S.A.
+ All Rights Reserved.
+ </i></small>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="taglib">
+ <tr BGCOLOR="white" valign="top"
CLASS="TableRowColor">
+ <td WIDTH="20%"><b>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="@short-name"/>/tld-summary.html</xsl:attribute>
+ <xsl:choose>
+ <xsl:when test="display-name!=''">
+ <xsl:value-of select="display-name"/>
+ </xsl:when>
+ <xsl:when test="@short-name!=''">
+ <xsl:value-of select="@short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </b></td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="description!=''">
+ <pre>
+ <xsl:value-of select="description"
disable-output-escaping="yes"/>
+ </pre>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+</xsl:stylesheet>
Added: modules/build/resources/trunk/vdl-doc/src/main/xsl/stylesheet.css
===================================================================
--- modules/build/resources/trunk/vdl-doc/src/main/xsl/stylesheet.css
(rev 0)
+++ modules/build/resources/trunk/vdl-doc/src/main/xsl/stylesheet.css 2011-03-28 15:18:43
UTC (rev 22323)
@@ -0,0 +1,60 @@
+/* Javadoc style sheet */
+
+/*
+ * <license>
+ * Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * * Neither the name of Sun Microsystems, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * </license>
+ */
+
+/* Define colors, fonts and other style attributes here to override the defaults */
+
+/* Page background color */
+body { background-color: #FFFFFF }
+
+/* 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: 10pts; font-family: Helvetica, Arial, san-serif }
+.FrameHeadingFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif }
+.FrameItemFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif }
+
+/* Example of smaller, sans-serif font in frames */
+/* .FrameItemFont { font-size: 10pt; 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: modules/build/resources/trunk/vdl-doc/src/main/xsl/tag.html.xsl
===================================================================
--- modules/build/resources/trunk/vdl-doc/src/main/xsl/tag.html.xsl
(rev 0)
+++ modules/build/resources/trunk/vdl-doc/src/main/xsl/tag.html.xsl 2011-03-28 15:18:43
UTC (rev 22323)
@@ -0,0 +1,527 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright (c) 2003-2004,-2010 Oracle and/or its affiliates. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ - Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ - Neither the name of Oracle nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+-->
+
+<!--
+ Document : tag.html.xsl
+ Created on : December 18, 2002, 5:22 PM
+ Author : mroth
+ Description:
+ Creates the tag detail page (right frame), listing the known
+ information for a given tag in a tag library.
+-->
+<xsl:stylesheet
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ version="2.0">
+
+ <xsl:output method="html" indent="yes"
name="html"/>
+
+ <xsl:param name="output-dir"/>
+
+ <xsl:variable name="window-title">
+ <xsl:value-of select="properties/window-title"/>
+ </xsl:variable>
+
+ <xsl:template match="/">
+ <xsl:for-each select="/properties/taglibs/taglib">
+ <xsl:apply-templates
select="document(path)/javaee:facelet-taglib"/>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template match="javaee:facelet-taglib">
+
+ <xsl:variable name="namespace"
select="/javaee:facelet-taglib/@id"/>
+
+ <xsl:for-each select="//javaee:tag">
+ <xsl:variable name="tagname">
+ <xsl:value-of select="javaee:tag-name"/>
+ </xsl:variable>
+ <xsl:variable name="filename"
+
select="concat($output-dir,'/',$namespace,'/',javaee:tag-name,'.html')"/>
+ <!--<xsl:value-of select="$filename"/>-->
+ <!-- Creating -->
+ <xsl:result-document href="{$filename}"
format="html">
+ <xsl:apply-templates select=".">
+ <xsl:with-param name="namespace"
select="$namespace"/>
+ <xsl:with-param name="tagname"
select="$tagname"/>
+ </xsl:apply-templates>
+ </xsl:result-document>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag">
+ <xsl:param name="namespace"/>
+ <xsl:param name="tagname"/>
+ <xsl:variable name="title">
+ <xsl:value-of select="$tagname"/>
+ (<xsl:value-of select="$window-title"/>)
+ </xsl:variable>
+ <html>
+ <head>
+ <title>
+ <xsl:value-of select="$title"/>
+ </title>
+ <meta name="keywords" content="$tagname"/>
+ <link rel="stylesheet" type="text/css"
href="../stylesheet.css"
+ title="Style"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="<xsl:value-of
select="normalize-space($title)"/>";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_top"><!-- --></a>
+ <table border="0" width="100%"
cellpadding="1" 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="../overview-summary.html">
+ <font CLASS="NavBarFont1">
+ <b>Overview</b>
+ </font>
+ </a>
+  
+ </td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">  
+ <a href="tld-summary.html">
+ <font CLASS="NavBarFont1">
+ <b>Library</b>
+ </font>
+ </a>
+  
+ </td>
+ <td BGCOLOR="#FFFFFF"
CLASS="NavBarCell1Rev">  <font
+
CLASS="NavBarFont1Rev"> Tag </font> 
+ </td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">  
+ <a HREF="../help-doc.html">
+ <font CLASS="NavBarFont1">
+ <b>Help</b>
+ </font>
+ </a>
+  
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top"
ROWSPAN="3">
+ <em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white"
CLASS="NavBarCell2">
+ <font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font>
+ </td>
+ <td BGCOLOR="white"
CLASS="NavBarCell2">
+ <font SIZE="-2">
+  
+ <a HREF="../index.html"
TARGET="_top">
+ <b>FRAMES</b>
+ </a>
+  
+  
+ <xsl:element name="a">
+ <xsl:attribute
name="href"><xsl:value-of
select="javaee:tag-name"/>.html</xsl:attribute>
+ <xsl:attribute
name="target">_top</xsl:attribute>
+ <b>NO FRAMES</b>
+ </xsl:element>
+  
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A
HREF="alltags-noframe.html" TARGET=""><B>All
Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html"
TARGET="">
+ <b>All Tags</b>
+ </a>
+ </noscript>
+ </font>
+ </td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+
+ <hr/>
+ <h2>
+ <font size="-1">
+ <xsl:value-of select="$namespace"/>
+ </font>
+ <br/>
+ Tag
+ <xsl:value-of select="javaee:tag-name"/>
+ </h2>
+ <hr/>
+ <xsl:choose>
+ <xsl:when test="javaee:component">
+
+ <xsl:value-of
select="javaee:component/javaee:description"
disable-output-escaping="yes"/>
+ <br/>
+ <p/>
+ <hr/>
+
+ <!-- Tag Information -->
+ <table border="1" cellpadding="3"
cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF"
class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2">
+ <b>Tag Information</b>
+ </font>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td>Component type</td>
+ <td>
+ <xsl:variable name="component-type">
+ <xsl:value-of
select="javaee:component/javaee:component-type"/>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when
test="$component-type!=''">
+ <xsl:value-of
select="$component-type"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>Tag Name</td>
+ <td>
+ <xsl:variable name="fulltagname"
select="concat($namespace,':',$tagname)"/>
+ <xsl:value-of
select="$fulltagname"/>
+ </td>
+ </tr>
+ <tr>
+ <td>Renderer Type</td>
+ <td>
+ <xsl:choose>
+ <xsl:when
test="javaee:component/javaee:renderer-type!=''">
+ <xsl:value-of
select="javaee:component/javaee:renderer-type"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>Handler Class</td>
+ <td>
+ <xsl:choose>
+ <xsl:when
test="javaee:component/javaee:handler-class!=''">
+ <xsl:value-of
select="javaee:component/javaee:handler-class"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </table>
+ </xsl:when>
+ <xsl:when test="javaee:behavior">
+ <xsl:value-of
select="javaee:behavior/javaee:description"
disable-output-escaping="yes"/>
+ <br/>
+ <p/>
+ <hr/>
+
+ <!-- Tag Information -->
+ <table border="1" cellpadding="3"
cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF"
class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2">
+ <b>Tag Information</b>
+ </font>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td>Handler Id</td>
+ <td>
+ <xsl:variable name="handler-id">
+ <xsl:value-of
select="javaee:behavior/javaee:behavior-id"/>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when
test="$handler-id!=''">
+ <xsl:value-of
select="$handler-id"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+
+ <tr>
+ <td>Handler Class</td>
+ <td>
+ <xsl:choose>
+ <xsl:when
test="javaee:behavior/javaee:handler-class!=''">
+ <xsl:value-of
select="javaee:behavior/javaee:handler-class"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </table>
+ </xsl:when>
+ <xsl:when test="javaee:handler-class">
+ <table border="1" cellpadding="3"
cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF"
class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2">
+ <b>Tag Information</b>
+ </font>
+ </td>
+ </tr>
+
+ <tr>
+ <td>Handler Class</td>
+ <td>
+ <xsl:value-of
select="javaee:handler-class"/>
+ </td>
+ </tr>
+ </table>
+ </xsl:when>
+ </xsl:choose>
+
+
+ <br/>
+ <p/>
+ <table border="1" cellpadding="3"
cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF"
class="TableHeadingColor">
+ <td colspan="5">
+ <font size="+2">
+ <b>Supported Facets</b>
+ </font>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="5">No facets</td>
+ </tr>
+
+ </table>
+ <br/>
+ <p/>
+
+
+ <table border="1" cellpadding="3"
cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF"
class="TableHeadingColor">
+ <td colspan="5">
+ <font size="+2">
+ <b>Attributes</b>
+ </font>
+ </td>
+ </tr>
+ <xsl:choose>
+ <xsl:when test="count(javaee:attribute)>0">
+ <tr>
+ <td>
+ <b>Name</b>
+ </td>
+ <td>
+ <b>Required</b>
+ </td>
+
+ <td>
+ <b>Type</b>
+ </td>
+ <td>
+ <b>Description</b>
+ </td>
+ </tr>
+ <xsl:apply-templates
select="javaee:attribute"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <td colspan="5">
+ <i>No Attributes Defined.</i>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table>
+ <br/>
+ <p/>
+
+
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_bottom"><!-- --></a>
+ <table border="0" width="100%"
cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">
+ <a NAME="navbar_bottom_firstrow"><!--
--></a>
+ <table BORDER="0" CELLPADDING="0"
CELLSPACING="3">
+ <tr ALIGN="center"
VALIGN="top">
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">  
+ <a
href="../overview-summary.html">
+ <font CLASS="NavBarFont1">
+ <b>Overview</b>
+ </font>
+ </a>
+  
+ </td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">  
+ <a href="tld-summary.html">
+ <font CLASS="NavBarFont1">
+ <b>Library</b>
+ </font>
+ </a>
+  
+ </td>
+ <td BGCOLOR="#FFFFFF"
CLASS="NavBarCell1Rev">  <font
+
CLASS="NavBarFont1Rev"> Tag </font> 
+ </td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">  
+ <a HREF="../help-doc.html">
+ <font CLASS="NavBarFont1">
+ <b>Help</b>
+ </font>
+ </a>
+  
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top"
ROWSPAN="3">
+ <em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white"
CLASS="NavBarCell2">
+ <font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font>
+ </td>
+ <td BGCOLOR="white"
CLASS="NavBarCell2">
+ <font SIZE="-2">
+  
+ <a HREF="../index.html"
TARGET="_top">
+ <b>FRAMES</b>
+ </a>
+  
+  
+ <xsl:element name="a">
+ <xsl:attribute
name="href"><xsl:value-of select="javaee:tag-name"/>.html
+ </xsl:attribute>
+ <xsl:attribute
name="target">_top</xsl:attribute>
+ <b>NO FRAMES</b>
+ </xsl:element>
+  
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A
HREF="alltags-noframe.html" TARGET=""><B>All
Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html"
TARGET="">
+ <b>All Tags</b>
+ </a>
+ </noscript>
+ </font>
+ </td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+ <hr/>
+ <small>
+ <i>
+ Output Generated by
+ <a
href="http://taglibrarydoc.dev.java.net/"
target="_blank">Tag Library Documentation
+ Generator</a>.
+ </i>
+ </small>
+ </body>
+ </html>
+
+ </xsl:template>
+
+ <xsl:template match="javaee:attribute">
+ <tr valign="top">
+ <td>
+ <xsl:apply-templates select="javaee:name"/>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:required!=''">
+ <xsl:value-of select="javaee:required"/>
+ </xsl:when>
+ <xsl:otherwise>false</xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:type!=''">
+ <code>
+ <xsl:value-of select="javaee:type"/>
+ </code>
+ </xsl:when>
+ <xsl:otherwise>
+ <code>java.lang.String</code>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <xsl:value-of select="javaee:description"
disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
Added: modules/build/resources/trunk/vdl-doc/src/main/xsl/tld-frame.html.xsl
===================================================================
--- modules/build/resources/trunk/vdl-doc/src/main/xsl/tld-frame.html.xsl
(rev 0)
+++ modules/build/resources/trunk/vdl-doc/src/main/xsl/tld-frame.html.xsl 2011-03-28
15:18:43 UTC (rev 22323)
@@ -0,0 +1,168 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+
+ Copyright (c) 2003-2004,-2010 Oracle and/or its affiliates. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ - Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ - Neither the name of Oracle nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+-->
+
+<!--
+ Document : tld-frame.html.xsl
+ Created on : December 18, 2002, 11:40 AM
+ Author : mroth
+ Description:
+ Creates the TLD frame (lower-left hand corner), listing the tags
+ and functions that are in this particular tag library.
+-->
+
+<xsl:stylesheet version="1.0"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"
name="html"/>
+ <!--<xsl:param
name="facelet-taglib-shortNamespace">default</xsl:param>-->
+ <xsl:param name="output-dir" />
+ <xsl:variable name="window-title">
+ <xsl:value-of select="properties/window-title"/>
+ </xsl:variable>
+
+
+ <xsl:template match="/">
+ <xsl:for-each select="/properties/taglibs/taglib">
+ <xsl:apply-templates
select="document(path)/javaee:facelet-taglib">
+ <xsl:with-param name="display-name"
select="display-name" />
+ <xsl:with-param name="description"
select="description" />
+ </xsl:apply-templates>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template match="javaee:facelet-taglib">
+ <xsl:param name="display-name" />
+ <xsl:param name="description" />
+ <xsl:variable name="taglibname">
+ <xsl:choose>
+ <xsl:when test="$display-name!=''">
+ <xsl:value-of select="$display-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="taglibfull">
+ <xsl:value-of select="$taglibname"/>
+ <xsl:choose>
+ <xsl:when test="$description!=''">
+ (<xsl:value-of select="$description"
disable-output-escaping="yes"/>)
+ </xsl:when>
+ <xsl:otherwise>
+ No Description
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="filename"
+ select="concat($output-dir,'/', @id,
'/tld-frame.html')"/>
+ <xsl:value-of select="$filename"/>
+
+ <xsl:result-document href="{$filename}" format="html">
+ <html>
+ <head>
+ <title>
+ <xsl:value-of select="$taglibfull"/>
+ </title>
+ <meta name="keywords" content="$taglibfull"/>
+ <link rel="stylesheet" type="text/css"
href="../stylesheet.css"
+ title="Style"/>
+ <script>
+ function asd()
+ {
+ parent.document.title="<xsl:value-of
select="normalize-space($taglibfull)"/>";
+ }
+ </script>
+ </head>
+ <body bgcolor="white" onload="asd();">
+ <font size="+1" class="FrameTitleFont">
+ <a href="tld-summary.html" target="tagFrame">
+ <xsl:value-of select="$taglibfull"/>
+ </a>
+ </font>
+ <table border="0" width="100%">
+ <xsl:if test="(count(javaee:tag))>0">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameHeadingFont">
+ Tags
+ </font> 
+ <font class="FrameItemFont">
+ <!--<xsl:apply-templates
select="javaee:tag|javaee:tag-file"/>-->
+ <xsl:apply-templates select="javaee:tag"/>
+ </font>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="count(javaee:function)>0">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameHeadingFont">
+ Functions
+ </font> 
+ <font class="FrameItemFont">
+ <xsl:apply-templates select="javaee:function"/>
+ </font>
+ </td>
+ </tr>
+ </xsl:if>
+
+ </table>
+ <!-- <table ... -->
+ </body>
+ </html>
+ </xsl:result-document>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag">
+ <br/>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="javaee:tag-name"/>.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <xsl:value-of select="../@id"/>:<xsl:value-of
select="javaee:tag-name"/>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="javaee:function">
+ <br/>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="javaee:function-name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <i><xsl:value-of select="../@id"/>:<xsl:value-of
select="javaee:function-name"/>()</i>
+ </xsl:element>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: modules/build/resources/trunk/vdl-doc/src/main/xsl/tld-summary.html.xsl
===================================================================
--- modules/build/resources/trunk/vdl-doc/src/main/xsl/tld-summary.html.xsl
(rev 0)
+++ modules/build/resources/trunk/vdl-doc/src/main/xsl/tld-summary.html.xsl 2011-03-28
15:18:43 UTC (rev 22323)
@@ -0,0 +1,458 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : tld-summary.html.xsl
+ Created on : December 18, 2002, 3:46 PM
+ Author : mroth
+ Description:
+ Creates the TLD summary (right frame), listing the tags
+ and functions that are in this particular tag library and
+ their descriptions.
+-->
+
+<xsl:stylesheet version="1.0"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"
name="html"/>
+
+ <xsl:param name="output-dir"/>
+ <xsl:variable name="window-title">
+ <xsl:value-of select="properties/window-title"/>
+ </xsl:variable>
+
+
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:for-each select="/properties/taglibs/taglib">
+ <xsl:apply-templates
select="document(path)/javaee:facelet-taglib">
+ <xsl:with-param name="display-name"
select="display-name" />
+ <xsl:with-param name="description"
select="description" />
+ </xsl:apply-templates>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template match="javaee:facelet-taglib">
+ <xsl:param name="display-name" />
+ <xsl:param name="description" />
+ <xsl:variable name="taglibname">
+ <xsl:choose>
+ <xsl:when test="$display-name!=''">
+ <xsl:value-of select="$display-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="taglibshortname">
+ <xsl:value-of select="@id"/>
+ </xsl:variable>
+ <xsl:variable name="title">
+ <xsl:value-of select="$taglibname"/>
+ (<xsl:value-of select="$description" />)
+ </xsl:variable>
+ <xsl:variable name="filename"
+ select="concat($output-dir,'/', @id,
'/tld-summary.html')"/>
+ <xsl:value-of select="$filename"/>
+ <xsl:result-document href="{$filename}" format="html">
+ <html>
+ <head>
+ <title>
+ <xsl:value-of select="$title"/>
+ </title>
+ <link rel="stylesheet" type="text/css"
href="../stylesheet.css"
+ title="styie"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="<xsl:value-of
select="normalize-space($title)"/>";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_top"><!-- --></a>
+ <table border="0" width="100%"
cellpadding="1" 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="../overview-summary.html">
+ <font
CLASS="NavBarFont1">
+ <b>Overview</b>
+ </font>
+ </a>
+  
+ </td>
+ <td BGCOLOR="#FFFFFF"
CLASS="NavBarCell1Rev">  <font
+
CLASS="NavBarFont1Rev"> Library </font> 
+ </td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">
+ <font
CLASS="NavBarFont1"> Tag </font>
+ </td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">  
+ <a HREF="../help-doc.html">
+ <font
CLASS="NavBarFont1">
+ <b>Help</b>
+ </font>
+ </a>
+  
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top"
ROWSPAN="3">
+ <em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white"
CLASS="NavBarCell2">
+ <font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font>
+ </td>
+ <td BGCOLOR="white"
CLASS="NavBarCell2">
+ <font SIZE="-2">
+  
+ <a HREF="../index.html"
TARGET="_top">
+ <b>FRAMES</b>
+ </a>
+  
+  
+ <a HREF="tld-summary.html"
TARGET="_top">
+ <b>NO FRAMES</b>
+ </a>
+  
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A
HREF="alltags-noframe.html" TARGET=""><B>All
Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html"
TARGET="">
+ <b>All Tags</b>
+ </a>
+ </noscript>
+ </font>
+ </td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+
+ <hr/>
+ <h2>
+ <xsl:value-of select="$taglibshortname"/>
+ </h2>
+ <hr/>
+ <xsl:if test="(javaee:namespace!='') and
($taglibshortname!='')">
+ <b>XML Syntax:</b>
+ <br/>
+ <code>
+     
+ <xsl:choose>
+ <xsl:when
test='starts-with(javaee:uri,"/WEB-INF/tags")'>
+ <anyxmlelement xmlns:<xsl:value-of
+
select="$taglibshortname"/>="urn:jsptagdir:<xsl:value-of
select="javaee:namespace"/>"
+ />
+ <br/>
+ </xsl:when>
+ <xsl:when
test='starts-with(javaee:uri,"/")'>
+ <anyxmlelement xmlns:<xsl:value-of
+
select="$taglibshortname"/>="urn:jsptld:<xsl:value-of
select="javaee:namespace"/>" />
+ <br/>
+ </xsl:when>
+ <xsl:otherwise>
+ <anyxmlelement xmlns:<xsl:value-of
select="$taglibshortname"/>="<xsl:value-of
+ select="javaee:namespace"/>"
/>
+ <br/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </code>
+ <hr/>
+ </xsl:if>
+ <xsl:choose>
+ <xsl:when test="$description!=''">
+ <pre>
+ <xsl:value-of select="$description"
disable-output-escaping="yes"/>
+ </pre>
+ </xsl:when>
+ <xsl:otherwise>
+ No Description
+ </xsl:otherwise>
+ </xsl:choose>
+ <p/>
+ <table border="1" cellpadding="3"
cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF"
class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2">
+ <b>Tag Library Information</b>
+ </font>
+ </td>
+ </tr>
+ <tr>
+ <td>Display Name</td>
+ <xsl:choose>
+ <xsl:when
test="$display-name!=''">
+ <td>
+ <xsl:value-of
select="$display-name"/>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td>
+ <i>None</i>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+
+ <tr>
+ <td>Short Name</td>
+ <xsl:choose>
+ <xsl:when
test="$taglibshortname!=''">
+ <td>
+ <xsl:value-of
select="$taglibshortname"/>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td>
+ <i>None</i>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ <tr>
+ <td>URI</td>
+ <xsl:choose>
+ <xsl:when
test="javaee:namespace!=''">
+ <td>
+ <xsl:value-of
select="javaee:namespace"/>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td>
+ <i>None</i>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ </table>
+  
+ <p/>
+ <!-- tags and tag files -->
+ <xsl:if test="(count(javaee:tag)) > 0">
+ <table border="1" cellpadding="3"
cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF"
class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2">
+ <b>Tag Summary</b>
+ </font>
+ </td>
+ </tr>
+ <xsl:apply-templates select="javaee:tag"/>
+ </table>
+  
+ <p/>
+ </xsl:if>
+ <!-- functions -->
+ <xsl:if test="count(javaee:function) > 0">
+ <table border="1" cellpadding="3"
cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF"
class="TableHeadingColor">
+ <td colspan="3">
+ <font size="+2">
+ <b>Function Summary</b>
+ </font>
+ </td>
+ </tr>
+ <xsl:apply-templates
select="javaee:function"/>
+ </table>
+  
+ <p/>
+ </xsl:if>
+ <!-- taglib-extensions -->
+
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_bottom"><!-- --></a>
+ <table border="0" width="100%"
cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">
+ <a NAME="navbar_bottom_firstrow"><!--
--></a>
+ <table BORDER="0" CELLPADDING="0"
CELLSPACING="3">
+ <tr ALIGN="center"
VALIGN="top">
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">  
+ <a
href="../overview-summary.html">
+ <font
CLASS="NavBarFont1">
+ <b>Overview</b>
+ </font>
+ </a>
+  
+ </td>
+ <td BGCOLOR="#FFFFFF"
CLASS="NavBarCell1Rev">  <font
+
CLASS="NavBarFont1Rev"> Library </font> 
+ </td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">
+ <font
CLASS="NavBarFont1"> Tag </font>
+ </td>
+ <td BGCOLOR="#EEEEFF"
CLASS="NavBarCell1">  
+ <a HREF="../help-doc.html">
+ <font
CLASS="NavBarFont1">
+ <b>Help</b>
+ </font>
+ </a>
+  
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top"
ROWSPAN="3">
+ <em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white"
CLASS="NavBarCell2">
+ <font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font>
+ </td>
+ <td BGCOLOR="white"
CLASS="NavBarCell2">
+ <font SIZE="-2">
+  
+ <a HREF="../index.html"
TARGET="_top">
+ <b>FRAMES</b>
+ </a>
+  
+  
+ <a HREF="tld-summary.html"
TARGET="_top">
+ <b>NO FRAMES</b>
+ </a>
+  
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A
HREF="alltags-noframe.html" TARGET=""><B>All
Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html"
TARGET="">
+ <b>All Tags</b>
+ </a>
+ </noscript>
+ </font>
+ </td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+ <hr/>
+ <small>
+ <i>
+ Java, JSP, and JavaServer Pages are trademarks or registered
+ trademarks of Sun Microsystems, Inc. in the US and other
countries.
+ Copyright 2002-3 Sun Microsystems, Inc.
+ 4150 Network Circle
+ Santa Clara, CA 95054, U.S.A.
+ All Rights Reserved.
+ </i>
+ </small>
+ </body>
+ </html>
+ </xsl:result-document>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag">
+ <tr bgcolor="white" class="TableRowColor">
+ <td width="15%">
+ <b>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="javaee:tag-name"/>.html</xsl:attribute>
+ <xsl:value-of select="javaee:tag-name"/>
+ </xsl:element>
+ </b>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when
test="javaee:component/javaee:description!=''">
+ <xsl:value-of select="javaee:component/javaee:description"
disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:when
test="javaee:behavior/javaee:description!=''">
+ <xsl:value-of select="javaee:behavior/javaee:description"
disable-output-escaping="yes"/>
+ </xsl:when>
+
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="javaee:function">
+ <tr bgcolor="white" class="TableRowColor">
+ <td width="15%" nowrap="" align="right">
+ <code><xsl:value-of
select='substring-before(normalize-space(javaee:function-signature),"
")'/></code>
+ </td>
+ <td width="15%" nowrap="">
+ <code><b>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="javaee:function-name"/>.fn.html</xsl:attribute>
+ <xsl:value-of select="javaee:function-name"/>
+ </xsl:element>
+ </b>( <xsl:value-of
select='substring-after(normalize-space(javaee:function-signature),"(")'/>
+ </code>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <xsl:value-of select="javaee:description"
disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+
+</xsl:stylesheet>