[ajax4jsf-svn-commits] JBoss Ajax4JSF SVN: r246 - in trunk/docs: xslt/src/main/resources/en and 1 other directory.

ajax4jsf-svn-commits at lists.jboss.org ajax4jsf-svn-commits at lists.jboss.org
Tue Jun 5 22:05:53 EDT 2007


Author: alexsmirnov
Date: 2007-06-05 22:05:53 -0400 (Tue, 05 Jun 2007)
New Revision: 246

Added:
   trunk/docs/xslt/src/main/resources/en/f.xsl
Removed:
   trunk/docs/userguide/en/src/main/docbook/f.xsl
Log:
reorganize projects for a Maven documentation build

Deleted: trunk/docs/userguide/en/src/main/docbook/f.xsl
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/f.xsl	2007-06-06 01:40:59 UTC (rev 245)
+++ trunk/docs/userguide/en/src/main/docbook/f.xsl	2007-06-06 02:05:53 UTC (rev 246)
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-               xmlns:javaee="http://java.sun.com/JSP/TagLibraryDescriptor"
-               version="1.0" exclude-result-prefixes="javaee">
-    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
-     <xsl:param name="lang" />
-    
-    <xsl:template match="javaee:taglib | taglib">
-        <xsl:variable name="excluded-tag-names">header2,header3,header4,header5,header6</xsl:variable>
-        
-        <chapter>
-            
-            <title>Ajax4JSF Components Library</title>
-       <xsl:for-each select="javaee:tag | tag">
-	   
-	   <!--xsl:value-of select="./name/text()" /-->
-
-		   <xsl:if test="not(contains($excluded-tag-names, javaee:name))">
-				<xsl:call-template name="tag" />
-		   </xsl:if>
-		   <xsl:if test="not(contains($excluded-tag-names, ./name/text()))">
-				<xsl:call-template name="tag" />
-		   </xsl:if>
-       </xsl:for-each>
-       </chapter>    
-    </xsl:template>
-
-	<xsl:template name="tag">
-        <section role="NotInToc">
-            <xsl:variable name="tag_name">
-				<xsl:choose>
-					<xsl:when test="javaee:name">
-						<xsl:value-of select="javaee:name" />
-					</xsl:when>
-					<xsl:otherwise>
-						<xsl:value-of select="./name/text()" />
-					</xsl:otherwise>
-				</xsl:choose>
-			</xsl:variable>
-        	<xsl:attribute name="id"><xsl:value-of select="$tag_name"/></xsl:attribute>
-            <title>&lt;<xsl:value-of select="concat('a4j:', $tag_name)" />&gt;</title>
-			<xsl:for-each select="document(concat($lang, '/included/',$tag_name, '.desc.xml'))/*">
-                <xsl:copy-of select="./*"/>
-            </xsl:for-each>
-            <table>
-                <title>a4j:<xsl:value-of select="javaee:name"/><xsl:value-of select="name"/> attributes</title>
-                <tgroup cols="2">
-                    <thead>
-                        <row>
-                            <entry>Attribute Name</entry>
-                            <entry>Description</entry>
-                        </row>
-                    </thead>                
-                <tbody>
-                    <xsl:for-each select="javaee:attribute | attribute">
-                        <row>
-                        <entry>
-                            <xsl:value-of select="javaee:name"/>
-			   <xsl:value-of select="name"/>
-		            	</entry>
-                        <entry>
-                            <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
-                            <xsl:value-of select="description" disable-output-escaping="yes"/>
-			            </entry>
-                    </row>
-                    </xsl:for-each>
-                </tbody>
-                </tgroup>
-            </table>
- 			<xsl:for-each select="document(concat($lang,'/included/',$tag_name, '.xml'))/*">
-                <xsl:copy-of select="./*"/>
-            </xsl:for-each>
-        </section>
-	</xsl:template>
-</xsl:transform>
\ No newline at end of file

Copied: trunk/docs/xslt/src/main/resources/en/f.xsl (from rev 245, trunk/docs/userguide/en/src/main/docbook/f.xsl)
===================================================================
--- trunk/docs/xslt/src/main/resources/en/f.xsl	                        (rev 0)
+++ trunk/docs/xslt/src/main/resources/en/f.xsl	2007-06-06 02:05:53 UTC (rev 246)
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+               xmlns:javaee="http://java.sun.com/JSP/TagLibraryDescriptor"
+               version="1.0" exclude-result-prefixes="javaee">
+    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
+     <xsl:param name="lang" />
+     <xsl:param name="title" />
+    
+    <xsl:template match="javaee:taglib | taglib">
+        <xsl:variable name="excluded-tag-names">header2,header3,header4,header5,header6</xsl:variable>
+        
+        <chapter>
+            
+            <title>$title</title>
+       <xsl:for-each select="javaee:tag | tag">
+	   
+	   <!--xsl:value-of select="./name/text()" /-->
+
+		   <xsl:if test="not(contains($excluded-tag-names, javaee:name))">
+				<xsl:call-template name="tag" />
+		   </xsl:if>
+		   <xsl:if test="not(contains($excluded-tag-names, ./name/text()))">
+				<xsl:call-template name="tag" />
+		   </xsl:if>
+       </xsl:for-each>
+       </chapter>    
+    </xsl:template>
+
+	<xsl:template name="tag">
+        <section role="NotInToc">
+            <xsl:variable name="tag_name">
+				<xsl:choose>
+					<xsl:when test="javaee:name">
+						<xsl:value-of select="javaee:name" />
+					</xsl:when>
+					<xsl:otherwise>
+						<xsl:value-of select="./name/text()" />
+					</xsl:otherwise>
+				</xsl:choose>
+			</xsl:variable>
+			<xsl:variable name="prefix">
+					<xsl:when test="/javaee:taglib/javaee:short-name">
+						<xsl:value-of select="/javaee:taglib/javaee:short-name" />
+					</xsl:when>
+					<xsl:otherwise>
+						<xsl:value-of select="/taglib/short-name/text()" />
+					</xsl:otherwise>
+			</xsl:variable>
+			
+        	<xsl:attribute name="id"><xsl:value-of select="$tag_name"/></xsl:attribute>
+            <title>&lt;<xsl:value-of select="concat($prefix,':', $tag_name)" />&gt;</title>
+			<xsl:for-each select="document(concat($lang, '/included/',$tag_name, '.desc.xml'))/*">
+                <xsl:copy-of select="./*"/>
+            </xsl:for-each>
+            <table>
+                <title><xsl:value-of select="$prefix"/>:<xsl:value-of select="javaee:name"/><xsl:value-of select="name"/> attributes</title>
+                <tgroup cols="2">
+                    <thead>
+                        <row>
+                            <entry>Attribute Name</entry>
+                            <entry>Description</entry>
+                        </row>
+                    </thead>                
+                <tbody>
+                    <xsl:for-each select="javaee:attribute | attribute">
+                        <row>
+                        <entry>
+                            <xsl:value-of select="javaee:name"/>
+			   <xsl:value-of select="name"/>
+		            	</entry>
+                        <entry>
+                            <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+                            <xsl:value-of select="description" disable-output-escaping="yes"/>
+			            </entry>
+                    </row>
+                    </xsl:for-each>
+                </tbody>
+                </tgroup>
+            </table>
+ 			<xsl:for-each select="document(concat($lang,'/included/',$tag_name, '.xml'))/*">
+                <xsl:copy-of select="./*"/>
+            </xsl:for-each>
+        </section>
+	</xsl:template>
+</xsl:transform>
\ No newline at end of file




More information about the ajax4jsf-svn-commits mailing list