Author: nbelaevski
Date: 2010-02-17 07:47:39 -0500 (Wed, 17 Feb 2010)
New Revision: 16466
Added:
root/cdk-sandbox/
root/cdk-sandbox/branches/
root/cdk-sandbox/tags/
root/cdk-sandbox/trunk/
root/cdk-sandbox/trunk/xsd2javadoc/
root/cdk-sandbox/trunk/xsd2javadoc/pom.xml
root/cdk-sandbox/trunk/xsd2javadoc/src/
root/cdk-sandbox/trunk/xsd2javadoc/src/main/
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/BodyContent.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/ExtensibleType.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/FunctionType.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/IconType.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/ObjectFactory.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TagType.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldAttributeType.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldDeferredMethodType.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldDeferredValueType.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldExtensionType.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldTaglibType.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/package-info.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/xsd2tld/
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/xsd2tld/CatalogModelImpl.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/xsd2tld/SchemaTransformer.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/xsd2tld/SchemaTransformerUtils.java
root/cdk-sandbox/trunk/xsd2javadoc/src/main/resources/
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/alltags-frame.html.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/alltags-noframe.html.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/function.html.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/help-doc.html.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/index.html.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/overview-frame.html.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/overview-summary.html.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/stylesheet.css
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tag.html.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld-frame.html.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld-summary.html.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld1_1-tld1_2.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld1_2-tld2_0.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld2_0-tld2_1.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld2_1-tld2_1.xsl
root/cdk-sandbox/trunk/xsd2javadoc/src/test/
root/cdk-sandbox/trunk/xsd2javadoc/src/test/java/
Log:
xsd2javadoc module initial check-in
Added: root/cdk-sandbox/trunk/xsd2javadoc/pom.xml
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/pom.xml (rev 0)
+++ root/cdk-sandbox/trunk/xsd2javadoc/pom.xml 2010-02-17 12:47:39 UTC (rev 16466)
@@ -0,0 +1,142 @@
+<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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>xsd2javadoc</artifactId>
+ <packaging>jar</packaging>
+ <version>0.0.1-SNAPSHOT</version>
+ <name>xsd2javadoc</name>
+ <url>http://maven.apache.org</url>
+ <repositories>
+ <repository>
+ <id>bits.netbeans.org</id>
+ <
url>http://bits.netbeans.org/maven2</url>
+ </repository>
+ </repositories>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.7</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.netbeans.modules</groupId>
+ <artifactId>org-netbeans-modules-xml-axi</artifactId>
+ <version>RELEASE68</version>
+ </dependency>
+ <!--
+ dependency> <groupId>org.netbeans.api</groupId>
+ <artifactId>org-netbeans-modules-xml-xdm</artifactId>
+ <version>RELEASE68</version> <exclusions> <exclusion>
+ <artifactId>org-openide-dialogs</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-swing-outline</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-modules-projectuiapi</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-openide-loaders</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-modules-projectapi</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-modules-editor-fold</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-api-progress</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-modules-queries</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion>
</exclusions>
+ </dependency
+ -->
+ <!--
+ dependency> <groupId>org.netbeans.modules</groupId>
+ <artifactId>org-netbeans-modules-xml-text</artifactId>
+ <version>RELEASE68</version> <exclusions> <exclusion>
+ <artifactId>org-openide-explorer</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-modules-csl-api</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-modules-editor-fold</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-openide-awt</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-openide-windows</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-modules-editor-completion</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-openide-dialogs</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-jdesktop-layout</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-modules-editor-structure</artifactId>
+ <groupId>org.netbeans.modules</groupId> </exclusion>
<exclusion>
+ <artifactId>org-netbeans-modules-editor</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-modules-editor-indent</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-openide-actions</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-api-progress</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-spi-navigator</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion> <exclusion>
+ <artifactId>org-netbeans-modules-queries</artifactId>
+ <groupId>org.netbeans.api</groupId> </exclusion>
</exclusions>
+ </dependency
+ -->
+ <!--
+ dependency> <groupId>org.netbeans.modules</groupId>
+ <artifactId>org-netbeans-modules-editor-settings-storage</artifactId>
+ <version>RELEASE68</version> </dependency
+ -->
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>tlddoc</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>taglibrarydoc</groupId>
+ <artifactId>tlddoc</artifactId>
+ <version>1.3</version>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <includeProjectDependencies>false</includeProjectDependencies>
+ <includePluginDependencies>true</includePluginDependencies>
+ <executableDependency>
+ <groupId>taglibrarydoc</groupId>
+ <artifactId>tlddoc</artifactId>
+ </executableDependency>
+ <mainClass>com.sun.tlddoc.TLDDoc</mainClass>
+ <arguments>
+ <argument>-d</argument>
+ <argument>${project.build.directory}/generated-resources/docs/vdldocs</argument>
+ <argument>-xslt</argument>
+ <argument>${basedir}/src/main/xslt/tlddoc</argument>
+ <argument>${project.build.directory}/generated-resources/tlds/cdk.tld</argument>
+ <argument>${project.build.directory}/generated-resources/tlds/composite.tld</argument>
+ <argument>${project.build.directory}/generated-resources/tlds/c.tld</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <inherited>true</inherited>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/BodyContent.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/BodyContent.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/BodyContent.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,34 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.richfaces.taglib.model;
+
+/**
+ * @author Nick Belaevski
+ *
+ */
+public enum BodyContent {
+
+ tagdependent,
+ JSP,
+ empty,
+ scriptless
+}
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/ExtensibleType.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/ExtensibleType.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/ExtensibleType.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,84 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
Implementation, vJAXB 2.1.10 in JDK 6
+// See <a
href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/...
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2010.02.16 at 01:15:02 AM EET
+//
+
+
+package org.richfaces.taglib.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+
+/**
+ *
+ *
+ * The extensibleType is an abstract base type that
+ * is used to
+ * define the type of extension-elements. Instance documents
+ * must substitute a known type to define the extension by
+ * using
+ * xsi:type attribute to define the actual type of
+ * extension-elements.
+ *
+ *
+ *
+ * <p>Java class for extensibleType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="extensibleType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="id"
type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "extensibleType")
+public abstract class ExtensibleType {
+
+ @XmlAttribute
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+}
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/FunctionType.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/FunctionType.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/FunctionType.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,369 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
Implementation, vJAXB 2.1.10 in JDK 6
+// See <a
href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/...
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2010.02.16 at 01:15:02 AM EET
+//
+
+
+package org.richfaces.taglib.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementWrapper;
+import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlMixed;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+
+/**
+ *
+ *
+ * The function element is used to provide
+ * information on each
+ * function in the tag library that is to be exposed
+ * to the EL.
+ *
+ * The function element may have several subelements
+ * defining:
+ *
+ * description Optional tag-specific information
+ *
+ * display-name A
+ * short name that is intended to be
+ * displayed by tools
+ *
+ * icon Optional
+ * icon element that can be used
+ * by tools
+ *
+ * name A unique name for this
+ * function
+ *
+ * function-class Provides the name of the Java class that
+ * implements the function
+ *
+ * function-signature Provides the signature, as
+ * in the Java
+ * Language Specification, of the Java
+ * method that is to be
+ * used to implement
+ * the function.
+ *
+ * example Optional informal description
+ * of an
+ * example of a use of this function
+ *
+ * function-extension Zero or
+ * more extensions that provide extra
+ * information about this function,
+ * for tool
+ * consumption
+ *
+ *
+ *
+ * <p>Java class for functionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="functionType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <group
ref="{http://java.sun.com/xml/ns/javaee}descriptionGroup"/>
+ * <element name="name"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="function-class"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="function-signature"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="example"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="function-extension"
type="{http://java.sun.com/xml/ns/javaee}tld-extensionType"
maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="id"
type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "functionType", propOrder = {
+ "description",
+ "displayName",
+ "icon",
+ "name",
+ "functionClass",
+ "functionSignature",
+ "example",
+ "functionExtension"
+})
+public class FunctionType {
+
+ @XmlElementWrapper(name = "description")
+ @XmlAnyElement(lax = true)
+ @XmlMixed
+ protected List<Object> description;
+ @XmlElement(name = "display-name")
+ protected List<String> displayName;
+ protected List<IconType> icon;
+ @XmlElement(required = true)
+ protected String name;
+ @XmlElement(name = "function-class", required = true)
+ protected String functionClass;
+ @XmlElement(name = "function-signature", required = true)
+ protected String functionSignature;
+ protected String example;
+ @XmlElement(name = "function-extension")
+ protected List<TldExtensionType> functionExtension;
+ @XmlAttribute
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+
+ /**
+ * Gets the value of the description property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the description
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescription().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link DescriptionType }
+ *
+ *
+ */
+ public List<Object> getDescription() {
+ if (description == null) {
+ description = new ArrayList<Object>();
+ }
+ return this.description;
+ }
+
+ /**
+ * Gets the value of the displayName property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the displayName
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDisplayName().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link DisplayNameType }
+ *
+ *
+ */
+ public List<String> getDisplayName() {
+ if (displayName == null) {
+ displayName = new ArrayList<String>();
+ }
+ return this.displayName;
+ }
+
+ /**
+ * Gets the value of the icon property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the icon
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getIcon().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link IconType }
+ *
+ *
+ */
+ public List<IconType> getIcon() {
+ if (icon == null) {
+ icon = new ArrayList<IconType>();
+ }
+ return this.icon;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the functionClass property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getFunctionClass() {
+ return functionClass;
+ }
+
+ /**
+ * Sets the value of the functionClass property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setFunctionClass(String value) {
+ this.functionClass = value;
+ }
+
+ /**
+ * Gets the value of the functionSignature property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getFunctionSignature() {
+ return functionSignature;
+ }
+
+ /**
+ * Sets the value of the functionSignature property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setFunctionSignature(String value) {
+ this.functionSignature = value;
+ }
+
+ /**
+ * Gets the value of the example property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getExample() {
+ return example;
+ }
+
+ /**
+ * Sets the value of the example property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setExample(String value) {
+ this.example = value;
+ }
+
+ /**
+ * Gets the value of the functionExtension property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
functionExtension property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getFunctionExtension().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link TldExtensionType }
+ *
+ *
+ */
+ public List<TldExtensionType> getFunctionExtension() {
+ if (functionExtension == null) {
+ functionExtension = new ArrayList<TldExtensionType>();
+ }
+ return this.functionExtension;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+}
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/IconType.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/IconType.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/IconType.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,145 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
Implementation, vJAXB 2.1.10 in JDK 6
+// See <a
href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/...
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2010.02.16 at 01:15:02 AM EET
+//
+
+
+package org.richfaces.taglib.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+
+/**
+ *
+ *
+ * The icon type contains small-icon and large-icon elements
+ * that specify the file names for small and large GIF, JPEG,
+ * or PNG icon images used to represent the parent element in a
+ * GUI tool.
+ *
+ * The xml:lang attribute defines the language that the
+ * icon file names are provided in. Its value is "en" (English)
+ * by default.
+ *
+ *
+ *
+ * <p>Java class for iconType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="iconType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="small-icon"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="large-icon"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="id"
type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "iconType", propOrder = {
+ "smallIcon",
+ "largeIcon"
+})
+public class IconType {
+
+ @XmlElement(name = "small-icon")
+ protected String smallIcon;
+ @XmlElement(name = "large-icon")
+ protected String largeIcon;
+ @XmlAttribute
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+
+ /**
+ * Gets the value of the smallIcon property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getSmallIcon() {
+ return smallIcon;
+ }
+
+ /**
+ * Sets the value of the smallIcon property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setSmallIcon(String value) {
+ this.smallIcon = value;
+ }
+
+ /**
+ * Gets the value of the largeIcon property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getLargeIcon() {
+ return largeIcon;
+ }
+
+ /**
+ * Sets the value of the largeIcon property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setLargeIcon(String value) {
+ this.largeIcon = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+}
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/ObjectFactory.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/ObjectFactory.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/ObjectFactory.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,116 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
Implementation, vJAXB 2.1.10 in JDK 6
+// See <a
href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/...
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2010.02.16 at 01:15:02 AM EET
+//
+
+
+package org.richfaces.taglib.model;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.richfaces.taglib.model package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _Taglib_QNAME = new
QName("http://java.sun.com/xml/ns/javaee", "taglib");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.richfaces.taglib.model
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link TldAttributeType }
+ *
+ */
+ public TldAttributeType createTldAttributeType() {
+ return new TldAttributeType();
+ }
+
+ /**
+ * Create an instance of {@link TldExtensionType }
+ *
+ */
+ public TldExtensionType createTldExtensionType() {
+ return new TldExtensionType();
+ }
+
+ /**
+ * Create an instance of {@link TldDeferredValueType }
+ *
+ */
+ public TldDeferredValueType createTldDeferredValueType() {
+ return new TldDeferredValueType();
+ }
+
+ /**
+ * Create an instance of {@link IconType }
+ *
+ */
+ public IconType createIconType() {
+ return new IconType();
+ }
+
+ /**
+ * Create an instance of {@link TldTaglibType }
+ *
+ */
+ public TldTaglibType createTldTaglibType() {
+ return new TldTaglibType();
+ }
+
+ /**
+ * Create an instance of {@link FunctionType }
+ *
+ */
+ public FunctionType createFunctionType() {
+ return new FunctionType();
+ }
+
+ /**
+ * Create an instance of {@link TldDeferredMethodType }
+ *
+ */
+ public TldDeferredMethodType createTldDeferredMethodType() {
+ return new TldDeferredMethodType();
+ }
+
+ /**
+ * Create an instance of {@link TagType }
+ *
+ */
+ public TagType createTagType() {
+ return new TagType();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link TldTaglibType }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://java.sun.com/xml/ns/javaee", name =
"taglib")
+ public JAXBElement<TldTaglibType> createTaglib(TldTaglibType value) {
+ return new JAXBElement<TldTaglibType>(_Taglib_QNAME, TldTaglibType.class,
null, value);
+ }
+
+}
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TagType.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TagType.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TagType.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,468 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
Implementation, vJAXB 2.1.10 in JDK 6
+// See <a
href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/...
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2010.02.16 at 01:15:02 AM EET
+//
+
+
+package org.richfaces.taglib.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementWrapper;
+import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlMixed;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+
+/**
+ *
+ *
+ * The tag defines a unique tag in this tag library.
+ * It has one
+ * attribute, id.
+ *
+ * The tag element may have several subelements
+ * defining:
+ *
+ * description Optional tag-specific information
+ *
+ * display-name A
+ * short name that is intended to be
+ * displayed by tools
+ *
+ * icon Optional
+ * icon element that can be used
+ * by tools
+ *
+ * name The unique action name
+ *
+ * tag-class The tag handler class implementing
+ * javax.servlet.jsp.tagext.JspTag
+ *
+ * tei-class An optional subclass of
+ * javax.servlet.jsp.tagext.TagExtraInfo
+ *
+ * body-content The body content
+ * type
+ *
+ * variable Optional scripting variable information
+ *
+ * attribute All
+ * attributes of this action that are
+ * evaluated prior to invocation.
+ *
+ * dynamic-attributes Whether this tag supports additional
+ * attributes
+ * with dynamic names. If
+ * true, the tag-class must implement the
+ * javax.servlet.jsp.tagext.DynamicAttributes
+ * interface. Defaults to
+ * false.
+ *
+ * example Optional informal description of an
+ * example of a use of
+ * this tag
+ *
+ * tag-extension Zero or more extensions that provide extra
+ * information about this tag, for tool
+ * consumption
+ *
+ *
+ *
+ * <p>Java class for tagType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="tagType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <group
ref="{http://java.sun.com/xml/ns/javaee}descriptionGroup"/>
+ * <element name="name"
type="{http://www.w3.org/2001/XMLSchema}NMTOKEN"/>
+ * <element name="tag-class"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="tei-class"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="body-content"
type="{http://java.sun.com/xml/ns/javaee}body-contentType"/>
+ * <element name="attribute"
type="{http://java.sun.com/xml/ns/javaee}tld-attributeType"
maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="dynamic-attributes"
type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ * <element name="example"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="tag-extension"
type="{http://java.sun.com/xml/ns/javaee}tld-extensionType"
maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="id"
type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "tagType", propOrder = {
+ "description",
+ "displayName",
+ "icon",
+ "name",
+ "tagClass",
+ "teiClass",
+ "bodyContent",
+ "attribute",
+ "dynamicAttributes",
+ "example",
+ "tagExtension"
+})
+public class TagType {
+
+ @XmlElementWrapper(name = "description")
+ @XmlAnyElement(lax = true)
+ @XmlMixed
+ protected List<Object> description;
+ @XmlElement(name = "display-name")
+ protected List<String> displayName;
+ protected List<IconType> icon;
+ @XmlElement(required = true)
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlSchemaType(name = "NMTOKEN")
+ protected String name;
+ @XmlElement(name = "tag-class", required = true)
+ protected String tagClass;
+ @XmlElement(name = "tei-class")
+ protected String teiClass;
+ @XmlElement(name = "body-content", required = true)
+ protected BodyContent bodyContent = BodyContent.JSP;
+ protected List<TldAttributeType> attribute;
+ @XmlElement(name = "dynamic-attributes")
+ protected Boolean dynamicAttributes;
+ protected String example;
+ @XmlElement(name = "tag-extension")
+ protected List<TldExtensionType> tagExtension;
+ @XmlAttribute
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+
+ /**
+ * Gets the value of the description property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the description
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescription().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link DescriptionType }
+ *
+ *
+ */
+ public List<Object> getDescription() {
+ if (description == null) {
+ description = new ArrayList<Object>();
+ }
+ return this.description;
+ }
+
+ /**
+ * Gets the value of the displayName property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the displayName
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDisplayName().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link DisplayNameType }
+ *
+ *
+ */
+ public List<String> getDisplayName() {
+ if (displayName == null) {
+ displayName = new ArrayList<String>();
+ }
+ return this.displayName;
+ }
+
+ /**
+ * Gets the value of the icon property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the icon
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getIcon().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link IconType }
+ *
+ *
+ */
+ public List<IconType> getIcon() {
+ if (icon == null) {
+ icon = new ArrayList<IconType>();
+ }
+ return this.icon;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the tagClass property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTagClass() {
+ return tagClass;
+ }
+
+ /**
+ * Sets the value of the tagClass property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTagClass(String value) {
+ this.tagClass = value;
+ }
+
+ /**
+ * Gets the value of the teiClass property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTeiClass() {
+ return teiClass;
+ }
+
+ /**
+ * Sets the value of the teiClass property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTeiClass(String value) {
+ this.teiClass = value;
+ }
+
+ /**
+ * Gets the value of the bodyContent property.
+ *
+ * @return
+ * possible object is
+ * {@link BodyContentType }
+ *
+ */
+ public BodyContent getBodyContent() {
+ return bodyContent;
+ }
+
+ /**
+ * Sets the value of the bodyContent property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BodyContentType }
+ *
+ */
+ public void setBodyContent(BodyContent value) {
+ this.bodyContent = value;
+ }
+
+ /**
+ * Gets the value of the attribute property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the attribute
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAttribute().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link TldAttributeType }
+ *
+ *
+ */
+ public List<TldAttributeType> getAttribute() {
+ if (attribute == null) {
+ attribute = new ArrayList<TldAttributeType>();
+ }
+ return this.attribute;
+ }
+
+ /**
+ * Gets the value of the dynamicAttributes property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isDynamicAttributes() {
+ return dynamicAttributes;
+ }
+
+ /**
+ * Sets the value of the dynamicAttributes property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setDynamicAttributes(Boolean value) {
+ this.dynamicAttributes = value;
+ }
+
+ /**
+ * Gets the value of the example property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getExample() {
+ return example;
+ }
+
+ /**
+ * Sets the value of the example property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setExample(String value) {
+ this.example = value;
+ }
+
+ /**
+ * Gets the value of the tagExtension property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
tagExtension property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getTagExtension().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link TldExtensionType }
+ *
+ *
+ */
+ public List<TldExtensionType> getTagExtension() {
+ if (tagExtension == null) {
+ tagExtension = new ArrayList<TldExtensionType>();
+ }
+ return this.tagExtension;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+}
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldAttributeType.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldAttributeType.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldAttributeType.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,347 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
Implementation, vJAXB 2.1.10 in JDK 6
+// See <a
href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/...
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2010.02.16 at 01:15:02 AM EET
+//
+
+
+package org.richfaces.taglib.model;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementWrapper;
+import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlMixed;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+
+/**
+ *
+ *
+ * The attribute element defines an attribute for the
+ * nesting
+ * tag. The attribute element may have several subelements
+ * defining:
+ *
+ * description a description of the attribute
+ *
+ * name the name of
+ * the attribute
+ *
+ * required whether the attribute is required or
+ * optional
+ *
+ * rtexprvalue whether the attribute is a runtime attribute
+ *
+ * type the
+ * type of the attributes
+ *
+ * fragment whether this attribute is a fragment
+ *
+ * deferred-value present if this attribute is to be parsed as a
+ * javax.el.ValueExpression
+ *
+ * deferred-method present if this attribute is
+ * to be parsed as a
+ * javax.el.MethodExpression
+ *
+ *
+ *
+ * <p>Java class for tld-attributeType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="tld-attributeType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="description"
type="{http://java.sun.com/xml/ns/javaee}descriptionType"
maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="name"
type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="required"
type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ * <choice>
+ * <sequence>
+ * <sequence minOccurs="0">
+ * <element name="rtexprvalue"
type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ * <element name="type"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * <choice>
+ * <element name="deferred-value"
type="{http://java.sun.com/xml/ns/javaee}tld-deferred-valueType"
minOccurs="0"/>
+ * <element name="deferred-method"
type="{http://java.sun.com/xml/ns/javaee}tld-deferred-methodType"
minOccurs="0"/>
+ * </choice>
+ * </sequence>
+ * <element name="fragment"
type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ * </choice>
+ * </sequence>
+ * <attribute name="id"
type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "tld-attributeType", propOrder = {
+ "description",
+ "name",
+ "required",
+ "rtexprvalue",
+ "type",
+ "deferredValue",
+ "deferredMethod",
+ "fragment"
+})
+public class TldAttributeType {
+
+ @XmlElementWrapper(name = "description")
+ @XmlAnyElement(lax = true)
+ @XmlMixed
+ protected List<Object> description;
+ @XmlElement(required = true)
+ protected String name;
+ protected Boolean required;
+ protected Boolean rtexprvalue = true;
+ protected String type;
+ @XmlElement(name = "deferred-value")
+ protected TldDeferredValueType deferredValue;
+ @XmlElement(name = "deferred-method")
+ protected TldDeferredMethodType deferredMethod;
+ protected Boolean fragment;
+ @XmlAttribute
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+
+ /**
+ * Gets the value of the description property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the description
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescription().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link DescriptionType }
+ *
+ *
+ */
+ public List<Object> getDescription() {
+ if (description == null) {
+ description = new ArrayList<Object>();
+ }
+ return this.description;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the required property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isRequired() {
+ return required;
+ }
+
+ /**
+ * Sets the value of the required property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setRequired(Boolean value) {
+ this.required = value;
+ }
+
+ /**
+ * Gets the value of the rtexprvalue property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isRtexprvalue() {
+ return rtexprvalue;
+ }
+
+ /**
+ * Sets the value of the rtexprvalue property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setRtexprvalue(Boolean value) {
+ this.rtexprvalue = value;
+ }
+
+ /**
+ * Gets the value of the type property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setType(String value) {
+ this.type = value;
+ }
+
+ /**
+ * Gets the value of the deferredValue property.
+ *
+ * @return
+ * possible object is
+ * {@link TldDeferredValueType }
+ *
+ */
+ public TldDeferredValueType getDeferredValue() {
+ return deferredValue;
+ }
+
+ /**
+ * Sets the value of the deferredValue property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TldDeferredValueType }
+ *
+ */
+ public void setDeferredValue(TldDeferredValueType value) {
+ this.deferredValue = value;
+ }
+
+ /**
+ * Gets the value of the deferredMethod property.
+ *
+ * @return
+ * possible object is
+ * {@link TldDeferredMethodType }
+ *
+ */
+ public TldDeferredMethodType getDeferredMethod() {
+ return deferredMethod;
+ }
+
+ /**
+ * Sets the value of the deferredMethod property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TldDeferredMethodType }
+ *
+ */
+ public void setDeferredMethod(TldDeferredMethodType value) {
+ this.deferredMethod = value;
+ }
+
+ /**
+ * Gets the value of the fragment property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isFragment() {
+ return fragment;
+ }
+
+ /**
+ * Sets the value of the fragment property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setFragment(Boolean value) {
+ this.fragment = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+}
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldDeferredMethodType.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldDeferredMethodType.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldDeferredMethodType.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,120 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
Implementation, vJAXB 2.1.10 in JDK 6
+// See <a
href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/...
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2010.02.16 at 01:15:02 AM EET
+//
+
+
+package org.richfaces.taglib.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+
+/**
+ *
+ *
+ * Defines information about how to provide the value
+ * for a
+ * tag handler attribute that accepts a javax.el.MethodExpression.
+ *
+ * The deferred-method element has one optional subelement:
+ *
+ * method-signature Provides the signature, as in the Java
+ * Language
+ * Specifies, that is expected for
+ * the method being identified by the
+ * expression.
+ *
+ *
+ *
+ * <p>Java class for tld-deferred-methodType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="tld-deferred-methodType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="method-signature"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="id"
type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "tld-deferred-methodType", propOrder = {
+ "methodSignature"
+})
+public class TldDeferredMethodType {
+
+ @XmlElement(name = "method-signature")
+ protected String methodSignature;
+ @XmlAttribute
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+
+ /**
+ * Gets the value of the methodSignature property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMethodSignature() {
+ return methodSignature;
+ }
+
+ /**
+ * Sets the value of the methodSignature property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMethodSignature(String value) {
+ this.methodSignature = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+}
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldDeferredValueType.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldDeferredValueType.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldDeferredValueType.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,115 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
Implementation, vJAXB 2.1.10 in JDK 6
+// See <a
href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/...
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2010.02.16 at 01:15:02 AM EET
+//
+
+
+package org.richfaces.taglib.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+
+/**
+ *
+ *
+ * Defines information about how to provide the value
+ * for a
+ * tag handler attribute that accepts a javax.el.ValueExpression.
+ *
+ * The deferred-value element has one optional subelement:
+ *
+ * type the
+ * expected type of the attribute
+ *
+ *
+ *
+ * <p>Java class for tld-deferred-valueType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="tld-deferred-valueType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="type"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="id"
type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "tld-deferred-valueType", propOrder = {
+ "type"
+})
+public class TldDeferredValueType {
+
+ protected String type;
+ @XmlAttribute
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+
+ /**
+ * Gets the value of the type property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setType(String value) {
+ this.type = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+}
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldExtensionType.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldExtensionType.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldExtensionType.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,161 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
Implementation, vJAXB 2.1.10 in JDK 6
+// See <a
href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/...
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2010.02.16 at 01:15:02 AM EET
+//
+
+
+package org.richfaces.taglib.model;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+
+/**
+ *
+ *
+ * The tld-extensionType is used to indicate
+ * extensions to a specific TLD element.
+ *
+ * It is used by elements to
+ * designate an extension block
+ * that is targeted to a specific extension
+ * designated by
+ * a set of extension elements that are declared by a
+ * namespace. The namespace identifies the extension to
+ * the tool that
+ * processes the extension.
+ *
+ * The type of the extension-element is
+ * abstract. Therefore,
+ * a concrete type must be specified by the TLD
+ * using
+ * xsi:type attribute for each extension-element.
+ *
+ *
+ *
+ * <p>Java class for tld-extensionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="tld-extensionType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="extension-element"
type="{http://java.sun.com/xml/ns/javaee}extensibleType"
maxOccurs="unbounded"/>
+ * </sequence>
+ * <attribute name="namespace" use="required"
type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * <attribute name="id"
type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "tld-extensionType", propOrder = {
+ "extensionElement"
+})
+public class TldExtensionType {
+
+ @XmlElement(name = "extension-element", required = true)
+ protected List<ExtensibleType> extensionElement;
+ @XmlAttribute(required = true)
+ @XmlSchemaType(name = "anyURI")
+ protected String namespace;
+ @XmlAttribute
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+
+ /**
+ * Gets the value of the extensionElement property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
extensionElement property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getExtensionElement().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link ExtensibleType }
+ *
+ *
+ */
+ public List<ExtensibleType> getExtensionElement() {
+ if (extensionElement == null) {
+ extensionElement = new ArrayList<ExtensibleType>();
+ }
+ return this.extensionElement;
+ }
+
+ /**
+ * Gets the value of the namespace property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getNamespace() {
+ return namespace;
+ }
+
+ /**
+ * Sets the value of the namespace property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setNamespace(String value) {
+ this.namespace = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+}
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldTaglibType.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldTaglibType.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/TldTaglibType.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,451 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
Implementation, vJAXB 2.1.10 in JDK 6
+// See <a
href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/...
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2010.02.16 at 01:15:02 AM EET
+//
+
+
+package org.richfaces.taglib.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementWrapper;
+import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlMixed;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+
+/**
+ *
+ *
+ * The taglib tag is the document root, it defines:
+ *
+ * description a simple string describing the "use" of this
+ * taglib,
+ * should be user discernable
+ *
+ * display-name the display-name element
+ * contains a
+ * short name that is intended to be displayed
+ * by tools
+ *
+ * icon
+ * optional icon that can be used by tools
+ *
+ * tlib-version the version of
+ * the tag library implementation
+ *
+ * short-name a simple default short name
+ * that could be
+ * used by a JSP authoring tool to create
+ * names with a
+ * mnemonic value; for example,
+ * the it may be used as the prefered
+ * prefix
+ * value in taglib directives
+ *
+ * uri a uri uniquely identifying this
+ * taglib
+ *
+ * validator optional TagLibraryValidator information
+ *
+ * listener
+ * optional event listener specification
+ *
+ * tag tags in this tag library
+ *
+ * tag-file tag files in this tag library
+ *
+ * function zero or more EL
+ * functions defined in this
+ * tag library
+ *
+ * taglib-extension zero or more
+ * extensions that provide extra
+ * information about this taglib, for tool
+ * consumption
+ *
+ *
+ *
+ * <p>Java class for tldTaglibType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="tldTaglibType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <group
ref="{http://java.sun.com/xml/ns/javaee}descriptionGroup"/>
+ * <element name="tlib-version"
type="{http://java.sun.com/xml/ns/javaee}dewey-versionType"/>
+ * <element name="short-name"
type="{http://www.w3.org/2001/XMLSchema}NMTOKEN"/>
+ * <element name="uri"
type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ * <element name="tag"
type="{http://java.sun.com/xml/ns/javaee}tagType"
maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="function"
type="{http://java.sun.com/xml/ns/javaee}functionType"
maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="taglib-extension"
type="{http://java.sun.com/xml/ns/javaee}tld-extensionType"
maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="version" use="required"
type="{http://java.sun.com/xml/ns/javaee}dewey-versionType"
fixed="2.1" />
+ * <attribute name="id"
type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "tldTaglibType", propOrder = {
+ "description",
+ "displayName",
+ "icon",
+ "tlibVersion",
+ "shortName",
+ "uri",
+ "tag",
+ "function",
+ "taglibExtension"
+})
+public class TldTaglibType {
+
+ @XmlElementWrapper(name = "description")
+ @XmlAnyElement(lax = true)
+ @XmlMixed
+ protected List<Object> description;
+ @XmlElement(name = "display-name")
+ protected List<String> displayName;
+ protected List<IconType> icon;
+ @XmlElement(name = "tlib-version", required = true)
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ protected String tlibVersion = "1.0";
+ @XmlElement(name = "short-name", required = true)
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlSchemaType(name = "NMTOKEN")
+ protected String shortName;
+ @XmlSchemaType(name = "anyURI")
+ protected String uri;
+ protected List<TagType> tag;
+ protected List<FunctionType> function;
+ @XmlElement(name = "taglib-extension")
+ protected List<TldExtensionType> taglibExtension;
+ @XmlAttribute(required = true)
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ protected String version = "2.1";
+ @XmlAttribute
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+
+// @XmlAttribute(name = "schemaLocation", namespace =
"http://www.w3.org/2001/XMLSchema-instance")
+// private final String schemaLocation = "http://java.sun.com/xml/ns/javaee
" +
+// "http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd";
+
+ /**
+ * Gets the value of the description property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the description
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescription().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link DescriptionType }
+ *
+ *
+ */
+ public List<Object> getDescription() {
+ if (description == null) {
+ description = new ArrayList<Object>();
+ }
+ return this.description;
+ }
+
+ /**
+ * Gets the value of the displayName property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the displayName
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDisplayName().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link DisplayNameType }
+ *
+ *
+ */
+ public List<String> getDisplayName() {
+ if (displayName == null) {
+ displayName = new ArrayList<String>();
+ }
+ return this.displayName;
+ }
+
+ /**
+ * Gets the value of the icon property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the icon
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getIcon().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link IconType }
+ *
+ *
+ */
+ public List<IconType> getIcon() {
+ if (icon == null) {
+ icon = new ArrayList<IconType>();
+ }
+ return this.icon;
+ }
+
+ /**
+ * Gets the value of the tlibVersion property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTlibVersion() {
+ return tlibVersion;
+ }
+
+ /**
+ * Sets the value of the tlibVersion property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTlibVersion(String value) {
+ this.tlibVersion = value;
+ }
+
+ /**
+ * Gets the value of the shortName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getShortName() {
+ return shortName;
+ }
+
+ /**
+ * Sets the value of the shortName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setShortName(String value) {
+ this.shortName = value;
+ }
+
+ /**
+ * Gets the value of the uri property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getUri() {
+ return uri;
+ }
+
+ /**
+ * Sets the value of the uri property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setUri(String value) {
+ this.uri = value;
+ }
+
+ /**
+ * Gets the value of the tag property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the tag
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getTag().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link TagType }
+ *
+ *
+ */
+ public List<TagType> getTag() {
+ if (tag == null) {
+ tag = new ArrayList<TagType>();
+ }
+ return this.tag;
+ }
+
+ /**
+ * Gets the value of the function property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the function
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getFunction().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link FunctionType }
+ *
+ *
+ */
+ public List<FunctionType> getFunction() {
+ if (function == null) {
+ function = new ArrayList<FunctionType>();
+ }
+ return this.function;
+ }
+
+ /**
+ * Gets the value of the taglibExtension property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
taglibExtension property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getTaglibExtension().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link TldExtensionType }
+ *
+ *
+ */
+ public List<TldExtensionType> getTaglibExtension() {
+ if (taglibExtension == null) {
+ taglibExtension = new ArrayList<TldExtensionType>();
+ }
+ return this.taglibExtension;
+ }
+
+ /**
+ * Gets the value of the version property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getVersion() {
+ if (version == null) {
+ return "2.1";
+ } else {
+ return version;
+ }
+ }
+
+ /**
+ * Sets the value of the version property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setVersion(String value) {
+ this.version = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+}
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/package-info.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/package-info.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/taglib/model/package-info.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,9 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
Implementation, vJAXB 2.1.10 in JDK 6
+// See <a
href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/...
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2010.02.16 at 01:15:02 AM EET
+//
+
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://java.sun.com/xml/ns/javaee", elementFormDefault =
javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.richfaces.taglib.model;
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/xsd2tld/CatalogModelImpl.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/xsd2tld/CatalogModelImpl.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/xsd2tld/CatalogModelImpl.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,78 @@
+package org.richfaces.xsd2tld;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.net.URI;
+
+import javax.swing.text.BadLocationException;
+import javax.swing.text.Document;
+
+import org.netbeans.modules.xml.xam.ModelSource;
+import org.netbeans.modules.xml.xam.locator.CatalogModel;
+import org.netbeans.modules.xml.xam.locator.CatalogModelException;
+import org.netbeans.modules.xml.xam.spi.DocumentModelAccessProvider;
+import org.openide.util.lookup.Lookups;
+import org.w3c.dom.ls.LSInput;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+/**
+ * @author Nick Belaevski
+ *
+ */
+final class CatalogModelImpl implements CatalogModel {
+
+ private static CatalogModel instance;
+
+ protected CatalogModelImpl() {
+ }
+
+ public static CatalogModel getInstance() {
+ if (instance == null) {
+ instance = new CatalogModelImpl();
+ }
+ return instance;
+ }
+
+ public LSInput resolveResource(String type, String namespaceURI, String publicId,
String systemId, String baseURI) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public InputSource resolveEntity(String publicId, String systemId) throws
SAXException, IOException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public ModelSource getModelSource(URI locationURI, ModelSource
modelSourceOfSourceDocument)
+ throws CatalogModelException {
+ DocumentModelAccessProvider accessProvider =
modelSourceOfSourceDocument.getLookup().lookup(
+ DocumentModelAccessProvider.class);
+ if (accessProvider != null) {
+ File file = (File)
accessProvider.getModelSourceKey(modelSourceOfSourceDocument);
+ File parentFile = file.getParentFile();
+ File modelFile = new File(parentFile, locationURI.getPath());
+
+ Document document;
+ try {
+ document = accessProvider.loadSwingDocument(new
FileInputStream(modelFile));
+ return new ModelSource(Lookups.fixed(document, modelFile, this,
accessProvider), false);
+ } catch (FileNotFoundException e) {
+ throw new CatalogModelException(e);
+ } catch (IOException e) {
+ throw new CatalogModelException(e);
+ } catch (BadLocationException e) {
+ throw new CatalogModelException(e);
+ }
+ }
+
+ return null;
+ }
+
+ public ModelSource getModelSource(URI locationURI) throws CatalogModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+}
\ No newline at end of file
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/xsd2tld/SchemaTransformer.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/xsd2tld/SchemaTransformer.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/xsd2tld/SchemaTransformer.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,299 @@
+package org.richfaces.xsd2tld;
+import static org.richfaces.xsd2tld.SchemaTransformerUtils.createLookup;
+import static org.richfaces.xsd2tld.SchemaTransformerUtils.createTagClassName;
+import static org.richfaces.xsd2tld.SchemaTransformerUtils.getJavaClassNameByType;
+import static org.richfaces.xsd2tld.SchemaTransformerUtils.getShortName;
+import static org.richfaces.xsd2tld.SchemaTransformerUtils.normalizeXml;
+import static org.richfaces.xsd2tld.SchemaTransformerUtils.parseLiteralHash;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import javax.xml.bind.JAXB;
+
+import org.netbeans.modules.xml.axi.AXIComponent;
+import org.netbeans.modules.xml.axi.AXIModel;
+import org.netbeans.modules.xml.axi.AXIModelFactory;
+import org.netbeans.modules.xml.axi.AXIType;
+import org.netbeans.modules.xml.axi.AbstractAttribute;
+import org.netbeans.modules.xml.axi.Attribute;
+import org.netbeans.modules.xml.axi.Element;
+import org.netbeans.modules.xml.axi.datatype.Datatype;
+import org.netbeans.modules.xml.axi.visitor.AXINonCyclicVisitor;
+import org.netbeans.modules.xml.schema.model.Annotation;
+import org.netbeans.modules.xml.schema.model.Documentation;
+import org.netbeans.modules.xml.schema.model.Schema;
+import org.netbeans.modules.xml.schema.model.SchemaComponent;
+import org.netbeans.modules.xml.schema.model.SchemaModel;
+import org.netbeans.modules.xml.schema.model.SchemaModelFactory;
+import org.netbeans.modules.xml.schema.model.Attribute.Use;
+import org.netbeans.modules.xml.xam.ModelSource;
+import org.richfaces.taglib.model.ObjectFactory;
+import org.richfaces.taglib.model.TagType;
+import org.richfaces.taglib.model.TldAttributeType;
+import org.richfaces.taglib.model.TldTaglibType;
+
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+/**
+ * @author Nick Belaevski
+ *
+ */
+public class SchemaTransformer {
+
+ private static final ObjectFactory objectFactory = new ObjectFactory();
+
+ private Map<String, TldTaglibType> taglibs = new HashMap<String,
TldTaglibType>();
+
+ private Map<String, String> taglibShortNames = new HashMap<String,
String>();
+
+ private SchemaModelFactory schemaModelFactory = SchemaModelFactory.getDefault();
+
+ private List<SchemaModel> schemaModels = new ArrayList<SchemaModel>();
+
+ private AXIModelFactory axiModelFactory = AXIModelFactory.getDefault();
+
+ private TldTaglibType createTaglib(String namespaceUri) {
+ TldTaglibType taglib = objectFactory.createTldTaglibType();
+
+ taglibs.put(namespaceUri, taglib);
+ taglib.setUri(namespaceUri);
+ return taglib;
+ }
+
+ protected SchemaModel parseSchema(String fileName) throws Exception {
+ ModelSource modelSource = new ModelSource(createLookup(fileName), false);
+
+ SchemaModel schemaModel = schemaModelFactory.getModel(modelSource);
+ schemaModel.sync();
+
+ return schemaModel;
+ }
+
+ public void setTaglibShortNames(Map<String, String> taglibShortNames) {
+ this.taglibShortNames = taglibShortNames;
+ }
+
+ public void addSchema(String fileName) throws Exception {
+ SchemaModel schemaModel = parseSchema(fileName);
+ schemaModels.add(schemaModel);
+ }
+
+ public void parseSchemas() {
+ for (SchemaModel schemaModel : schemaModels) {
+ Schema schema = schemaModel.getSchema();
+
+ String targetNamespace = schema.getTargetNamespace();
+ TldTaglibType taglib = createTaglib(targetNamespace);
+
+ String shortName = taglibShortNames.get(targetNamespace);
+ if (shortName == null) {
+ shortName = getShortName(schema);
+ }
+
+ taglib.setShortName(shortName);
+
+ Annotation schemaAnnotation = schema.getAnnotation();
+ if (schemaAnnotation != null) {
+ Collection<Documentation> documentationElements =
schemaAnnotation.getDocumentationElements();
+ if (documentationElements != null) {
+ List<Object> descriptionsList = taglib.getDescription();
+ for (Documentation documentationElement : documentationElements) {
+
//descriptionsList.addAll(parseRawXml(documentationElement.getContentFragment()));
+ descriptionsList.add(documentationElement.getContentFragment());
+ }
+ }
+ }
+
+ addElementsAndAttributes(schemaModel, taglib);
+ }
+
+ schemaModels.clear();
+ }
+
+ public void writeTransformedSchemas(String outputDirectory) {
+ File outputDirectoryObject = new File(outputDirectory);
+ outputDirectoryObject.mkdirs();
+
+ for (TldTaglibType taglib : taglibs.values()) {
+ File outputFile = new File(outputDirectoryObject, taglib.getShortName() +
".tld");
+ outputFile.delete();
+ JAXB.marshal(objectFactory.createTaglib(taglib), outputFile);
+ }
+ }
+
+ private static String getDocumentation(AXIComponent axiComponent) {
+ SchemaComponent peer = axiComponent.getPeer();
+ if (peer == null ||
+ peer.getAnnotation() == null ||
+ peer.getAnnotation().getDocumentationElements() == null) {
+ return null;
+ }
+
+ StringBuilder buffer = new StringBuilder();
+ for(Documentation doc : peer.getAnnotation().getDocumentationElements()) {
+ buffer.append(doc.getContentFragment());
+ }
+
+ return buffer.toString();
+ }
+
+ private String getElementQName(AXIComponent component) {
+ return "{" + component.getTargetNamespace() + "}" +
((AXIType) component).getName();
+ }
+
+ /**
+ * @param schema
+ * @param taglib
+ */
+ private void addElementsAndAttributes(SchemaModel schemaModel, final TldTaglibType
taglib) {
+ final String targetNamespace = schemaModel.getSchema().getTargetNamespace();
+
+ AXIModel axiModel = axiModelFactory.getModel(schemaModel);
+
+ final Set<String> visitedObjects = new HashSet<String>();
+
+ axiModel.getRoot().accept(new AXINonCyclicVisitor(axiModel) {
+
+ private void addAttribute(TagType tagType, AbstractAttribute
abstractAttribute) {
+ TldAttributeType tldAttribute = objectFactory.createTldAttributeType();
+
+ //TODO namespace check
+ tldAttribute.setName(abstractAttribute.getName());
+
+ if (abstractAttribute instanceof Attribute) {
+ Attribute attribute = (Attribute) abstractAttribute;
+ tldAttribute.setRequired(Use.REQUIRED.equals(attribute.getUse()));
+ tldAttribute.setType(getJavaClassNameByType( (Datatype)
attribute.getType() ));
+ } else {
+ //TODO
+ }
+
+ String attributeDocumentation = getDocumentation(abstractAttribute);
+ if (attributeDocumentation != null &&
attributeDocumentation.length() != 0) {
+
//tldAttribute.getDescription().addAll(parseRawXml(attributeDocumentation));
+
tldAttribute.getDescription().add(normalizeXml(attributeDocumentation));
+ }
+
+ tagType.getAttribute().add(tldAttribute);
+ }
+
+ private static final String GLOBAL_ATTRIBUTES =
"_global_attributes";
+
+ @Override
+ public void visit(Attribute attribute) {
+ super.visit(attribute);
+
+ if (targetNamespace.equals(attribute.getTargetNamespace()) &&
attribute.isGlobal() && visitedObjects.add(getElementQName(attribute))) {
+ TagType globalTagType = null;
+ List<TagType> tags = taglib.getTag();
+ for (TagType tagType : tags) {
+ if (GLOBAL_ATTRIBUTES.equals(tagType.getName())) {
+ globalTagType = tagType;
+ break;
+ }
+ }
+
+ if (globalTagType == null) {
+ globalTagType = objectFactory.createTagType();
+ globalTagType.setName(GLOBAL_ATTRIBUTES);
+ globalTagType.getDescription().add("Global attributes of
" + attribute.getTargetNamespace() + " namespace");
+
+ taglib.getTag().add(globalTagType);
+ }
+
+ addAttribute(globalTagType, attribute);
+ }
+ }
+
+ @Override
+ public void visit(Element e) {
+ super.visit(e);
+
+ if (targetNamespace.equals(e.getTargetNamespace()) &&
visitedObjects.add(getElementQName(e))) {
+ List<TagType> tagsList = taglib.getTag();
+
+ TagType tagType = objectFactory.createTagType();
+
+ String tagName = e.getName();
+ tagType.setName(tagName);
+ tagType.setTagClass(createTagClassName(tagName));
+
+ String documentation = getDocumentation(e);
+ if (documentation != null && documentation.length() != 0) {
+ //tagType.getDescription().addAll(parseRawXml(documentation));
+ tagType.getDescription().add(normalizeXml(documentation));
+ }
+
+ tagsList.add(tagType);
+
+ List<AbstractAttribute> abstractAttributes =
e.getAttributes();
+ if (abstractAttributes != null) {
+ for (AbstractAttribute abstractAttribute : abstractAttributes) {
+ addAttribute(tagType, abstractAttribute);
+ }
+ }
+ }
+ }
+ });
+ }
+
+ private static enum State {
+ FILES, LOCAL_NAMES_HASH, OUTPUT_DIR
+ }
+
+ public static void main(String[] args) throws Exception {
+ State state = State.FILES;
+
+ String outputDirectoryPath = null;
+ SchemaTransformer schemaTransformer = new SchemaTransformer();
+
+ for (String arg : args) {
+ if (state == State.LOCAL_NAMES_HASH) {
+ schemaTransformer.setTaglibShortNames(parseLiteralHash(arg));
+ state = State.FILES;
+ } else if (state == State.OUTPUT_DIR) {
+ outputDirectoryPath = arg;
+ state = State.FILES;
+ } else if (arg.equals("-h")) {
+ state = State.LOCAL_NAMES_HASH;
+ } else if (arg.equals("-o")) {
+ state = State.OUTPUT_DIR;
+ } else {
+ schemaTransformer.addSchema(arg);
+ }
+ }
+
+ schemaTransformer.parseSchemas();
+
+ File outputDirectory = new File(outputDirectoryPath);
+
+ schemaTransformer.writeTransformedSchemas(outputDirectory.getAbsolutePath());
+ }
+}
Added:
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/xsd2tld/SchemaTransformerUtils.java
===================================================================
---
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/xsd2tld/SchemaTransformerUtils.java
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/java/org/richfaces/xsd2tld/SchemaTransformerUtils.java 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,298 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.richfaces.xsd2tld;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.io.StringWriter;
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.swing.text.BadLocationException;
+import javax.swing.text.Document;
+import javax.xml.datatype.Duration;
+import javax.xml.datatype.XMLGregorianCalendar;
+import javax.xml.namespace.QName;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.netbeans.modules.xml.axi.datatype.Datatype;
+import org.netbeans.modules.xml.schema.model.Schema;
+import org.netbeans.modules.xml.xam.dom.ReadOnlyAccess;
+import org.netbeans.modules.xml.xam.spi.DocumentModelAccessProvider;
+import org.openide.util.Lookup;
+import org.openide.util.lookup.Lookups;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Text;
+import org.w3c.dom.ls.DOMImplementationLS;
+import org.w3c.dom.ls.LSOutput;
+import org.w3c.dom.ls.LSSerializer;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+/**
+ * @author Nick Belaevski
+ *
+ */
+final class SchemaTransformerUtils {
+
+ private static final String XHTML_DOCUMENT_PROLOG = "<div
xmlns=\"http://www.w3.org/1999/xhtml\">";
+ private static final String XHTML_DOCUMENT_EPILOG = "</div>";
+ private static final DocumentBuilderFactory dbf =
DocumentBuilderFactory.newInstance();
+
+ private SchemaTransformerUtils() {
+ }
+
+ static String getJavaClassNameByType(Datatype datatype) {
+ String result;
+
+ // based on
http://java.sun.com/javaee/5/docs/tutorial/doc/bnazq.html#bnazr
+ switch (datatype.getKind()) {
+ case STRING:
+ result = String.class.getName();
+ break;
+
+ case INTEGER:
+ result = BigInteger.class.getName();
+ break;
+
+ case INT:
+ case UNSIGNED_SHORT:
+ result = Integer.TYPE.getName();
+ break;
+
+ case LONG:
+ case UNSIGNED_INT:
+ result = Long.TYPE.getName();
+ break;
+
+ case SHORT:
+ case UNSIGNED_BYTE:
+ result = Short.TYPE.getName();
+ break;
+
+ case DECIMAL:
+ result = BigDecimal.class.getName();
+ break;
+
+ case FLOAT:
+ result = Float.TYPE.getName();
+ break;
+
+ case DOUBLE:
+ result = Double.TYPE.getName();
+ break;
+
+ case BOOLEAN:
+ result = Boolean.TYPE.getName();
+ break;
+
+ case BYTE:
+ result = Byte.TYPE.getName();
+ break;
+
+ case QNAME:
+ result = QName.class.getName();
+ break;
+
+ case DATE_TIME:
+ case DATE:
+ case TIME:
+ case G_DAY:
+ case G_MONTH_DAY:
+ case G_YEAR:
+ case G_YEAR_MONTH:
+ case G_MONTH:
+ result = XMLGregorianCalendar.class.getName();
+ break;
+
+ case BASE64_BINARY:
+ case HEX_BINARY:
+ result = Byte.TYPE.getName() + "[]";
+ break;
+
+ case DURATION:
+ result = Duration.class.getName();
+ break;
+
+ case NOTATION:
+ result = QName.class.getName();
+ break;
+
+ default:
+ result = Object.class.getName();
+ break;
+ }
+
+ return result;
+ }
+
+ static String getShortName(Schema schema) {
+ String namespaceUri = schema.getTargetNamespace();
+
+ return namespaceUri.replaceAll("\\W", "_");
+ }
+
+ static String capitalize(String s) {
+ if (s.length() > 0) {
+ char[] chars = s.toCharArray();
+ chars[0] = Character.toUpperCase(chars[0]);
+
+ return new String(chars);
+ } else {
+ throw new IllegalArgumentException(s);
+ }
+ }
+
+ static String createTagClassName(String tagName) {
+ return "org.richfaces." + capitalize(tagName) + "Tag";
+ }
+
+ private static void convertCDataIntoTextNodes(Node node) {
+ for (Node childNode = node.getFirstChild(); childNode != null; childNode =
childNode.getNextSibling()) {
+ if (childNode.getNodeType() == Node.CDATA_SECTION_NODE) {
+ org.w3c.dom.Document document = childNode.getOwnerDocument();
+ Text textNode = document.createTextNode(childNode.getNodeValue());
+ childNode.getParentNode().replaceChild(textNode, childNode);
+ }
+
+ convertCDataIntoTextNodes(childNode);
+ }
+ }
+
+ static List<Object> parseRawXml(String xmlText) {
+ try {
+ DocumentBuilder db = dbf.newDocumentBuilder();
+ org.w3c.dom.Document document = db.parse(new InputSource(new
StringReader(XHTML_DOCUMENT_PROLOG + xmlText
+ + XHTML_DOCUMENT_EPILOG)));
+
+ org.w3c.dom.Element documentElement = document.getDocumentElement();
+ convertCDataIntoTextNodes(documentElement);
+ documentElement.normalize();
+
+ List<Object> result = new ArrayList<Object>();
+ NodeList childNodes = documentElement.getChildNodes();
+ int childNodesLength = childNodes.getLength();
+ for (int i = 0; i < childNodesLength; i++) {
+ Node item = childNodes.item(i);
+ switch (item.getNodeType()) {
+ case Node.TEXT_NODE:
+ result.add(item.getNodeValue());
+ break;
+
+ case Node.ELEMENT_NODE:
+ result.add(item);
+ break;
+
+ default:
+ // don't process
+ break;
+ }
+ }
+
+ return result;
+ } catch (ParserConfigurationException e) {
+ throw new RuntimeException(e.getMessage(), e);
+ } catch (SAXException e) {
+ throw new RuntimeException(e.getMessage(), e);
+ } catch (IOException e) {
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ static Lookup createLookup(String fileName) {
+ DocumentModelAccessProvider provider = ReadOnlyAccess.Provider.getInstance();
+
+ File file = new File(fileName);
+ Document document = null;
+ InputStream in = null;
+ try {
+ in = new FileInputStream(file);
+ document = provider.loadSwingDocument(in);
+
+ return Lookups.fixed(file, document, CatalogModelImpl.getInstance(),
provider);
+ } catch (FileNotFoundException e) {
+ throw new RuntimeException(e.getMessage(), e);
+ } catch (IOException e) {
+ throw new RuntimeException(e.getMessage(), e);
+ } catch (BadLocationException e) {
+ throw new RuntimeException(e.getMessage(), e);
+ } finally {
+ if (in != null) {
+ try {
+ in.close();
+ } catch (IOException e) {
+ // ignore
+ }
+ }
+ }
+ }
+
+ static Map<String, String> parseLiteralHash(String hashString) {
+ HashMap<String, String> result = new HashMap<String, String>();
+
+ String[] splits = hashString.replaceAll("\\{|\\}",
"").split(",");
+ for (String split : splits) {
+ String[] ss = split.split("=");
+ result.put(ss[0], ss[1]);
+ }
+
+ return result;
+ }
+
+ static String normalizeXml(String rawXml) {
+ StringWriter resultWriter = new StringWriter();
+ List<Object> parsedXml = parseRawXml(rawXml);
+
+ for (Object object : parsedXml) {
+ if (object instanceof String) {
+ resultWriter.write((String) object);
+ } else if (object instanceof Node) {
+ Node node = (Node) object;
+
+ DOMImplementationLS lsImplementation = (DOMImplementationLS)
node.getOwnerDocument()
+ .getImplementation().getFeature("LS", "3.0");
+
+ LSOutput lsOutput = lsImplementation.createLSOutput();
+ lsOutput.setCharacterStream(resultWriter);
+
+ LSSerializer lsSerializer = lsImplementation.createLSSerializer();
+ lsSerializer.getDomConfig().setParameter("xml-declaration",
Boolean.FALSE);
+ lsSerializer.write(node, lsOutput);
+ } else {
+ throw new IllegalArgumentException();
+ }
+ }
+
+ return resultWriter.toString();
+ }
+}
Added: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/alltags-frame.html.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/alltags-frame.html.xsl
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/alltags-frame.html.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,118 @@
+<?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 / Attributes</title>
+ <link rel="stylesheet" type="text/css"
href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="All Tags / Attributes";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <font size="+1" class="FrameHeadingFont">
+ <b>All Tags / Attributes</b></font>
+ <br/>
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true"><font
class="FrameItemFont">
+ <xsl:apply-templates
+
select="javaee:tlds/javaee:taglib/javaee:tag|javaee:tlds/javaee:taglib/javaee:tag-file|javaee:tlds/javaee:taglib/javaee:function">
+ <xsl:sort select="../javaee:short-name"/>
+ <xsl:sort select="javaee:name"/>
+ </xsl:apply-templates>
+ </font></td>
+ </tr>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="../javaee:short-name"/>/<xsl:value-of
select="javaee:name"/>.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <xsl:value-of select="../javaee:short-name"/>:
+ <xsl:call-template name="getTagName">
+ <xsl:with-param name="tagName"
select="string(javaee:name)" />
+ </xsl:call-template>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+
+ <xsl:template name="getTagName">
+ <xsl:param name="tagName" />
+ <xsl:choose>
+ <xsl:when test="$tagName = '_global_attributes'">
+ @*
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$tagName" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </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:short-name"/>/<xsl:value-of
select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <i><xsl:value-of
select="../javaee:short-name"/>:<xsl:value-of
select="javaee:name"/>()</i>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+</xsl:stylesheet>
Added: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/alltags-noframe.html.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/alltags-noframe.html.xsl
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/alltags-noframe.html.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,118 @@
+<?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 / Attributes</title>
+ <link rel="stylesheet" type="text/css"
href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="All Tags / Attributes";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <font size="+1" class="FrameHeadingFont">
+ <b>All Tags / Attributes</b></font>
+ <br/>
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true"><font
class="FrameItemFont">
+ <xsl:apply-templates
+
select="javaee:tlds/javaee:taglib/javaee:tag|javaee:tlds/javaee:taglib/javaee:tag-file|javaee:tlds/javaee:taglib/javaee:function">
+ <xsl:sort select="../javaee:short-name"/>
+ <xsl:sort select="javaee:name"/>
+ </xsl:apply-templates>
+ </font></td>
+ </tr>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="../javaee:short-name"/>/<xsl:value-of
select="javaee:name"/>.html</xsl:attribute>
+ <xsl:attribute name="target"></xsl:attribute>
+ <xsl:value-of select="../javaee:short-name"/>:
+ <xsl:call-template name="getTagName">
+ <xsl:with-param name="tagName"
select="string(javaee:name)" />
+ </xsl:call-template>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+
+ <xsl:template name="getTagName">
+ <xsl:param name="tagName" />
+ <xsl:choose>
+ <xsl:when test="$tagName = '_global_attributes'">
+ @*
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$tagName" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </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:short-name"/>/<xsl:value-of
select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <i><xsl:value-of
select="../javaee:short-name"/>:<xsl:value-of
select="javaee:name"/>()</i>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+</xsl:stylesheet>
Added: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/function.html.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/function.html.xsl
(rev 0)
+++ root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/function.html.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,276 @@
+<?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="html" indent="yes"/>
+
+ <xsl:param name="tlddoc-shortName">default</xsl:param>
+ <xsl:param name="tlddoc-functionName">default</xsl:param>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <xsl:if test="javaee:short-name=$tlddoc-shortName">
+ <xsl:apply-templates select="javaee:function"/>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:function">
+ <xsl:if test="javaee:name=$tlddoc-functionName">
+ <xsl:variable name="tldname">
+ <xsl:choose>
+ <xsl:when test="../javaee:display-name!=''">
+ <xsl:value-of select="../javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="../javaee:short-name!=''">
+ <xsl:value-of select="../javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="title">
+ <xsl:value-of select="javaee:name"/>
+ (<xsl:value-of
select="/javaee:tlds/javaee:config/javaee: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: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:name"/></h2>
+ <code>
+ <xsl:value-of
select='substring-before(normalize-space(javaee:function-signature),"
")'/>
+ <b> <xsl:value-of
select="javaee: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: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:if>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/help-doc.html.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/help-doc.html.xsl
(rev 0)
+++ root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/help-doc.html.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -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="/javaee:tlds/javaee:config/javaee: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(/javaee:tlds/javaee:config/javaee: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: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/index.html.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/index.html.xsl
(rev 0)
+++ root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/index.html.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -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="/javaee:tlds/javaee:config/javaee: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: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/overview-frame.html.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/overview-frame.html.xsl
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/overview-frame.html.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -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="/javaee:tlds/javaee:config/javaee: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(/javaee:tlds/javaee:config/javaee: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="/javaee:tlds/javaee:config/javaee: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 /
Attributes</xsl:text></a>
+ </font>
+ <p/>
+ <font size="+1" class="FrameHeadingFont">
+ Tag Libraries
+ </font>
+ <br/>
+ <xsl:apply-templates
select="javaee:tlds/javaee:taglib"/>
+ </td>
+ </tr>
+ </table>
+ <p/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <font class="FrameItemFont">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="javaee:short-name"/>/tld-frame.html</xsl:attribute>
+ <xsl:attribute name="target">tldFrame</xsl:attribute>
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="javaee:short-name!=''">
+ <xsl:value-of select="javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </font>
+ <br/>
+ </xsl:template>
+</xsl:stylesheet>
Added: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/overview-summary.html.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/overview-summary.html.xsl
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/overview-summary.html.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -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="/javaee:tlds/javaee:config/javaee: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(/javaee:tlds/javaee:config/javaee: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="/javaee:tlds/javaee:config/javaee: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="/javaee:tlds/javaee: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="javaee:taglib">
+ <tr BGCOLOR="white" valign="top"
CLASS="TableRowColor">
+ <td WIDTH="20%"><b>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="javaee:short-name"/>/tld-summary.html</xsl:attribute>
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="javaee:short-name!=''">
+ <xsl:value-of select="javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </b></td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <pre>
+ <xsl:value-of select="javaee: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: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/stylesheet.css
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/stylesheet.css
(rev 0)
+++ root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/stylesheet.css 2010-02-17
12:47:39 UTC (rev 16466)
@@ -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: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tag.html.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tag.html.xsl
(rev 0)
+++ root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tag.html.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,474 @@
+<?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 : 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 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"/>
+
+ <xsl:param name="tlddoc-shortName">default</xsl:param>
+ <xsl:param name="tlddoc-tagName">default</xsl:param>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <xsl:if test="javaee:short-name=$tlddoc-shortName">
+ <xsl:apply-templates select="javaee:tag|javaee:tag-file"/>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <xsl:if test="javaee:name=$tlddoc-tagName">
+ <xsl:variable name="tldname">
+ <xsl:choose>
+ <xsl:when test="../javaee:display-name!=''">
+ <xsl:value-of select="../javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="../javaee:short-name!=''">
+ <xsl:value-of select="../javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="title">
+ <xsl:value-of select="javaee:name"/>
+ (<xsl:value-of
select="/javaee:tlds/javaee:config/javaee: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: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="$tldname"/></font><br/>
+ <xsl:call-template name="getTagName">
+ <xsl:with-param name="tagName"
select="string(javaee:name)" />
+ </xsl:call-template>
+ </h2>
+ <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/>
+
+ <!-- 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>Tag Class</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:tag-class!=''">
+ <xsl:value-of select="javaee:tag-class"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>TagExtraInfo Class</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:tei-class!=''">
+ <xsl:value-of select="javaee:tei-class"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>Body Content</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:body-content!=''">
+ <xsl:value-of select="javaee:body-content"/>
+ </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/>
+ -->
+
+ <!-- Attribute Information -->
+ <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>Request-time</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/>
+
+ <!-- Variable Information -->
+ <!--
+ <table border="1" cellpadding="3"
cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="5">
+ <font size="+2">
+ <b>Variables</b>
+ </font>
+ </td>
+ </tr>
+ <xsl:choose>
+ <xsl:when test="count(javaee:variable)>0">
+ <tr>
+ <td><b>Name</b></td>
+ <td><b>Type</b></td>
+ <td><b>Declare</b></td>
+ <td><b>Scope</b></td>
+ <td><b>Description</b></td>
+ </tr>
+ <xsl:apply-templates select="javaee:variable"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <td colspan="2"><i>No Variables
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: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>.
+ 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:if>
+ </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:rtexprvalue!=''">
+ <xsl:value-of select="javaee:rtexprvalue"/>
+ </xsl:when>
+ <xsl:otherwise>false</xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:deferred-value">
+ <xsl:choose>
+ <xsl:when test="javaee:deferred-value/javaee:type">
+ <code>javax.el.ValueExpression</code>
+ <br/>(<i>must evaluate to
</i><code><xsl:value-of
+
select="javaee:deferred-value/javaee:type"/></code>)
+ </xsl:when>
+ <xsl:otherwise>
+ <code>javax.el.ValueExpression</code>
+ <br/>(<i>must evaluate to
</i><code>java.lang.Object</code>)
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="javaee:deferred-method">
+ <xsl:choose>
+ <xsl:when
test="javaee:deferred-method/javaee:method-signature">
+ <code>javax.el.MethodExpression</code>
+ <br/>(<i>signature must match
</i><code><xsl:value-of
+
select="javaee:deferred-method/javaee:method-signature"/></code>)
+ </xsl:when>
+ <xsl:otherwise>
+ <code>javax.el.MethodExpression</code>
+ <br/>(<i>signature must match
</i><code>void methodname()</code>)
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <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:template match="javaee:variable">
+ <tr>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:name-given!=''">
+ <xsl:value-of select="javaee:name-given"/>
+ </xsl:when>
+ <xsl:when test="javaee:name-from-attribute!=''">
+ <i>From attribute '<xsl:value-of
select="javaee:name-from-attribute"/>'</i>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>Unknown</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:variable-class!=''">
+ <code><xsl:value-of
select="javaee:variable-class"/></code>
+ </xsl:when>
+
<xsl:otherwise><code>java.lang.String</code></xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:declare!=''">
+ <xsl:value-of select="javaee:declare"/>
+ </xsl:when>
+ <xsl:otherwise>true</xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:scope!=''">
+ <xsl:value-of select="javaee:scope"/>
+ </xsl:when>
+ <xsl:otherwise>NESTED</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:template name="getTagName">
+ <xsl:param name="tagName" />
+ <xsl:choose>
+ <xsl:when test="$tagName = '_global_attributes'">
+ Global attributes
+ </xsl:when>
+ <xsl:otherwise>
+ Tag <xsl:value-of select="$tagName" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+</xsl:stylesheet>
Added: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld-frame.html.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld-frame.html.xsl
(rev 0)
+++ root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld-frame.html.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,206 @@
+<?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-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"/>
+
+ <xsl:param name="tlddoc-shortName">default</xsl:param>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <xsl:if test="javaee:short-name=$tlddoc-shortName">
+ <xsl:variable name="tldname">
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="javaee:short-name!=''">
+ <xsl:value-of select="javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="tldfull">
+ <xsl:value-of select="$tldname"/>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ (<xsl:value-of select="javaee:description"
disable-output-escaping="yes"/>)
+ </xsl:when>
+ <xsl:otherwise>
+ No Description
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <html>
+ <head>
+ <title>
+ <xsl:value-of select="$tldfull"/>
+ </title>
+ <meta name="keywords" content="$tldfull"/>
+ <link rel="stylesheet" type="text/css"
href="../stylesheet.css"
+ title="Style"/>
+ <script>
+ function asd()
+ {
+ parent.document.title="<xsl:value-of
select="normalize-space($tldfull)"/>";
+ }
+ </script>
+ </head>
+ <body bgcolor="white" onload="asd();">
+ <font size="+1" class="FrameTitleFont">
+ <a href="tld-summary.html" target="tagFrame">
+ <xsl:value-of select="$tldname"/>
+ </a>
+ </font>
+ <table border="0" width="100%">
+ <xsl:if
test="(count(javaee:tag)+count(javaee:tag-file))>0">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameHeadingFont">
+ Tags / Attributes
+ </font> 
+ <font class="FrameItemFont">
+ <xsl:apply-templates
select="javaee:tag|javaee:tag-file">
+ <xsl:sort select="../javaee:short-name"/>
+ <xsl:sort select="javaee:name"/>
+ </xsl:apply-templates>
+ </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>
+ <xsl:if test="count(javaee:validator)>0">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameHeadingFont">
+ Validator
+ </font> 
+ <font class="FrameItemFont">
+ <xsl:apply-templates select="javaee:validator"/>
+ </font>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="count(javaee:listener)>0">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameHeadingFont">
+ Listeners
+ </font> 
+ <font class="FrameItemFont">
+ <xsl:apply-templates select="javaee:listener"/>
+ </font>
+ </td>
+ </tr>
+ </xsl:if>
+ </table>
+ <!-- <table ... -->
+ </body>
+ </html>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <br/>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="javaee:name"/>.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <xsl:value-of select="../javaee:short-name"/>:
+ <xsl:call-template name="getTagName">
+ <xsl:with-param name="tagName"
select="string(javaee:name)" />
+ </xsl:call-template>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template name="getTagName">
+ <xsl:param name="tagName" />
+ <xsl:choose>
+ <xsl:when test="$tagName = '_global_attributes'">
+ @*
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$tagName" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="javaee:function">
+ <br/>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <i><xsl:value-of
select="../javaee:short-name"/>:<xsl:value-of
select="javaee:name"/>()</i>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="javaee:validator">
+ <br/>
+ <xsl:value-of select="javaee:validator-class"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:listener">
+ <br/>
+ <xsl:value-of select="javaee:listener-class"/>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld-summary.html.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld-summary.html.xsl
(rev 0)
+++
root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld-summary.html.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,466 @@
+<?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"/>
+
+ <xsl:param name="tlddoc-shortName">default</xsl:param>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <xsl:if test="javaee:short-name=$tlddoc-shortName">
+ <xsl:variable name="tldname">
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="javaee:short-name!=''">
+ <xsl:value-of select="javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="title">
+ <xsl:value-of select="$tldname"/>
+ (<xsl:value-of
select="/javaee:tlds/javaee:config/javaee:window-title"/>)
+ </xsl:variable>
+ <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="$tldname"/></h2>
+ <hr/>
+ <xsl:if test="(javaee:uri!='') and
(javaee:short-name!='')">
+ <!--
+ <b>Standard Syntax:</b><br/>
+ <code>
+     
+ <xsl:choose>
+ <xsl:when
test='starts-with(javaee:uri,"/WEB-INF/tags")'>
+ <%@ taglib prefix="<xsl:value-of
select="javaee:short-name"/>" tagdir="<xsl:value-of
select="javaee:uri"/>" %><br/>
+ </xsl:when>
+ <xsl:otherwise>
+ <%@ taglib prefix="<xsl:value-of
select="javaee:short-name"/>" uri="<xsl:value-of
select="javaee:uri"/>" %><br/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </code>
+ <br/>
+ -->
+ <b>XML Syntax:</b><br/>
+ <code>
+     
+ <xsl:choose>
+ <xsl:when
test='starts-with(javaee:uri,"/WEB-INF/tags")'>
+ <anyxmlelement xmlns:<xsl:value-of
select="javaee:short-name"/>="urn:jsptagdir:<xsl:value-of
select="javaee:uri"/>" /><br/>
+ </xsl:when>
+ <xsl:when test='starts-with(javaee:uri,"/")'>
+ <anyxmlelement xmlns:<xsl:value-of
select="javaee:short-name"/>="urn:jsptld:<xsl:value-of
select="javaee:uri"/>" /><br/>
+ </xsl:when>
+ <xsl:otherwise>
+ <anyxmlelement xmlns:<xsl:value-of
select="javaee:short-name"/>="<xsl:value-of
select="javaee:uri"/>" /><br/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </code>
+ <hr/>
+ </xsl:if>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <pre>
+ <xsl:value-of select="javaee: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="javaee:display-name!=''">
+ <td><xsl:value-of
select="javaee:display-name"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td><i>None</i></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ <tr>
+ <td>Version</td>
+ <xsl:choose>
+ <xsl:when test="javaee:tlib-version!=''">
+ <td><xsl:value-of
select="javaee:tlib-version"/></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="javaee:short-name!=''">
+ <td><xsl:value-of
select="javaee:short-name"/></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:uri!=''">
+ <td><xsl:value-of
select="javaee:uri"/></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)+count(javaee:tag-file)) >
0">
+ <table border="1" cellpadding="3"
cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF"
class="TableHeadingColor">
+ <td colspan="2">
+ <font
size="+2"><b>Summary</b></font>
+ </td>
+ </tr>
+ <xsl:apply-templates
select="javaee:tag|javaee:tag-file">
+ <xsl:sort select="../javaee:short-name"/>
+ <xsl:sort select="javaee:name"/>
+ </xsl:apply-templates>
+ </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>
+ <!-- validators -->
+ <xsl:if test="count(javaee:validator) > 0">
+ <table border="1" cellpadding="3"
cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF"
class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2"><b>Tag Library
Validator</b></font>
+ </td>
+ </tr>
+ <xsl:apply-templates select="javaee:validator"/>
+ </table>
+  
+ <p/>
+ </xsl:if>
+ <!-- listeners -->
+ <xsl:if test="count(javaee:listener) > 0">
+ <table border="1" cellpadding="3"
cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF"
class="TableHeadingColor">
+ <td>
+ <font
size="+2"><b>Listeners</b></font>
+ </td>
+ </tr>
+ <xsl:apply-templates select="javaee:listener"/>
+ </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:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <tr bgcolor="white" class="TableRowColor">
+ <td width="15%">
+ <b>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of
select="javaee:name"/>.html</xsl:attribute>
+ <xsl:call-template name="getTagName">
+ <xsl:with-param name="tagName"
select="string(javaee:name)" />
+ </xsl:call-template>
+ </xsl:element>
+ </b>
+ </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:template name="getTagName">
+ <xsl:param name="tagName" />
+ <xsl:choose>
+ <xsl:when test="$tagName = '_global_attributes'">
+ @*
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$tagName" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </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:name"/>.fn.html</xsl:attribute>
+ <xsl:value-of select="javaee: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:template match="javaee:validator">
+ <tr valign="top" bgcolor="white"
class="TableRowColor">
+ <td width="15%">
+ <b><xsl:value-of
select="javaee:validator-class"/></b>
+ </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>
+ <xsl:if test="count(javaee:init-param)>0">
+ <blockquote>
+ <b>Initialization Parameters:</b><br/>
+ <table border="1">
+ <tr>
+ <td><b>Name</b></td>
+ <td><b>Value</b></td>
+ <td><b>Description</b></td>
+ </tr>
+ <xsl:apply-templates select="javaee:init-param"/>
+ </table>
+ </blockquote>
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="javaee:init-param">
+ <tr valign="top">
+ <td><xsl:value-of select="javaee:param-name"/></td>
+ <td><xsl:value-of select="javaee:param-value"/></td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:param-description!=''">
+ <xsl:value-of select="javaee:param-description"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="javaee:listener">
+ <tr valign="top" bgcolor="white"
class="TableRowColor">
+ <td>
+ <b><xsl:value-of
select="javaee:listener-class"/></b>
+ </td>
+ </tr>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld1_1-tld1_2.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld1_1-tld1_2.xsl
(rev 0)
+++ root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld1_1-tld1_2.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,153 @@
+<?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>
+ -->
+
+<!--
+
+ Translates a JSP 1.1 TLD into a JSP 1.2 TLD, using the following
+ conversion rules:
+
+ 1. Change the document type definition for the TLD to:
+ <!DOCTYPE taglib
+ PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+ 2. Change the <tlibversion> element to <tlib-version>
+ 3. Change the optional <jspversion> element to <jsp-version>. If no
+ element exists, supply one that's set to 1.2
+ 4. Change the <shortname> element to <short-name>
+ 5. Preserve the original optional <uri> tag
+ 6. Change the optional <info> tag to <description>
+ 7. Preserve each tag/name
+ 8. Change each tag/tagclass to tag/tag-class
+ 9. Change each optional tag/teiclass to tag/tei-class
+ 10. Change each optional tag/bodycontent to tag/body-content
+ 11. Change each optional tag/info to tag/description
+ 12. Preserve each tag/attribute element and its contents.
+
+ Side-effect: Strips the id attributes
+
+ Author: Mark Roth
+
+-->
+
+<xsl:stylesheet version="1.0"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output method="xml" indent="yes"
+
doctype-system="http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"
+ doctype-public="-//Sun Microsystems, Inc.//DTD JSP Tag Library
1.2//EN"/>
+
+ <xsl:template match="/taglib">
+ <taglib>
+ <xsl:apply-templates select="tlibversion"/>
+ <jsp-version>1.2</jsp-version>
+ <xsl:apply-templates select="shortname"/>
+ <xsl:apply-templates select="uri"/>
+ <xsl:apply-templates select="info"/>
+ <xsl:apply-templates select="tag"/>
+ </taglib>
+ </xsl:template>
+
+ <!-- Rename to tlib-version -->
+ <xsl:template match="tlibversion">
+ <tlib-version><xsl:apply-templates/></tlib-version>
+ </xsl:template>
+
+ <!-- Rename to jsp-version -->
+ <xsl:template match="jspversion">
+ <jsp-version><xsl:apply-templates/></jsp-version>
+ </xsl:template>
+
+ <!-- Rename to short-name -->
+ <xsl:template match="shortname">
+ <short-name><xsl:apply-templates/></short-name>
+ </xsl:template>
+
+ <!-- Preserve uri -->
+ <xsl:template match="uri">
+ <uri><xsl:apply-templates/></uri>
+ </xsl:template>
+
+ <!-- Rename to description -->
+ <xsl:template match="info">
+ <description><xsl:apply-templates/></description>
+ </xsl:template>
+
+ <xsl:template match="tag">
+ <tag>
+ <xsl:apply-templates select="name"/>
+ <xsl:apply-templates select="tagclass"/>
+ <xsl:apply-templates select="teiclass"/>
+ <xsl:apply-templates select="bodycontent"/>
+ <xsl:apply-templates select="info"/>
+ <xsl:apply-templates select="attribute"/>
+ </tag>
+ </xsl:template>
+
+ <!-- Preserve name -->
+ <xsl:template match="name">
+ <name><xsl:apply-templates/></name>
+ </xsl:template>
+
+ <!-- Rename to tag-class -->
+ <xsl:template match="tagclass">
+ <tag-class><xsl:apply-templates/></tag-class>
+ </xsl:template>
+
+ <!-- Rename to tei-class -->
+ <xsl:template match="teiclass">
+ <tei-class><xsl:apply-templates/></tei-class>
+ </xsl:template>
+
+ <!-- Rename to body-content -->
+ <xsl:template match="bodycontent">
+ <body-content><xsl:apply-templates/></body-content>
+ </xsl:template>
+
+ <!-- Rename to description -->
+ <xsl:template match="info">
+ <description><xsl:apply-templates/></description>
+ </xsl:template>
+
+ <!-- Preserve attribute -->
+ <xsl:template match="attribute">
+ <attribute>
+ <xsl:apply-templates/>
+ </attribute>
+ </xsl:template>
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld1_2-tld2_0.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld1_2-tld2_0.xsl
(rev 0)
+++ root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld1_2-tld2_0.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,290 @@
+<?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>
+ -->
+
+<!--
+
+ Translates a JSP 1.2 TLD into a JSP 2.0 TLD, using the following
+ conversion rules:
+
+ 1. Change the <taglib> element to read as follows:
+ <taglib
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">
+ 2. Remove all id attributes from all elements.
+ 3. Remove <jsp-version> element and add an attribute to <taglib>
+ called 'version' with the value "2.0".
+ 4. Under <taglib>, if a <description> element exists, move it to
+ the top.
+ 5. Under <taglib>, if a <display-name> element exists, move it
+ to the top, after the <description> element.
+ 6. Under <taglib>, if a <small-icon> and/or <large-icon> element
+ exists, wrap them in an <icon> element and move it to the
+ top, after the <display-name> element.
+ 7. For each taglib/validator element, if a <description> element
+ exists, move it to the top, under <validator>.
+ 8. For each taglib/validator/init-param element, if a
+ <description> element exists, move it to the top, under
+ <init-param>.
+ 9. For each taglib/tag element, if a <description> element
+ exists, move it to the top, under <tag>.
+ 10. For each taglib/tag element, if a <display-name> element
+ exists, move it to the top, after the <description> element,
+ under <tag>.
+ 11. For each taglib/tag element, if a <small-icon> and/or
+ <large-icon> element exists, wrap them in an <icon> element
+ and move it to the top, after the <display-name> element,
+ under <tag>.
+ 12. For each taglib/tag element, if no <body-content> element
+ exists, supply a default value of "JSP"
+ 13. For each taglib/tag/variable element, if a <description>
+ element exists, move it to the top, under <variable>.
+ 14. For each taglib/tag/attribute element, if a <description>
+ element exists, move it to the top, under <attribute>.
+
+ Author: Mark Roth
+
+-->
+
+<xsl:stylesheet version="1.0"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template match="/taglib">
+ <xsl:element name="taglib"
namespace="http://java.sun.com/xml/ns/j2ee">
+ <xsl:attribute name="xsi:schemaLocation"
namespace="http://www.w3.org/2001/XMLSchema-instance">http:/...
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd</xsl:attribu...
+ <xsl:attribute name="version">2.0</xsl:attribute>
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="display-name"/>
+ <xsl:if test="small-icon|large-icon">
+ <icon
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="small-icon"/>
+ <xsl:apply-templates select="large-icon"/>
+ </icon>
+ </xsl:if>
+ <xsl:apply-templates select="tlib-version"/>
+ <xsl:apply-templates select="short-name"/>
+ <xsl:apply-templates select="uri"/>
+ <xsl:apply-templates select="validator"/>
+ <xsl:apply-templates select="listener"/>
+ <xsl:apply-templates select="tag"/>
+ </xsl:element>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="description">
+ <description
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </description>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="display-name">
+ <display-name
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </display-name>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="tlib-version">
+ <tlib-version
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </tlib-version>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="short-name">
+ <short-name
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </short-name>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="uri">
+ <uri
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </uri>
+ </xsl:template>
+
+ <xsl:template match="validator">
+ <validator
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="validator-class"/>
+ <xsl:apply-templates select="init-param"/>
+ </validator>
+ </xsl:template>
+
+ <xsl:template match="init-param">
+ <init-param
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="param-name"/>
+ <xsl:apply-templates select="param-value"/>
+ </init-param>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="param-name">
+ <param-name
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </param-name>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="param-value">
+ <param-value
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </param-value>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="listener">
+ <listener
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="listener-class"/>
+ </listener>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="listener-class">
+ <listener-class
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </listener-class>
+ </xsl:template>
+
+ <xsl:template match="tag">
+ <tag
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="display-name"/>
+ <xsl:if test="small-icon|large-icon">
+ <icon
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="small-icon"/>
+ <xsl:apply-templates select="large-icon"/>
+ </icon>
+ </xsl:if>
+ <xsl:apply-templates select="name"/>
+ <xsl:apply-templates select="tag-class"/>
+ <xsl:apply-templates select="tei-class"/>
+ <xsl:choose>
+ <xsl:when test="body-content">
+ <xsl:apply-templates select="body-content"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!--
+ - Explicitly Insert the default body-content since this is
+ - now a required element
+ -->
+ <body-content
xmlns="http://java.sun.com/xml/ns/j2ee">JSP</body-content...
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:apply-templates select="variable"/>
+ <xsl:apply-templates select="attribute"/>
+ <xsl:apply-templates select="example"/>
+ </tag>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="name">
+ <name
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </name>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="tag-class">
+ <tag-class
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </tag-class>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="tei-class">
+ <tei-class
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </tei-class>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="body-content">
+ <body-content
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </body-content>
+ </xsl:template>
+
+ <xsl:template match="variable">
+ <variable
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="name-given"/>
+ <xsl:apply-templates select="name-from-attribute"/>
+ <xsl:apply-templates select="variable-class"/>
+ <xsl:apply-templates select="declare"/>
+ <xsl:apply-templates select="scope"/>
+ </variable>
+ </xsl:template>
+
+ <xsl:template match="attribute">
+ <attribute
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="name"/>
+ <xsl:apply-templates select="required"/>
+ <xsl:apply-templates select="rtexprvalue"/>
+ <xsl:apply-templates select="type"/>
+ </attribute>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="required">
+ <required
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </required>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="rtexprvalue">
+ <rtexprvalue
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </rtexprvalue>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="example">
+ <example
xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </example>
+ </xsl:template>
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld2_0-tld2_1.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld2_0-tld2_1.xsl
(rev 0)
+++ root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld2_0-tld2_1.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,70 @@
+<?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>
+ -->
+
+<!--
+
+ Identity transformation (changing from the J2EE namespace
+ to the Java EE namespace), added for flexibility.
+
+ 1. Change the <taglib> element to read as follows:
+ <taglib
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">
+
+ Author: Mark Roth
+
+-->
+
+<xsl:stylesheet version="1.0"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:j2ee="http://java.sun.com/xml/ns/j2ee">
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template match="/j2ee:taglib">
+ <xsl:element name="taglib"
namespace="http://java.sun.com/xml/ns/javaee">
+ <xsl:attribute name="xsi:schemaLocation"
namespace="http://www.w3.org/2001/XMLSchema-instance">http:/...
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd</xsl:attri...
+ <xsl:attribute name="version">2.1</xsl:attribute>
+ <xsl:apply-templates select="*"/>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="j2ee:*">
+ <xsl:element name="{local-name()}"
namespace="http://java.sun.com/xml/ns/javaee">
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld2_1-tld2_1.xsl
===================================================================
--- root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld2_1-tld2_1.xsl
(rev 0)
+++ root/cdk-sandbox/trunk/xsd2javadoc/src/main/xslt/tlddoc/tld2_1-tld2_1.xsl 2010-02-17
12:47:39 UTC (rev 16466)
@@ -0,0 +1,79 @@
+<?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>
+ -->
+
+<!--
+
+ Identity transformation, added for flexibility.
+
+ 1. Remove any tag-extension, function-extension and taglib-extension
+ elements.
+
+ Author: Mark Roth
+
+-->
+
+<xsl:stylesheet version="1.0"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee">
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template match="/javaee:taglib">
+ <xsl:element name="taglib"
namespace="http://java.sun.com/xml/ns/javaee">
+ <xsl:attribute name="xsi:schemaLocation"
+
namespace="http://www.w3.org/2001/XMLSchema-instance">http:/...
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd</xsl:attri...
+ <xsl:attribute name="version">2.1</xsl:attribute>
+ <xsl:apply-templates select="*"/>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag-extension">
+ </xsl:template>
+
+ <xsl:template match="javaee:function-extension">
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib-extension">
+ </xsl:template>
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="text()">
+ <xsl:value-of select="normalize-space(.)" />
+ </xsl:template>
+
+</xsl:stylesheet>