Author: artdaw
Date: 2009-03-30 12:35:22 -0400 (Mon, 30 Mar 2009)
New Revision: 13300
Modified:
trunk/docs/common-resources/en/src/main/xslt/f.xsl
trunk/docs/common-resources/en/src/main/xslt/xhtml-common.xsl
Log:
https://jira.jboss.org/jira/browse/RF-6644 - all the guide files were distinguished
Modified: trunk/docs/common-resources/en/src/main/xslt/f.xsl
===================================================================
--- trunk/docs/common-resources/en/src/main/xslt/f.xsl 2009-03-30 14:44:28 UTC (rev
13299)
+++ trunk/docs/common-resources/en/src/main/xslt/f.xsl 2009-03-30 16:35:22 UTC (rev
13300)
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+
xmlns:u="http:/jsf.exadel.com/template/util"
+
xmlns:f='http:/jsf.exadel.com/template'
version="1.0" exclude-result-prefixes="javaee">
<xsl:output method="xml" version="1.0" encoding="UTF-8"
indent="yes"
omit-xml-declaration="yes" />
@@ -8,6 +10,39 @@
<xsl:param name="title" />
<xsl:param name="separator" />
<xsl:param name="prefix" />
+ <xsl:param name="xcssPath" />
+
+ <xsl:variable name="rowsAmount">
+ <xsl:value-of select="count(.)" />
+ </xsl:variable>
+
+ <xsl:template match="//f:template">
+ <table>
+ <xsl:for-each select="u:selector">
+ <xsl:sort select="@name" />
+ <xsl:if test="u:style[@skin]">
+ <row>
+ <entry morerows='$rowsAmount' valign='middle'>
+ <xsl:value-of select="@name"/>
+ </entry>
+ </row>
+ <xsl:for-each select="u:style">
+ <row>
+ <entry>
+ <xsl:value-of select="@skin"/>
+ </entry>
+ <entry>
+ <xsl:value-of select="@name"/>
+ </entry>
+ </row>
+ </xsl:for-each>
+ </xsl:if>
+ </xsl:for-each>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="/f:template/f:verbatim"/>
+
<xsl:template match="javaee:taglib | taglib">
<xsl:variable name="excluded-tag-names">
@@ -53,17 +88,27 @@
</xsl:choose>
</xsl:variable>
-->
- <xsl:attribute name="id"><xsl:value-of select="$tag_name"
/>
+ <xsl:attribute name="id"><xsl:value-of select="concat($prefix,
'_', $tag_name)" />
</xsl:attribute>
<title>
<
<xsl:value-of select="concat($prefix,':', $tag_name)" />
>
</title>
- <xsl:for-each
- select="document(concat($lang,
$separator,'included',$separator,$tag_name, '.desc.xml'))/*">
- <xsl:copy-of select="./*" />
- </xsl:for-each>
+
+ <xsl:choose>
+ <xsl:when test="document(concat($lang, $separator, 'included',
$separator, $prefix, '_', $tag_name, '.desc.xml'))">
+ <xsl:for-each select="document(concat($lang,
$separator,'included',$separator, $prefix, '_', $tag_name,
'.desc.xml'))/*">
+ <xsl:copy-of select="./*" />
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="document(concat($lang,
$separator,'included',$separator,$tag_name, '.desc.xml'))/*">
+ <xsl:copy-of select="./*" />
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
+
<table>
<title>
<xsl:value-of select="$prefix" />
@@ -96,10 +141,48 @@
</tbody>
</tgroup>
</table>
- <xsl:for-each
- select="document(concat($lang,
$separator,'included',$separator,$tag_name, '.xml'))/*">
- <xsl:copy-of select="./*" />
- </xsl:for-each>
+
+
+ <!--xsl:if test="$prefix != 'a4j'">
+ <table>
+ <title>
+ <xsl:value-of select="$prefix" />
+ :
+ <xsl:value-of select="javaee:name" />
+ <xsl:value-of select="name" />
+ classes
+ </title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>Class Name</entry>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <xsl:for-each select="document(concat($xcssPath, $separator, $tag_name,
'.xml'))/*">
+ <xsl:copy-of select="*" />
+ </xsl:for-each>
+ </tbody>
+ </tgroup>
+ </table>
+ </xsl:if-->
+ <xsl:choose>
+ <xsl:when test="document(concat($lang, $separator, 'included',
$separator, $prefix, '_', $tag_name, '.xml'))">
+ <xsl:for-each select="document(concat($lang,
$separator,'included',$separator, $prefix, '_', $tag_name,
'.xml'))/*">
+ <xsl:copy-of select="./*" />
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="document(concat($lang,
$separator,'included',$separator,$tag_name, '.xml'))/*">
+ <xsl:copy-of select="./*" />
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
+
+
</section>
</xsl:template>
</xsl:transform>
\ No newline at end of file
Modified: trunk/docs/common-resources/en/src/main/xslt/xhtml-common.xsl
===================================================================
--- trunk/docs/common-resources/en/src/main/xslt/xhtml-common.xsl 2009-03-30 14:44:28 UTC
(rev 13299)
+++ trunk/docs/common-resources/en/src/main/xslt/xhtml-common.xsl 2009-03-30 16:35:22 UTC
(rev 13300)
@@ -11,7 +11,9 @@
<xsl:import href="collapsing-navigation.xsl"/>
<!--xsl:param name="generate.toc" select="'book
toc'"/-->
<xsl:param name="toc.section.depth" select="5"/>
-
+ <xsl:param name="use.id.as.filename" select="1"/>
+
+
<!--
From: xhtml/docbook.xsl