[richfaces-svn-commits] JBoss Rich Faces SVN: r14565 - branches/community/3.3.X/docs/common-resources/en/src/main/xslt.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Jun 9 09:26:49 EDT 2009


Author: ochikvina
Date: 2009-06-09 09:26:49 -0400 (Tue, 09 Jun 2009)
New Revision: 14565

Modified:
   branches/community/3.3.X/docs/common-resources/en/src/main/xslt/f.xsl
Log:
https://jira.jboss.org/jira/browse/RF-5945 - HTML, DHTML, JSF prefixes are added to the tables of attributes;

Modified: branches/community/3.3.X/docs/common-resources/en/src/main/xslt/f.xsl
===================================================================
--- branches/community/3.3.X/docs/common-resources/en/src/main/xslt/f.xsl	2009-06-09 11:46:03 UTC (rev 14564)
+++ branches/community/3.3.X/docs/common-resources/en/src/main/xslt/f.xsl	2009-06-09 13:26:49 UTC (rev 14565)
@@ -103,6 +103,20 @@
 				<xsl:with-param name="tag_name" select="$tag_name" />
 				<xsl:with-param name="filePostfix" select="'.desc'"/>
 			</xsl:call-template>
+			
+			
+			<xsl:variable name="html-attributes">
+				,accesskey,accept,accept-charset,alt,border,charset,coords,dir,disabled,hreflang,lang,maxlength,readonly,rel,rev,rows,shape,size,style,tabindex,target,title,type,width, </xsl:variable>
+			
+			<xsl:variable name="dhtml-attributes">
+				,onblur,onchange,onclick,ondblclick,onfocus,onkeydown,onkeypress,onkeyup,onmousedown,onmousemove,onmouseout,onmouseover,onmouseup,onreset,onsubmit, </xsl:variable>
+			
+			<xsl:variable name="jsf-attributes">
+			,id,binding,rendered,styleClass,value,valueChangeListener,converter,validator,required, </xsl:variable>
+			
+			<xsl:variable name="onselect-custom-attribute">
+				,menuItem,colorPicker,suggestionbox, </xsl:variable>
+			
 			<table>
 				<title>
 					<xsl:value-of select="$prefix" />
@@ -127,8 +141,42 @@
 									<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"/>
+									<xsl:choose>
+										<xsl:when
+											test="contains($html-attributes, concat(',',javaee:name|name,','))"
+											>HTML: <xsl:value-of select="javaee:description"
+												disable-output-escaping="yes"/>
+											<xsl:value-of select="description"
+												disable-output-escaping="yes"/>
+										</xsl:when>
+										<xsl:when test="contains($dhtml-attributes, concat(',',javaee:name|name,','))">
+											DHTML: 
+											<xsl:value-of select="javaee:description"
+												disable-output-escaping="yes"/>
+											<xsl:value-of select="description"
+												disable-output-escaping="yes"/>
+										</xsl:when>
+										<xsl:when test="contains('onselect', javaee:name|name) and not(contains($onselect-custom-attribute, concat(',',$tag_name,',')))">
+											DHTML: 
+											<xsl:value-of select="javaee:description"
+												disable-output-escaping="yes"/>
+											<xsl:value-of select="description"
+												disable-output-escaping="yes"/>
+										</xsl:when>
+										<xsl:when 
+											test="contains($jsf-attributes, concat(',',javaee:name|name,','))"
+											> JSF: <xsl:value-of select="javaee:description"
+												disable-output-escaping="yes"/>
+											<xsl:value-of select="description"
+												disable-output-escaping="yes"/>
+										</xsl:when>
+										<xsl:otherwise>
+											<xsl:value-of select="javaee:description"
+												disable-output-escaping="yes"/>
+											<xsl:value-of select="description"
+												disable-output-escaping="yes"/>
+										</xsl:otherwise>
+									</xsl:choose>
 								</entry>
 							</row>
 						</xsl:for-each>
@@ -136,7 +184,6 @@
 				</tgroup>
 			</table>
 
-
 			<!--xsl:if test="$prefix != 'a4j'">
 				<table>
 					<title>




More information about the richfaces-svn-commits mailing list