Author: steveh Date: Fri Jan 14 10:02:03 2005 New Revision: 125192 URL: http://svn.apache.org/viewcvs?view=rev&rev=125192 Log: Refining the XSD topic generator. Modified: incubator/beehive/trunk/docs/tools/xslt/config_ref.xslt
Modified: incubator/beehive/trunk/docs/tools/xslt/config_ref.xslt Url: http://svn.apache.org/viewcvs/incubator/beehive/trunk/docs/tools/xslt/config_ref.xslt?view=diff&rev=125192&p1=incubator/beehive/trunk/docs/tools/xslt/config_ref.xslt&r1=125191&p2=incubator/beehive/trunk/docs/tools/xslt/config_ref.xslt&r2=125192 ============================================================================== --- incubator/beehive/trunk/docs/tools/xslt/config_ref.xslt (original) +++ incubator/beehive/trunk/docs/tools/xslt/config_ref.xslt Fri Jan 14 10:02:03 2005 @@ -4,7 +4,8 @@ ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:ref="http://www.w3.org/2001/XMLSchema"> + xmlns:ref="http://www.w3.org/2001/XMLSchema" + exclude-result-prefixes="ref"> <!--<xsl:preserve-space elements="*"/>--> <xsl:output doctype-public="-//APACHE//DTD Documentation V1.2//EN" doctype-system="http://forrest.apache.org/dtd/document-v13.dtd"/> @@ -18,22 +19,30 @@ <!-- ############### Description Section ################--> <xsl:for-each select="//ref:annotation"> <xsl:if test="@id = 'description'"> + <section> + <title>Description</title> <p><xsl:value-of select="ref:documentation"/></p> + </section> </xsl:if> </xsl:for-each> <!-- ############### Elements Section ################--> - <xsl:for-each select="//ref:element"> - <xsl:sort select="@name"/> - <section> - <title><xsl:value-of select="@name"/></title> - <p><xsl:value-of select="ref:annotation/ref:documentation"/></p> - </section> - - </xsl:for-each> + <section> + <title>Elements</title> + <xsl:for-each select="//ref:element"> + <xsl:sort select="@name"/> + <section> + <title><<xsl:value-of select="@name"/>></title> + <p><xsl:value-of select="ref:annotation/ref:documentation"/> </p> + </section> + </xsl:for-each> + </section> <!-- ############### Example Section ################--> <xsl:for-each select="//ref:annotation"> <xsl:if test="@id = 'example'"> + <section> + <title>Example</title> <p><xsl:value-of select="ref:documentation"/></p> + </section> </xsl:if> </xsl:for-each> </body>
