Author: germuska
Date: Sun Feb  6 16:48:08 2005
New Revision: 151647

URL: http://svn.apache.org/viewcvs?view=rev&rev=151647
Log:
bring TLD generation to tiles subproject; correct class names for tag classes 
in XML file

Added:
    struts/tiles/trunk/doc/stylesheets/tld.xsl
Modified:
    struts/tiles/trunk/doc/userGuide/struts-tiles.xml

Added: struts/tiles/trunk/doc/stylesheets/tld.xsl
URL: 
http://svn.apache.org/viewcvs/struts/tiles/trunk/doc/stylesheets/tld.xsl?view=auto&rev=151647
==============================================================================
--- struts/tiles/trunk/doc/stylesheets/tld.xsl (added)
+++ struts/tiles/trunk/doc/stylesheets/tld.xsl Sun Feb  6 16:48:08 2005
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- Convert Tag Library Documentation into Tag Library Descriptor -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+  version="1.0">
+
+  <!-- Output method and formatting -->
+  <xsl:output
+             method="xml"
+             indent="yes"
+     doctype-public="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
+     doctype-system="http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"/>
+   <xsl:strip-space elements="taglib tag attribute"/>
+
+  <!-- Process an entire tag library -->
+  <xsl:template match="taglib">
+    <taglib>
+      <xsl:if test="tlibversion">
+        <tlibversion><xsl:value-of select="tlibversion"/></tlibversion>
+      </xsl:if>
+      <xsl:if test="jspversion">
+        <jspversion><xsl:value-of select="jspversion"/></jspversion>
+      </xsl:if>
+      <xsl:if test="shortname">
+        <shortname><xsl:value-of select="shortname"/></shortname>
+      </xsl:if>
+      <xsl:if test="uri">
+        <uri><xsl:value-of select="uri"/></uri>
+      </xsl:if>
+      <xsl:apply-templates select="tag"/>
+    </taglib>
+  </xsl:template>
+
+  <!-- Process an individual tag -->
+  <xsl:template match="tag">
+    <tag>
+      <xsl:if test="name">
+        <name><xsl:value-of select="name"/></name>
+      </xsl:if>
+      <xsl:if test="tagclass">
+        <tagclass><xsl:value-of select="tagclass"/></tagclass>
+      </xsl:if>
+      <xsl:if test="teiclass">
+        <teiclass><xsl:value-of select="teiclass"/></teiclass>
+      </xsl:if>
+      <xsl:if test="bodycontent">
+        <bodycontent><xsl:value-of select="bodycontent"/></bodycontent>
+      </xsl:if>
+      <xsl:apply-templates select="attribute"/>
+    </tag>
+  </xsl:template>
+
+  <!-- Process an individual tag attribute -->
+  <xsl:template match="attribute">
+    <attribute>
+      <xsl:if test="name">
+        <name><xsl:value-of select="name"/></name>
+      </xsl:if>
+      <xsl:if test="required">
+        <required><xsl:value-of select="required"/></required>
+      </xsl:if>
+      <xsl:if test="rtexprvalue">
+        <rtexprvalue><xsl:value-of select="rtexprvalue"/></rtexprvalue>
+      </xsl:if>
+    </attribute>
+  </xsl:template>
+
+  <!-- Skip irrelevant details -->
+  <xsl:template match="properties"/>
+
+</xsl:stylesheet>

Modified: struts/tiles/trunk/doc/userGuide/struts-tiles.xml
URL: 
http://svn.apache.org/viewcvs/struts/tiles/trunk/doc/userGuide/struts-tiles.xml?view=diff&r1=151646&r2=151647
==============================================================================
--- struts/tiles/trunk/doc/userGuide/struts-tiles.xml (original)
+++ struts/tiles/trunk/doc/userGuide/struts-tiles.xml Sun Feb  6 16:48:08 2005
@@ -71,7 +71,7 @@
             &lt;tiles:put name="body"   value="/basic/helloBody.jsp" /&gt;
           &lt;/tiles:insert&gt;</code></pre>
     </info>
-    <tagclass>org.apache.struts.taglib.tiles.InsertTag</tagclass>
+    <tagclass>org.apache.struts.tiles.taglib.InsertTag</tagclass>
     <bodycontent>JSP</bodycontent>
 
     <attribute>
@@ -248,7 +248,7 @@
     The new definition can extends a definition described in factory (XML 
file), and overload
     any previously defined parameters.
     </info>
-        <tagclass>org.apache.struts.taglib.tiles.DefinitionTag</tagclass>
+        <tagclass>org.apache.struts.tiles.taglib.DefinitionTag</tagclass>
         <bodycontent>JSP</bodycontent>
 
     <attribute>
@@ -329,7 +329,7 @@
       <p>If 'type' attribute is not specified, content is 'untyped', unless it 
comes from a typed bean.</p>
       <p>Note that using 'direct="true"' is equivalent to 'type="string"'.</p>
     </info>
-    <tagclass>org.apache.struts.taglib.tiles.PutTag</tagclass>
+    <tagclass>org.apache.struts.tiles.taglib.PutTag</tagclass>
     <bodycontent>JSP</bodycontent>
 
     <attribute>
@@ -447,7 +447,7 @@
       List elements are added using the tag 'add'.
       This tag can only be used inside 'insert' or 'definition' tag.
     </info>
-    <tagclass>org.apache.struts.taglib.tiles.PutListTag</tagclass>
+    <tagclass>org.apache.struts.tiles.taglib.PutListTag</tagclass>
     <bodycontent>JSP</bodycontent>
 
     <attribute>
@@ -472,7 +472,7 @@
        Value can come from a direct assignment (value="aValue") or from a bean.
        One of 'value' or 'beanName' must be present.
     </info>
-    <tagclass>org.apache.struts.taglib.tiles.AddTag</tagclass>
+    <tagclass>org.apache.struts.tiles.taglib.AddTag</tagclass>
     <bodycontent>JSP</bodycontent>
 
     <attribute>
@@ -578,7 +578,7 @@
     Gets the content from request scope that was put there by a
     put tag.
     </summary>
-    <tagclass>org.apache.struts.taglib.tiles.GetTag</tagclass>
+    <tagclass>org.apache.struts.tiles.taglib.GetTag</tagclass>
     <bodycontent>empty</bodycontent>
     <info>
     <p>Retrieve content from tile context and include it.</p>
@@ -636,7 +636,7 @@
       The usual toString() conversions is applied on found value.
       <p>Throw a JSPException if named value is not found.</p>
     </info>
-    <tagclass>org.apache.struts.taglib.tiles.GetAttributeTag</tagclass>
+    <tagclass>org.apache.struts.tiles.taglib.GetAttributeTag</tagclass>
     <bodycontent>empty</bodycontent>
     <attribute>
       <name>name</name>
@@ -684,8 +684,8 @@
       specified.
       </p>
     </info>
-    <tagclass>org.apache.struts.taglib.tiles.UseAttributeTag</tagclass>
-    <teiclass>org.apache.struts.taglib.tiles.UseAttributeTei</teiclass>
+    <tagclass>org.apache.struts.tiles.taglib.UseAttributeTag</tagclass>
+    <teiclass>org.apache.struts.tiles.taglib.UseAttributeTei</teiclass>
     <bodycontent>empty</bodycontent>
     <attribute>
       <name>id</name>
@@ -744,7 +744,7 @@
       attributes are imported in page scope.
       Once imported, an attribute can be used as any other beans from jsp 
contexts.
     </info>
-    <tagclass>org.apache.struts.taglib.tiles.ImportAttributeTag</tagclass>
+    <tagclass>org.apache.struts.tiles.taglib.ImportAttributeTag</tagclass>
     <bodycontent>empty</bodycontent>
     <attribute>
       <name>name</name>
@@ -793,7 +793,7 @@
       are ignored (tag checks existence of the factory.
       </p>
     </info>
-    <tagclass>org.apache.struts.taglib.tiles.InitDefinitionsTag</tagclass>
+    <tagclass>org.apache.struts.tiles.taglib.InitDefinitionsTag</tagclass>
     <bodycontent>empty</bodycontent>
     <attribute>
       <name>file</name>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to