cvs: php-gtk /docs Makefile.in /docs/stylesheets/xsl gen_name_to_id.xsl /docs/stylesheets/xsl/html name_to_id.xsl
| From: | James Moore | Date: | Sun, 15 Apr 2001 12:22:38 +0000 |
| Subject: | cvs: php-gtk /docs Makefile.in /docs/stylesheets/xsl gen_name_to_id.xsl /docs/stylesheets/xsl/html name_to_id.xsl | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1410@lists.php.net to get a copy of this message | ||
jmoore Sun Apr 15 05:22:38 2001 EDT
Added files:
/php-gtk/docs/stylesheets/xsl gen_name_to_id.xsl
/php-gtk/docs/stylesheets/xsl/html name_to_id.xsl
Modified files:
/php-gtk/docs Makefile.in
Log:
- Added utility xsl stylesheet for converting classnames to their id for making
links and hierarchy.
# - This script can be updated with make util and it will be generated.
# This should be done when a new class is added to the repository (ill do it
# for now)
Index: php-gtk/docs/Makefile.in
diff -u php-gtk/docs/Makefile.in:1.7 php-gtk/docs/Makefile.in:1.8
--- php-gtk/docs/Makefile.in:1.7 Sat Apr 14 03:04:37 2001
+++ php-gtk/docs/Makefile.in Sun Apr 15 05:22:38 2001
@@ -17,7 +17,7 @@
# +----------------------------------------------------------------------+
#
-# $Id: Makefile.in,v 1.7 2001/04/14 10:04:37 jmoore Exp $
+# $Id: Makefile.in,v 1.8 2001/04/15 12:22:38 jmoore Exp $
#
VPATH=@srcdir@
@@ -84,6 +84,9 @@
manual.txt: bigmanual.html
lynx -nolist -dump file:
pwd/bigmanual.html > manual.txt
+
+util: manual.xml
+ $(SAXON) manual.xml $(stylesheet_dir)/gen_name_to_id.xsl >
$(stylesheet_dir)/html/name_to_id.xsl
# Note: Isilo converter available only in binary from www.isilo.com
manual_isilo.pdb: bigmanual.html
Index: php-gtk/docs/stylesheets/xsl/gen_name_to_id.xsl
+++ php-gtk/docs/stylesheets/xsl/gen_name_to_id.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:doc="http://nwlash.com/xsl/documentation/1.0"
version="1.0">
<xsl:output method="html"
encoding="ISO-8859-1"
indent="no"
/>
<xsl:template match="*" />
<xsl:template match="classentry">
<xsl:variable name="id" select="@id"/>
<xsl:variable name="classname" >
<xsl:value-of select="./classmeta/classtitle"/>
</xsl:variable>
<xsl:text disable-output-escaping="yes"><xsl:when
test="$name='</xsl:text>
<xsl:value-of select="$classname"/>
<xsl:text
disable-output-escaping="yes">'">
<xsl:text></xsl:text>
<xsl:value-of select="$id" />
<xsl:text
disable-output-escaping="yes"></xsl:text>
</xsl:when>
</xsl:text>
</xsl:template>
<xsl:template match="/">
<xsl:text disable-output-escaping="yes">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:doc="http://nwlash.com/xsl/documentation/1.0"
version="1.0">


<xsl:template name="get_id_from_name">

<xsl:choose>

</xsl:text>
<xsl:apply-templates select=".//classentry" />
<xsl:text disable-output-escaping="yes">

<xsl:otherwise>

<xsl:text></xsl:text>

</xsl:otherwise>

</xsl:choose>

</xsl:template>

</xsl:stylesheet>
</xsl:text>
</xsl:template>
</xsl:stylesheet>
Index: php-gtk/docs/stylesheets/xsl/html/name_to_id.xsl
+++ php-gtk/docs/stylesheets/xsl/html/name_to_id.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:doc="http://nwlash.com/xsl/documentation/1.0"
version="1.0">
<xsl:template name="get_id_from_name">
<xsl:choose>
<xsl:when test="$name='GtkObject'">
<xsl:text>gtk.gtkobject</xsl:text>
</xsl:when>
<xsl:when test="$name='GtkWidget'">
<xsl:text>gtk.gtkwidget</xsl:text>
</xsl:when>
<xsl:when test="$name='GtkData'">
<xsl:text>gtk.gtkdata</xsl:text>
</xsl:when>
<xsl:when test="$name='GtkItemFactory'">
<xsl:text>gtk.gtkitemfactory</xsl:text>
</xsl:when>
<xsl:when test="$name='GtkMisc'">
<xsl:text>gtk.gtkmisc</xsl:text>
</xsl:when>
<xsl:when test="$name='GtkContainer'">
<xsl:text>gtk.gtkcontainer</xsl:text>
</xsl:when>
<xsl:when test="$name='GtkBin'">
<xsl:text>gtk.gtkbin</xsl:text>
</xsl:when>
<xsl:when test="$name='GtkLabel'">
<xsl:text>gtk.gtklabel</xsl:text>
</xsl:when>
<xsl:when test="$name='GtkAccelLabel'">
<xsl:text>gtk.gtkaccellabel</xsl:text>
</xsl:when>
<xsl:when test="$name='GtkTipsQuery'">
<xsl:text>gtk.gtktipsquery</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text></xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>