cvs: php-gtk-doc /stylesheets/xsl/common hierarchy.xsl
[email protected] ("James Moore") Fri, 10 Aug 2001 09:54:08 -0000
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <cvsjmoore997437248@cvsserver> |
jmoore Fri Aug 10 05:54:08 2001 EDT
Added files:
/php-gtk-doc/stylesheets/xsl/common hierarchy.xsl
Log:
- Starting changes for libxslt and optimisations for stylesheets, clean up and generation of HTML, Bigmanual.html and PDF.
# - Andrei moving this all over to libxslt is going to take a while, (not too
# long though.. if there are people working on the xml then it might be worth
# making a branch for the next few days incase I break somthing in saxon while
# doing this.
Index: php-gtk-doc/stylesheets/xsl/common/hierarchy.xsl
+++ php-gtk-doc/stylesheets/xsl/common/hierarchy.xsl
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY step "      ">
<!ENTITY nbsp " ">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- ================== Common Hierarchy Functions ============================ -->
<!--
* Function: get.class.hierarchy.as.nodes
* Returns: Each of the current classes parent classentry's as nodes
* returns no if the class does not have a parent.
* The function returns the classes going up the tree.
* Notes: This function is implmented using the parent entry in the
* xml definition of the class.
-->
<xsl:template name="get.class.hierarchy.as.nodes">
</xsl:template>
<!--
* Function: get.function.id.from.name
* Params: funcname - The functions name
* [root - The root node to start searching from. Default is top node]
* Returns: the functions id.
-->
<xsl:template name="get.function.id.from.name">
<xsl:param name="funcname" />
<xsl:param name="root" select="no" />
<xsl:choose>
<xsl:when test="$root='no'">
<xsl:variable name="method" select="//*[funcsynopsis/funcprototype/funcdef/function=$funcname]"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="method" select="$root//*[funcsynopsis/funcprototype/funcdef/function=$funcname]"/>
</xsl:otherwise>
<xsl:value-of select="$method/attribute::id" />
</xsl:template>
<!--
* Function: get.class.id.from.name
* Params: classname - The classes' name
* [root - The root node to start searching from. Default is top node]
* Returns: the classes' id.
-->
<xsl:template name="get.class.id.from.name">
<xsl:param name="classname" />
<xsl:param name="root" select="no" />
<xsl:choose>
<xsl:when test="$root='no'">
<xsl:variable name="classentry" select="//classentry[classmeta/classtitle=$classname]" />
</xsl:when>
<xsl:otherwise>
<xsl:variable name="classentry" select="$root//classentry[classmeta/classtitle=$classname]" />
</xsl:otherwise>
<xsl:value-of select="$classentry/attribute::id" />
</xsl:template>
<!--
* Function: get.signal.id.from.name
* Params: signalname - The signals' name
* [root - The root node to start searching from. Default is top node]
* Returns: the signals' id.
-->
<xsl:template name="get.class.id.from.name">
<xsl:param name="signalname" />
<xsl:param name="root" select="no" />
<xsl:choose>
<xsl:when test="$root='no'">
<xsl:variable name="signal" select="//signal[signalname=$signame]"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="signal" select="$root//signal[signalname=$signame]"/>
</xsl:otherwise>
<xsl:value-of select="$signal/attribute::id" />
</xsl:template>
<!-- ========================================================================== -->
</xsl:stylesheet>