cvs: php-gtk-doc / configure.in /stylesheets/xsl quickref.xsl /stylesheets/xsl/common util.xsl /stylesheets/xsl/locale default.xsl

[email protected] ("James Moore") Sun, 12 Aug 2001 12:08:11 -0000
Newsgroups php.gtk
Message-ID <cvsjmoore997618091@cvsserver>
jmoore		Sun Aug 12 08:08:11 2001 EDT

  Added files:                 
    /php-gtk-doc/stylesheets/xsl	quickref.xsl 

  Modified files:              
    /php-gtk-doc	configure.in 
    /php-gtk-doc/stylesheets/xsl/common	util.xsl 
    /php-gtk-doc/stylesheets/xsl/locale	default.xsl 
  Log:
  A very basic quickreference just so I could see the speed differences between Saxon and LibXSLT
  
  
Index: php-gtk-doc/configure.in
diff -u php-gtk-doc/configure.in:1.6 php-gtk-doc/configure.in:1.7
--- php-gtk-doc/configure.in:1.6	Fri Aug 10 08:14:11 2001
+++ php-gtk-doc/configure.in	Sun Aug 12 08:08:10 2001
@@ -15,7 +15,7 @@
 # +----------------------------------------------------------------------+
 
 #
-# $Id: configure.in,v 1.6 2001/08/10 12:14:11 jmoore Exp $
+# $Id: configure.in,v 1.7 2001/08/12 12:08:10 jmoore Exp $
 #
 
 AC_INIT(global.ent)
@@ -155,11 +155,7 @@
 manual.xml \
 scripts/udocs \
 scripts/genchapterents.php \
-stylesheets/xsl/chunk.xsl \
-stylesheets/xsl/html.xsl \
-stylesheets/xsl/phpweb.xsl \
-stylesheets/xsl/common.xsl \
-stylesheets/xsl/update.xsl)
+stylesheets/xsl/locale.xsl )
 
 chmod +x scripts/genchapterents.php
 echo $ENDTEXT
Index: php-gtk-doc/stylesheets/xsl/common/util.xsl
diff -u php-gtk-doc/stylesheets/xsl/common/util.xsl:1.2 php-gtk-doc/stylesheets/xsl/common/util.xsl:1.3
--- php-gtk-doc/stylesheets/xsl/common/util.xsl:1.2	Sun Aug 12 06:41:08 2001
+++ php-gtk-doc/stylesheets/xsl/common/util.xsl	Sun Aug 12 08:08:10 2001
@@ -2,7 +2,7 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 		version="1.0">
 
-<!-- $Id: util.xsl,v 1.2 2001/08/12 10:41:08 jmoore Exp $ -->
+<!-- $Id: util.xsl,v 1.3 2001/08/12 12:08:10 jmoore Exp $ -->
 		
 <!-- ================== Utility Functions ============================ -->
 
@@ -30,6 +30,33 @@
 
   <xsl:copy-of select="$root//classentry[classmeta/classtitle = $title]"/>
  
+ </xsl:template>
+
+<!--
+  * Function:	get.enum.title
+  * Params:	enum - The enum we want the title for
+  * Returns:	The enum's title
+-->
+ <xsl:template name="get.enum.title">
+  <xsl:param name="enum" />
+
+  <xsl:value-of select="$enum/enumname"/>
+ </xsl:template>
+
+<!--
+  * Function:	new.line
+  * Returns:	A new line
+-->
+ <xsl:template name="new.line">
+  <xsl:choose>
+   <xsl:when test="$output.mode='html'">
+    <br />
+   </xsl:when>
+   <xsl:otherwise>
+	   <!-- TODO: Find newline code -->
+    <xsl:text></xsl:text>
+   </xsl:otherwise>
+  </xsl:choose>
  </xsl:template>
 
 </xsl:stylesheet>
Index: php-gtk-doc/stylesheets/xsl/locale/default.xsl
diff -u php-gtk-doc/stylesheets/xsl/locale/default.xsl:1.1 php-gtk-doc/stylesheets/xsl/locale/default.xsl:1.2
--- php-gtk-doc/stylesheets/xsl/locale/default.xsl:1.1	Sat Aug 11 12:12:23 2001
+++ php-gtk-doc/stylesheets/xsl/locale/default.xsl	Sun Aug 12 08:08:10 2001
@@ -6,7 +6,7 @@
 
 	See: locale.xsl.in for more information.
 
-	$Id: default.xsl,v 1.1 2001/08/11 16:12:23 jmoore Exp $
+	$Id: default.xsl,v 1.2 2001/08/12 12:08:10 jmoore Exp $
 
 -->
 		
@@ -19,7 +19,7 @@
     <xsl:text>PHP-GTK Authors</xsl:text>		 
    </xsl:when>
    <xsl:when test="$text='contributors'">
-	   <xsl:text>PHP-GTK Contributors</xsl:text>		 
+    <xsl:text>PHP-GTK Contributors</xsl:text>		 
    </xsl:when>
    <xsl:when test="$text='manual.contributors'">
     <xsl:text>PHP-GTK Manual Contributors</xsl:text>		 
@@ -27,7 +27,19 @@
    <xsl:when test="$text='edited.by'"> 
     <xsl:text>Edited By</xsl:text>		 
    </xsl:when>
-  
+   <xsl:when test="$text='quickref.title'">
+    <xsl:text>PHP-GTK Quick Reference</xsl:text>
+   </xsl:when>
+   <xsl:when test="$text='gtkclasses.classset'">
+    <xsl:text>GTK Classes</xsl:text>
+   </xsl:when>
+   <xsl:when test="$text='classes'">
+    <xsl:text>Classes</xsl:text>
+   </xsl:when>
+   <xsl:when test="$text='enum'">
+    <xsl:text>Enumerations</xsl:text>
+   </xsl:when>
+
    <xsl:otherwise>
     <xsl:message>
      <xsl:text>Could Not find Localisation or Default text for </xsl:text>

Index: php-gtk-doc/stylesheets/xsl/quickref.xsl
+++ php-gtk-doc/stylesheets/xsl/quickref.xsl
<?xml version='1.0'?>
<xsl:stylesheet
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	version="1.0">

 <xsl:param name="output.mode" select="'html'"/>
	
 <xsl:include href="common/util.xsl"/> 
 <xsl:include href="locale.xsl"/>


 
 <xsl:template match="/">
  <HTML>
   <HEAD>
    <TITLE>
     <xsl:call-template name="get.locale.text">
      <xsl:with-param name="text">
       <xsl:text>quickref.title</xsl:text>
      </xsl:with-param>
     </xsl:call-template>
    </TITLE>
   </HEAD>
   <BODY>
    <xsl:apply-templates select="//classset"/>
   </BODY>
  </HTML>
 </xsl:template>

 <xsl:template match="classset">
  <P class="classset.title">
   <xsl:call-template name="get.locale.text">
    <xsl:with-param name="text">
     <xsl:value-of select="@id"/>
     <xsl:text>.classset</xsl:text>	   
    </xsl:with-param>
   </xsl:call-template>
  </P>
  <b>
  <xsl:call-template name="get.locale.text">
   <xsl:with-param name="text">
    <xsl:text>classes</xsl:text>	   
   </xsl:with-param>
  </xsl:call-template>
  </b>
  <xsl:call-template name="new.line"/>
  <xsl:apply-templates select="./classentry"/>
  <xsl:call-template name="new.line"/>
  <b>
  <xsl:call-template name="get.locale.text">
   <xsl:with-param name="text">
    <xsl:text>enum</xsl:text>
   </xsl:with-param>
  </xsl:call-template>
  </b>
  <xsl:call-template name="new.line"/>
  <xsl:apply-templates select="./enum"/>
 </xsl:template>

 <xsl:template match="classentry">
  <xsl:call-template name="get.class.title">
   <xsl:with-param name="classentry" select="."/>
  </xsl:call-template>
  <br />
 </xsl:template>

 <xsl:template match="enum">
  <xsl:call-template name="get.enum.title">
   <xsl:with-param name="enum" select="."/>
  </xsl:call-template>
  <br />
 </xsl:template>

</xsl:stylesheet>