cvs: php-gtk-doc /dbxml phpgtkdoc.dtd /stylesheets/common en.xml labels.xsl titles.xsl /stylesheets/html class.xsl
| From: | Steph Fox | Date: | Tue, 28 Mar 2006 20:46:36 +0000 |
| Subject: | cvs: php-gtk-doc /dbxml phpgtkdoc.dtd /stylesheets/common en.xml labels.xsl titles.xsl /stylesheets/html class.xsl | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-2032@lists.php.net to get a copy of this message | ||
sfox Tue Mar 28 20:46:36 2006 UTC
Modified files:
/php-gtk-doc/dbxml phpgtkdoc.dtd
/php-gtk-doc/stylesheets/common en.xml labels.xsl titles.xsl
/php-gtk-doc/stylesheets/html class.xsl
Log:
- Lots of rearranging that went on while I was trying to find out why the <prop> template
didn't work
http://cvs.php.net/viewcvs.cgi/php-gtk-doc/dbxml/phpgtkdoc.dtd?r1=1.18&r2=1.19&diff_format=u Index: php-gtk-doc/dbxml/phpgtkdoc.dtd diff -u php-gtk-doc/dbxml/phpgtkdoc.dtd:1.18 php-gtk-doc/dbxml/phpgtkdoc.dtd:1.19 --- php-gtk-doc/dbxml/phpgtkdoc.dtd:1.18 Sun Mar 26 02:48:10 2006 +++ php-gtk-doc/dbxml/phpgtkdoc.dtd Tue Mar 28 20:46:36 2006 @@ -2,7 +2,7 @@ Docbook Customization layer of PHP-GTK docs Authors: James Moore <jmoore@php.net> - $Id: phpgtkdoc.dtd,v 1.18 2006/03/26 02:48:10 sfox Exp $ + $Id: phpgtkdoc.dtd,v 1.19 2006/03/28 20:46:36 sfox Exp $ --> @@ -65,7 +65,7 @@ desc is a CNAME for para --> -<!ELEMENT desc (%para.char.mix; | %para.mix; | para | simpara)*> +<!ELEMENT desc (%para.char.mix; | %para.mix; | para | simpara)*> <!ATTLIST desc %common.attrib; %para.role.attrib; @@ -82,7 +82,7 @@ --> <!ELEMENT classentry - ((classmeta),(constructors?,methods?,properties?,fields?,signals?))> + ((classmeta),(constructors?,methods?,fields?,properties?,signals?))> <!ATTLIST classentry %common.attrib; %refentry.role.attrib; @@ -187,6 +187,89 @@ <!-- + - fields: wrapper for individual arguments. + +--> +<!ELEMENT fields (field)+ > +<!ATTLIST fields + %common.attrib; +> + +<!-- + + - field: provides information about an objects properties + +--> +<!ELEMENT field ((argname, argtype),(shortdesc,desc))> +<!ATTLIST field + %common.attrib; + type (ro|rw) #REQUIRED +> + +<!-- + + - fieldname: the name of the property + +--> +<!ELEMENT fieldname (%docinfo.char.mix;)* > +<!ATTLIST fieldname + %common.attrib; +> + +<!-- + + - fieldtype: the type of property (int, char, object etc) + +--> +<!ELEMENT fieldtype (%docinfo.char.mix;)* > +<!ATTLIST fieldtype + %common.attrib; +> + + +<!-- + + - properties: wrapper for individual arguments. + +--> +<!ELEMENT properties (prop)+ > +<!ATTLIST properties + %common.attrib; +> + +<!-- + + - prop: provides information about an objects properties + +--> +<!ELEMENT prop ((argname, argtype),(shortdesc,desc))> +<!ATTLIST prop + %common.attrib; + type (ro|rw) #REQUIRED +> + +<!-- + + - propname: the name of the property + +--> +<!ELEMENT propname (%docinfo.char.mix;)* > +<!ATTLIST propname + %common.attrib; +> + +<!-- + + - proptype: the type of property (int, char, object etc) + +--> +<!ELEMENT proptype (%docinfo.char.mix;)* > +<!ATTLIST proptype + %common.attrib; +> + +<!-- + Signals - Wrapper for signal entries.. see methods @@ -331,86 +414,3 @@ <!ATTLIST argtype %common.attrib; > - -<!-- - - - properties: wrapper for individual arguments. - ---> -<!ELEMENT properties (prop)+ > -<!ATTLIST properties - %common.attrib; -> - -<!-- - - - prop: provides information about an objects properties - ---> -<!ELEMENT prop ((argname, argtype),(shortdesc,desc))> -<!ATTLIST prop - %common.attrib; - type (ro|rw) #REQUIRED -> - -<!-- - - - propname: the name of the property - ---> -<!ELEMENT propname (%docinfo.char.mix;)* > -<!ATTLIST propname - %common.attrib; -> - -<!-- - - - proptype: the type of property (int, char, object etc) - ---> -<!ELEMENT proptype (%docinfo.char.mix;)* > -<!ATTLIST proptype - %common.attrib; -> - - -<!-- - - - fields: wrapper for individual arguments. - ---> -<!ELEMENT fields (field)+ > -<!ATTLIST fields - %common.attrib; -> - -<!-- - - - field: provides information about an objects properties - ---> -<!ELEMENT field ((argname, argtype),(shortdesc,desc))> -<!ATTLIST field - %common.attrib; - type (ro|rw) #REQUIRED -> - -<!-- - - - fieldname: the name of the property - ---> -<!ELEMENT fieldname (%docinfo.char.mix;)* > -<!ATTLIST fieldname - %common.attrib; -> - -<!-- - - - fieldtype: the type of property (int, char, object etc) - ---> -<!ELEMENT fieldtype (%docinfo.char.mix;)* > -<!ATTLIST fieldtype - %common.attrib; -> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/stylesheets/common/en.xml?r1=1.18&r2=1.19&diff_format=u Index: php-gtk-doc/stylesheets/common/en.xml diff -u php-gtk-doc/stylesheets/common/en.xml:1.18 php-gtk-doc/stylesheets/common/en.xml:1.19 --- php-gtk-doc/stylesheets/common/en.xml:1.18 Sun Mar 26 02:46:07 2006 +++ php-gtk-doc/stylesheets/common/en.xml Tue Mar 28 20:46:36 2006 @@ -30,7 +30,7 @@ <gentext key="PHPGTKmanauthsp" text="Past PHP-GTK Manual Authors"/> <gentext key="PHPGTKeditorsp" text="Past PHP-GTK Manual Editors"/> <gentext key="properties" text="Properties"/> - <gentext key="propertiesDisclaimer" text="Use get_property and set_property methods to access them."/> + <gentext key="propertiesDisclaimer" text="Use get_property and set_property methods to access these."/> <gentext key="seealso" text="See also"/> <gentext key="signals" text="Signals"/> <gentext key="symbolicname" text="Symbolic name"/> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/stylesheets/common/labels.xsl?r1=1.5&r2=1.6&diff_format=u Index: php-gtk-doc/stylesheets/common/labels.xsl diff -u php-gtk-doc/stylesheets/common/labels.xsl:1.5 php-gtk-doc/stylesheets/common/labels.xsl:1.6 --- php-gtk-doc/stylesheets/common/labels.xsl:1.5 Mon Apr 11 21:54:43 2005 +++ php-gtk-doc/stylesheets/common/labels.xsl Tue Mar 28 20:46:36 2006 @@ -289,7 +289,7 @@ </xsl:if> </xsl:template> -<xsl:template match="methods|signals|properties|method|signal|prop|constructor|legalnotice|enum" mode="label.markup"> +<xsl:template match="constructor|methods|method|properties|prop|fields|field|signals|signal|legalnotice|enum" mode="label.markup"> <xsl:param name="punct">.</xsl:param> <xsl:if test="@label"> <xsl:value-of select="@label"/> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/stylesheets/common/titles.xsl?r1=1.9&r2=1.10&diff_format=u Index: php-gtk-doc/stylesheets/common/titles.xsl diff -u php-gtk-doc/stylesheets/common/titles.xsl:1.9 php-gtk-doc/stylesheets/common/titles.xsl:1.10 --- php-gtk-doc/stylesheets/common/titles.xsl:1.9 Sun Mar 26 02:46:07 2006 +++ php-gtk-doc/stylesheets/common/titles.xsl Tue Mar 28 20:46:36 2006 @@ -266,21 +266,6 @@ </span> </xsl:template> -<xsl:template match="signals" mode="title.markup"> - <xsl:param name="text-only" select="'0'"/> - <xsl:param name="allow-anchors" select="'0'"/> - <xsl:variable name="classentry" select="ancestor::classentry"/> - <xsl:value-of select="$classentry/classmeta/classtitle"/> -</xsl:template> - -<xsl:template match="signal" mode="title.markup"> - <xsl:param name="text-only" select="'0'"/> - <xsl:param name="allow-anchors" select="'0'"/> - <span dir="ltr"> - <xsl:value-of select="(./signalname)[1]" /> - </span> -</xsl:template> - <xsl:template match="properties|fields" mode="title.markup"> <xsl:param name="text-only" select="'0'"/> <xsl:param name="allow-anchors" select="'0'"/> @@ -288,7 +273,7 @@ <xsl:value-of select="$classentry/classmeta/classtitle"/> </xsl:template> -<xsl:template match="field" mode="title.markup"> +<xsl:template match="prop|field" mode="title.markup"> <xsl:param name="text-only" select="'0'"/> <xsl:param name="allow-anchors" select="'0'"/> <xsl:variable name="classentry" select="ancestor::classentry"/> @@ -297,20 +282,22 @@ <xsl:if test="count($classentry)>0"> <xsl:text>::</xsl:text> </xsl:if> - <xsl:value-of select="(./fieldname)" /> + <xsl:value-of select="(./fieldname|./propname)" /> </span> </xsl:template> -<xsl:template match="prop" mode="title.markup"> +<xsl:template match="signals" mode="title.markup"> <xsl:param name="text-only" select="'0'"/> <xsl:param name="allow-anchors" select="'0'"/> <xsl:variable name="classentry" select="ancestor::classentry"/> - <span dir="ltr"> <xsl:value-of select="$classentry/classmeta/classtitle"/> - <xsl:if test="count($classentry)>0"> - <xsl:text>::</xsl:text> - </xsl:if> - <xsl:value-of select="(./propname)" /> +</xsl:template> + +<xsl:template match="signal" mode="title.markup"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <span dir="ltr"> + <xsl:value-of select="(./signalname)[1]" /> </span> </xsl:template> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/stylesheets/html/class.xsl?r1=1.30&r2=1.31&diff_format=u Index: php-gtk-doc/stylesheets/html/class.xsl diff -u php-gtk-doc/stylesheets/html/class.xsl:1.30 php-gtk-doc/stylesheets/html/class.xsl:1.31 --- php-gtk-doc/stylesheets/html/class.xsl:1.30 Sun Mar 26 18:47:21 2006 +++ php-gtk-doc/stylesheets/html/class.xsl Tue Mar 28 20:46:36 2006 @@ -87,22 +87,26 @@ <xsl:apply-templates /> </xsl:template> - <xsl:template match="fieldtype"> + <xsl:template match="fieldtype|proptype"> <xsl:apply-templates /> </xsl:template> - <xsl:template match="proptype"> - <xsl:apply-templates /> + <xsl:template match="classimage"> + <div style="float:right; border:1px solid #000;"> + <xsl:if test="@frame='no'"> + <xsl:attribute name="style">float:right;</xsl:attribute> + </xsl:if> + <xsl:call-template name="process.image"/> + </div> + </xsl:template> + + <xsl:template match="funcsynopsis|funcprototype" mode="synoptic.mode"> + <xsl:apply-templates mode="synoptic.mode"/> + </xsl:template> + + <xsl:template match="funcsynopsis"> + <xsl:apply-templates select="funcprototype"/> </xsl:template> - - <xsl:template match="classimage"> - <div style="float:right; border:1px solid #000;"> - <xsl:if test="@frame='no'"> - <xsl:attribute name="style">float:right;</xsl:attribute> - </xsl:if> - <xsl:call-template name="process.image"/> - </div> - </xsl:template> <!--========================================================================--> @@ -141,26 +145,7 @@ </xsl:choose> </xsl:template> - <xsl:template match="propname"> - <xsl:variable name="class" select="@class"/> - - <xsl:choose> - <xsl:when test="not($class) or $class=''"> - <!-- empty class... try to find it --> - <xsl:apply-templates select="." mode="synoptic.mode"/> - </xsl:when> - - <xsl:otherwise> - <!-- class given, all ok --> - <xsl:call-template name="prop.link"> - <xsl:with-param name="prop" select="."/> - <xsl:with-param name="class" select="$class"/> - </xsl:call-template> - </xsl:otherwise> - </xsl:choose> - </xsl:template> - - <xsl:template match="fieldname"> + <xsl:template match="fieldname|propname"> <xsl:variable name="class" select="@class"/> <xsl:choose> @@ -179,19 +164,7 @@ </xsl:choose> </xsl:template> - - <xsl:template match="propname" mode="synoptic.mode"> - <xsl:variable name="classentry" select="ancestor::classentry[1]"/> - <xsl:variable name="classtitle" select="$classentry/classmeta/classtitle"/> - - <xsl:call-template name="prop.link"> - <xsl:with-param name="prop" select="."/> - <xsl:with-param name="class" select="$classtitle"/> - </xsl:call-template> - </xsl:template> - - - <xsl:template match="fieldname" mode="synoptic.mode"> + <xsl:template match="fieldname|propname" mode="synoptic.mode"> <xsl:variable name="classentry" select="ancestor::classentry[1]"/> <xsl:variable name="classtitle" select="$classentry/classmeta/classtitle"/> @@ -201,7 +174,6 @@ </xsl:call-template> </xsl:template> - <xsl:template name="prop.link"> <xsl:param name="prop" select="."/> <xsl:param name="class" select="@class"/> @@ -486,12 +458,12 @@ <p> <xsl:apply-templates select="./constructors" mode="synoptic.mode"/> <xsl:apply-templates select="./methods" mode="synoptic.mode"/> - <xsl:apply-templates select="./signals" mode="synoptic.mode"/> <xsl:apply-templates select="./fields" mode="synoptic.mode"/> <xsl:apply-templates select="./properties" mode="synoptic.mode"/> + <xsl:apply-templates select="./signals" mode="synoptic.mode"/> </p> </div> - <xsl:apply-templates select="./constructors|./methods|./signals|./fields|./properties"/> + <xsl:apply-templates select="./constructors|./methods|./fields|./properties|./signals"/> </xsl:template> <xsl:template match="classentry[@rtl='1']"> @@ -565,12 +537,12 @@ <p> <xsl:apply-templates select="./constructors" mode="synoptic.mode"/> <xsl:apply-templates select="./methods" mode="synoptic.mode"/> - <xsl:apply-templates select="./signals" mode="synoptic.mode"/> <xsl:apply-templates select="./fields" mode="synoptic.mode"/> <xsl:apply-templates select="./properties" mode="synoptic.mode"/> + <xsl:apply-templates select="./signals" mode="synoptic.mode"/> </p> </div> - <xsl:apply-templates select="./constructors|./methods|./signals|./fields|./properties"/> + <xsl:apply-templates select="./constructors|./methods|./fields|./properties|./signals"/> </xsl:template> <xsl:template match="refentry"> @@ -617,7 +589,6 @@ <xsl:if test="position() > 1"> <br/><br/> </xsl:if> - <xsl:apply-templates select="./funcsynopsis"/> <xsl:text disable-output-escaping="yes"> --</xsl:text> <xsl:apply-templates select="./shortdesc" /> @@ -646,27 +617,6 @@ </dd> </xsl:template> - <xsl:template match="signals" mode="synoptic.mode"> - <h3> - <xsl:call-template name="gentext"> - <xsl:with-param name="key">signals</xsl:with-param> - </xsl:call-template> - </h3> - <blockquote> - <xsl:apply-templates select="./signal" mode="synoptic.mode"/> - </blockquote> - </xsl:template> - - <xsl:template match="signal" mode="synoptic.mode"> - <dt> - <xsl:apply-templates select="./signalname"/> - </dt> - <dd> - <xsl:call-template name="spaceholder"/> - <xsl:apply-templates select="./shortdesc"/> - </dd> - </xsl:template> - <xsl:template match="properties" mode="synoptic.mode"> <h3> <xsl:call-template name="gentext"> @@ -694,9 +644,9 @@ </blockquote> </xsl:template> - <xsl:template match="field" mode="synoptic.mode"> + <xsl:template match="field|prop" mode="synoptic.mode"> <dt> - <xsl:apply-templates select="./fieldname" mode="synoptic.mode"/> + <xsl:apply-templates select="./fieldname|./propname" mode="synoptic.mode"/> <xsl:text>:</xsl:text> </dt> <dd> @@ -705,26 +655,28 @@ </dd> </xsl:template> - <xsl:template match="prop" mode="synoptic.mode"> + <xsl:template match="signals" mode="synoptic.mode"> + <h3> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">signals</xsl:with-param> + </xsl:call-template> + </h3> + <blockquote> + <xsl:apply-templates select="./signal" mode="synoptic.mode"/> + </blockquote> + </xsl:template> + + <xsl:template match="signal" mode="synoptic.mode"> <dt> - <xsl:apply-templates select="./propname" mode="synoptic.mode"/> - <xsl:text>:</xsl:text> + <xsl:apply-templates select="./signalname"/> </dt> <dd> - <xsl:call-template name="spaceholder"/> + <xsl:call-template name="spaceholder"/> <xsl:apply-templates select="./shortdesc"/> </dd> </xsl:template> - <xsl:template match="funcsynopsis" mode="synoptic.mode"> - <xsl:apply-templates mode="synoptic.mode"/> - </xsl:template> - - <xsl:template match="funcprototype" mode="synoptic.mode"> - <xsl:apply-templates mode="synoptic.mode"/> - </xsl:template> - - <xsl:template match="constructors|methods|signals|fields|properties"> + <xsl:template match="constructors|methods|fields|properties|signals"> <xsl:choose> <xsl:when test="ancestor::classentry[@rtl='1']"> <div dir="rtl"> @@ -737,7 +689,7 @@ </xsl:choose> </xsl:template> - <xsl:template match="method|constructor"> + <xsl:template match="constructor|method"> <xsl:choose> <xsl:when test="ancestor::classentry[1][@rtl='1']"> <div dir="rtl"> @@ -764,33 +716,7 @@ </xsl:choose> </xsl:template> - <xsl:template match="signal"> - <a> - <xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute> - </a> - <h2> - <xsl:apply-templates select="." mode="title.markup"/> - </h2> - <p> - <xsl:apply-templates select="./desc"/> - </p> - <p> - <b> - <xsl:call-template name="gentext"> - <xsl:with-param name="key">callback</xsl:with-param> - </xsl:call-template> - </b> - </p> - <p> - <xsl:apply-templates select="./funcsynopsis" /> - </p> - </xsl:template> - - <xsl:template match="funcsynopsis"> - <xsl:apply-templates select="funcprototype"/> - </xsl:template> - - <xsl:template match="field"> + <xsl:template match="field|prop"> <div> <a> <xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute> @@ -814,7 +740,7 @@ </xsl:choose> <br/> <xsl:text>Type: </xsl:text> - <xsl:apply-templates select="./fieldtype"/> + <xsl:apply-templates select="./fieldtype|./proptype"/> </span> </p> <p> @@ -823,8 +749,7 @@ </div> </xsl:template> - <xsl:template match="prop"> - <div> + <xsl:template match="signal"> <a> <xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute> </a> @@ -832,28 +757,18 @@ <xsl:apply-templates select="." mode="title.markup"/> </h2> <p> - <span dir="ltr"> - <xsl:text>Access: </xsl:text> - <xsl:choose> - <xsl:when test="@type='rw'"> - <xsl:text>Read Write</xsl:text> - </xsl:when> - <xsl:when test="@type='ro'"> - <xsl:text>Read Only</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:text>UNKNOWN</xsl:text> - </xsl:otherwise> - </xsl:choose> - <br/> - <xsl:text>Type: </xsl:text> - <xsl:apply-templates select="./proptype"/> - </span> + <xsl:apply-templates select="./desc"/> </p> <p> - <xsl:apply-templates select="./desc"/> + <b> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">callback</xsl:with-param> + </xsl:call-template> + </b> + </p> + <p> + <xsl:apply-templates select="./funcsynopsis" /> </p> - </div> </xsl:template> </xsl:stylesheet>
http://cvs.php.net/viewcvs.cgi/php-gtk-doc/dbxml/phpgtkdoc.dtd?r1=1.18&r2=1.19&diff_format=u Index: php-gtk-doc/dbxml/phpgtkdoc.dtd diff -u php-gtk-doc/dbxml/phpgtkdoc.dtd:1.18 php-gtk-doc/dbxml/phpgtkdoc.dtd:1.19 --- php-gtk-doc/dbxml/phpgtkdoc.dtd:1.18 Sun Mar 26 02:48:10 2006 +++ php-gtk-doc/dbxml/phpgtkdoc.dtd Tue Mar 28 20:46:36 2006 @@ -2,7 +2,7 @@ Docbook Customization layer of PHP-GTK docs Authors: James Moore <jmoore@php.net> - $Id: phpgtkdoc.dtd,v 1.18 2006/03/26 02:48:10 sfox Exp $ + $Id: phpgtkdoc.dtd,v 1.19 2006/03/28 20:46:36 sfox Exp $ --> @@ -65,7 +65,7 @@ desc is a CNAME for para --> -<!ELEMENT desc (%para.char.mix; | %para.mix; | para | simpara)*> +<!ELEMENT desc (%para.char.mix; | %para.mix; | para | simpara)*> <!ATTLIST desc %common.attrib; %para.role.attrib; @@ -82,7 +82,7 @@ --> <!ELEMENT classentry - ((classmeta),(constructors?,methods?,properties?,fields?,signals?))> + ((classmeta),(constructors?,methods?,fields?,properties?,signals?))> <!ATTLIST classentry %common.attrib; %refentry.role.attrib; @@ -187,6 +187,89 @@ <!-- + - fields: wrapper for individual arguments. + +--> +<!ELEMENT fields (field)+ > +<!ATTLIST fields + %common.attrib; +> + +<!-- + + - field: provides information about an objects properties + +--> +<!ELEMENT field ((argname, argtype),(shortdesc,desc))> +<!ATTLIST field + %common.attrib; + type (ro|rw) #REQUIRED +> + +<!-- + + - fieldname: the name of the property + +--> +<!ELEMENT fieldname (%docinfo.char.mix;)* > +<!ATTLIST fieldname + %common.attrib; +> + +<!-- + + - fieldtype: the type of property (int, char, object etc) + +--> +<!ELEMENT fieldtype (%docinfo.char.mix;)* > +<!ATTLIST fieldtype + %common.attrib; +> + + +<!-- + + - properties: wrapper for individual arguments. + +--> +<!ELEMENT properties (prop)+ > +<!ATTLIST properties + %common.attrib; +> + +<!-- + + - prop: provides information about an objects properties + +--> +<!ELEMENT prop ((argname, argtype),(shortdesc,desc))> +<!ATTLIST prop + %common.attrib; + type (ro|rw) #REQUIRED +> + +<!-- + + - propname: the name of the property + +--> +<!ELEMENT propname (%docinfo.char.mix;)* > +<!ATTLIST propname + %common.attrib; +> + +<!-- + + - proptype: the type of property (int, char, object etc) + +--> +<!ELEMENT proptype (%docinfo.char.mix;)* > +<!ATTLIST proptype + %common.attrib; +> + +<!-- + Signals - Wrapper for signal entries.. see methods @@ -331,86 +414,3 @@ <!ATTLIST argtype %common.attrib; > - -<!-- - - - properties: wrapper for individual arguments. - ---> -<!ELEMENT properties (prop)+ > -<!ATTLIST properties - %common.attrib; -> - -<!-- - - - prop: provides information about an objects properties - ---> -<!ELEMENT prop ((argname, argtype),(shortdesc,desc))> -<!ATTLIST prop - %common.attrib; - type (ro|rw) #REQUIRED -> - -<!-- - - - propname: the name of the property - ---> -<!ELEMENT propname (%docinfo.char.mix;)* > -<!ATTLIST propname - %common.attrib; -> - -<!-- - - - proptype: the type of property (int, char, object etc) - ---> -<!ELEMENT proptype (%docinfo.char.mix;)* > -<!ATTLIST proptype - %common.attrib; -> - - -<!-- - - - fields: wrapper for individual arguments. - ---> -<!ELEMENT fields (field)+ > -<!ATTLIST fields - %common.attrib; -> - -<!-- - - - field: provides information about an objects properties - ---> -<!ELEMENT field ((argname, argtype),(shortdesc,desc))> -<!ATTLIST field - %common.attrib; - type (ro|rw) #REQUIRED -> - -<!-- - - - fieldname: the name of the property - ---> -<!ELEMENT fieldname (%docinfo.char.mix;)* > -<!ATTLIST fieldname - %common.attrib; -> - -<!-- - - - fieldtype: the type of property (int, char, object etc) - ---> -<!ELEMENT fieldtype (%docinfo.char.mix;)* > -<!ATTLIST fieldtype - %common.attrib; -> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/stylesheets/common/en.xml?r1=1.18&r2=1.19&diff_format=u Index: php-gtk-doc/stylesheets/common/en.xml diff -u php-gtk-doc/stylesheets/common/en.xml:1.18 php-gtk-doc/stylesheets/common/en.xml:1.19 --- php-gtk-doc/stylesheets/common/en.xml:1.18 Sun Mar 26 02:46:07 2006 +++ php-gtk-doc/stylesheets/common/en.xml Tue Mar 28 20:46:36 2006 @@ -30,7 +30,7 @@ <gentext key="PHPGTKmanauthsp" text="Past PHP-GTK Manual Authors"/> <gentext key="PHPGTKeditorsp" text="Past PHP-GTK Manual Editors"/> <gentext key="properties" text="Properties"/> - <gentext key="propertiesDisclaimer" text="Use get_property and set_property methods to access them."/> + <gentext key="propertiesDisclaimer" text="Use get_property and set_property methods to access these."/> <gentext key="seealso" text="See also"/> <gentext key="signals" text="Signals"/> <gentext key="symbolicname" text="Symbolic name"/> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/stylesheets/common/labels.xsl?r1=1.5&r2=1.6&diff_format=u Index: php-gtk-doc/stylesheets/common/labels.xsl diff -u php-gtk-doc/stylesheets/common/labels.xsl:1.5 php-gtk-doc/stylesheets/common/labels.xsl:1.6 --- php-gtk-doc/stylesheets/common/labels.xsl:1.5 Mon Apr 11 21:54:43 2005 +++ php-gtk-doc/stylesheets/common/labels.xsl Tue Mar 28 20:46:36 2006 @@ -289,7 +289,7 @@ </xsl:if> </xsl:template> -<xsl:template match="methods|signals|properties|method|signal|prop|constructor|legalnotice|enum" mode="label.markup"> +<xsl:template match="constructor|methods|method|properties|prop|fields|field|signals|signal|legalnotice|enum" mode="label.markup"> <xsl:param name="punct">.</xsl:param> <xsl:if test="@label"> <xsl:value-of select="@label"/> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/stylesheets/common/titles.xsl?r1=1.9&r2=1.10&diff_format=u Index: php-gtk-doc/stylesheets/common/titles.xsl diff -u php-gtk-doc/stylesheets/common/titles.xsl:1.9 php-gtk-doc/stylesheets/common/titles.xsl:1.10 --- php-gtk-doc/stylesheets/common/titles.xsl:1.9 Sun Mar 26 02:46:07 2006 +++ php-gtk-doc/stylesheets/common/titles.xsl Tue Mar 28 20:46:36 2006 @@ -266,21 +266,6 @@ </span> </xsl:template> -<xsl:template match="signals" mode="title.markup"> - <xsl:param name="text-only" select="'0'"/> - <xsl:param name="allow-anchors" select="'0'"/> - <xsl:variable name="classentry" select="ancestor::classentry"/> - <xsl:value-of select="$classentry/classmeta/classtitle"/> -</xsl:template> - -<xsl:template match="signal" mode="title.markup"> - <xsl:param name="text-only" select="'0'"/> - <xsl:param name="allow-anchors" select="'0'"/> - <span dir="ltr"> - <xsl:value-of select="(./signalname)[1]" /> - </span> -</xsl:template> - <xsl:template match="properties|fields" mode="title.markup"> <xsl:param name="text-only" select="'0'"/> <xsl:param name="allow-anchors" select="'0'"/> @@ -288,7 +273,7 @@ <xsl:value-of select="$classentry/classmeta/classtitle"/> </xsl:template> -<xsl:template match="field" mode="title.markup"> +<xsl:template match="prop|field" mode="title.markup"> <xsl:param name="text-only" select="'0'"/> <xsl:param name="allow-anchors" select="'0'"/> <xsl:variable name="classentry" select="ancestor::classentry"/> @@ -297,20 +282,22 @@ <xsl:if test="count($classentry)>0"> <xsl:text>::</xsl:text> </xsl:if> - <xsl:value-of select="(./fieldname)" /> + <xsl:value-of select="(./fieldname|./propname)" /> </span> </xsl:template> -<xsl:template match="prop" mode="title.markup"> +<xsl:template match="signals" mode="title.markup"> <xsl:param name="text-only" select="'0'"/> <xsl:param name="allow-anchors" select="'0'"/> <xsl:variable name="classentry" select="ancestor::classentry"/> - <span dir="ltr"> <xsl:value-of select="$classentry/classmeta/classtitle"/> - <xsl:if test="count($classentry)>0"> - <xsl:text>::</xsl:text> - </xsl:if> - <xsl:value-of select="(./propname)" /> +</xsl:template> + +<xsl:template match="signal" mode="title.markup"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <span dir="ltr"> + <xsl:value-of select="(./signalname)[1]" /> </span> </xsl:template> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/stylesheets/html/class.xsl?r1=1.30&r2=1.31&diff_format=u Index: php-gtk-doc/stylesheets/html/class.xsl diff -u php-gtk-doc/stylesheets/html/class.xsl:1.30 php-gtk-doc/stylesheets/html/class.xsl:1.31 --- php-gtk-doc/stylesheets/html/class.xsl:1.30 Sun Mar 26 18:47:21 2006 +++ php-gtk-doc/stylesheets/html/class.xsl Tue Mar 28 20:46:36 2006 @@ -87,22 +87,26 @@ <xsl:apply-templates /> </xsl:template> - <xsl:template match="fieldtype"> + <xsl:template match="fieldtype|proptype"> <xsl:apply-templates /> </xsl:template> - <xsl:template match="proptype"> - <xsl:apply-templates /> + <xsl:template match="classimage"> + <div style="float:right; border:1px solid #000;"> + <xsl:if test="@frame='no'"> + <xsl:attribute name="style">float:right;</xsl:attribute> + </xsl:if> + <xsl:call-template name="process.image"/> + </div> + </xsl:template> + + <xsl:template match="funcsynopsis|funcprototype" mode="synoptic.mode"> + <xsl:apply-templates mode="synoptic.mode"/> + </xsl:template> + + <xsl:template match="funcsynopsis"> + <xsl:apply-templates select="funcprototype"/> </xsl:template> - - <xsl:template match="classimage"> - <div style="float:right; border:1px solid #000;"> - <xsl:if test="@frame='no'"> - <xsl:attribute name="style">float:right;</xsl:attribute> - </xsl:if> - <xsl:call-template name="process.image"/> - </div> - </xsl:template> <!--========================================================================--> @@ -141,26 +145,7 @@ </xsl:choose> </xsl:template> - <xsl:template match="propname"> - <xsl:variable name="class" select="@class"/> - - <xsl:choose> - <xsl:when test="not($class) or $class=''"> - <!-- empty class... try to find it --> - <xsl:apply-templates select="." mode="synoptic.mode"/> - </xsl:when> - - <xsl:otherwise> - <!-- class given, all ok --> - <xsl:call-template name="prop.link"> - <xsl:with-param name="prop" select="."/> - <xsl:with-param name="class" select="$class"/> - </xsl:call-template> - </xsl:otherwise> - </xsl:choose> - </xsl:template> - - <xsl:template match="fieldname"> + <xsl:template match="fieldname|propname"> <xsl:variable name="class" select="@class"/> <xsl:choose> @@ -179,19 +164,7 @@ </xsl:choose> </xsl:template> - - <xsl:template match="propname" mode="synoptic.mode"> - <xsl:variable name="classentry" select="ancestor::classentry[1]"/> - <xsl:variable name="classtitle" select="$classentry/classmeta/classtitle"/> - - <xsl:call-template name="prop.link"> - <xsl:with-param name="prop" select="."/> - <xsl:with-param name="class" select="$classtitle"/> - </xsl:call-template> - </xsl:template> - - - <xsl:template match="fieldname" mode="synoptic.mode"> + <xsl:template match="fieldname|propname" mode="synoptic.mode"> <xsl:variable name="classentry" select="ancestor::classentry[1]"/> <xsl:variable name="classtitle" select="$classentry/classmeta/classtitle"/> @@ -201,7 +174,6 @@ </xsl:call-template> </xsl:template> - <xsl:template name="prop.link"> <xsl:param name="prop" select="."/> <xsl:param name="class" select="@class"/> @@ -486,12 +458,12 @@ <p> <xsl:apply-templates select="./constructors" mode="synoptic.mode"/> <xsl:apply-templates select="./methods" mode="synoptic.mode"/> - <xsl:apply-templates select="./signals" mode="synoptic.mode"/> <xsl:apply-templates select="./fields" mode="synoptic.mode"/> <xsl:apply-templates select="./properties" mode="synoptic.mode"/> + <xsl:apply-templates select="./signals" mode="synoptic.mode"/> </p> </div> - <xsl:apply-templates select="./constructors|./methods|./signals|./fields|./properties"/> + <xsl:apply-templates select="./constructors|./methods|./fields|./properties|./signals"/> </xsl:template> <xsl:template match="classentry[@rtl='1']"> @@ -565,12 +537,12 @@ <p> <xsl:apply-templates select="./constructors" mode="synoptic.mode"/> <xsl:apply-templates select="./methods" mode="synoptic.mode"/> - <xsl:apply-templates select="./signals" mode="synoptic.mode"/> <xsl:apply-templates select="./fields" mode="synoptic.mode"/> <xsl:apply-templates select="./properties" mode="synoptic.mode"/> + <xsl:apply-templates select="./signals" mode="synoptic.mode"/> </p> </div> - <xsl:apply-templates select="./constructors|./methods|./signals|./fields|./properties"/> + <xsl:apply-templates select="./constructors|./methods|./fields|./properties|./signals"/> </xsl:template> <xsl:template match="refentry"> @@ -617,7 +589,6 @@ <xsl:if test="position() > 1"> <br/><br/> </xsl:if> - <xsl:apply-templates select="./funcsynopsis"/> <xsl:text disable-output-escaping="yes"> --</xsl:text> <xsl:apply-templates select="./shortdesc" /> @@ -646,27 +617,6 @@ </dd> </xsl:template> - <xsl:template match="signals" mode="synoptic.mode"> - <h3> - <xsl:call-template name="gentext"> - <xsl:with-param name="key">signals</xsl:with-param> - </xsl:call-template> - </h3> - <blockquote> - <xsl:apply-templates select="./signal" mode="synoptic.mode"/> - </blockquote> - </xsl:template> - - <xsl:template match="signal" mode="synoptic.mode"> - <dt> - <xsl:apply-templates select="./signalname"/> - </dt> - <dd> - <xsl:call-template name="spaceholder"/> - <xsl:apply-templates select="./shortdesc"/> - </dd> - </xsl:template> - <xsl:template match="properties" mode="synoptic.mode"> <h3> <xsl:call-template name="gentext"> @@ -694,9 +644,9 @@ </blockquote> </xsl:template> - <xsl:template match="field" mode="synoptic.mode"> + <xsl:template match="field|prop" mode="synoptic.mode"> <dt> - <xsl:apply-templates select="./fieldname" mode="synoptic.mode"/> + <xsl:apply-templates select="./fieldname|./propname" mode="synoptic.mode"/> <xsl:text>:</xsl:text> </dt> <dd> @@ -705,26 +655,28 @@ </dd> </xsl:template> - <xsl:template match="prop" mode="synoptic.mode"> + <xsl:template match="signals" mode="synoptic.mode"> + <h3> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">signals</xsl:with-param> + </xsl:call-template> + </h3> + <blockquote> + <xsl:apply-templates select="./signal" mode="synoptic.mode"/> + </blockquote> + </xsl:template> + + <xsl:template match="signal" mode="synoptic.mode"> <dt> - <xsl:apply-templates select="./propname" mode="synoptic.mode"/> - <xsl:text>:</xsl:text> + <xsl:apply-templates select="./signalname"/> </dt> <dd> - <xsl:call-template name="spaceholder"/> + <xsl:call-template name="spaceholder"/> <xsl:apply-templates select="./shortdesc"/> </dd> </xsl:template> - <xsl:template match="funcsynopsis" mode="synoptic.mode"> - <xsl:apply-templates mode="synoptic.mode"/> - </xsl:template> - - <xsl:template match="funcprototype" mode="synoptic.mode"> - <xsl:apply-templates mode="synoptic.mode"/> - </xsl:template> - - <xsl:template match="constructors|methods|signals|fields|properties"> + <xsl:template match="constructors|methods|fields|properties|signals"> <xsl:choose> <xsl:when test="ancestor::classentry[@rtl='1']"> <div dir="rtl"> @@ -737,7 +689,7 @@ </xsl:choose> </xsl:template> - <xsl:template match="method|constructor"> + <xsl:template match="constructor|method"> <xsl:choose> <xsl:when test="ancestor::classentry[1][@rtl='1']"> <div dir="rtl"> @@ -764,33 +716,7 @@ </xsl:choose> </xsl:template> - <xsl:template match="signal"> - <a> - <xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute> - </a> - <h2> - <xsl:apply-templates select="." mode="title.markup"/> - </h2> - <p> - <xsl:apply-templates select="./desc"/> - </p> - <p> - <b> - <xsl:call-template name="gentext"> - <xsl:with-param name="key">callback</xsl:with-param> - </xsl:call-template> - </b> - </p> - <p> - <xsl:apply-templates select="./funcsynopsis" /> - </p> - </xsl:template> - - <xsl:template match="funcsynopsis"> - <xsl:apply-templates select="funcprototype"/> - </xsl:template> - - <xsl:template match="field"> + <xsl:template match="field|prop"> <div> <a> <xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute> @@ -814,7 +740,7 @@ </xsl:choose> <br/> <xsl:text>Type: </xsl:text> - <xsl:apply-templates select="./fieldtype"/> + <xsl:apply-templates select="./fieldtype|./proptype"/> </span> </p> <p> @@ -823,8 +749,7 @@ </div> </xsl:template> - <xsl:template match="prop"> - <div> + <xsl:template match="signal"> <a> <xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute> </a> @@ -832,28 +757,18 @@ <xsl:apply-templates select="." mode="title.markup"/> </h2> <p> - <span dir="ltr"> - <xsl:text>Access: </xsl:text> - <xsl:choose> - <xsl:when test="@type='rw'"> - <xsl:text>Read Write</xsl:text> - </xsl:when> - <xsl:when test="@type='ro'"> - <xsl:text>Read Only</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:text>UNKNOWN</xsl:text> - </xsl:otherwise> - </xsl:choose> - <br/> - <xsl:text>Type: </xsl:text> - <xsl:apply-templates select="./proptype"/> - </span> + <xsl:apply-templates select="./desc"/> </p> <p> - <xsl:apply-templates select="./desc"/> + <b> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">callback</xsl:with-param> + </xsl:call-template> + </b> + </p> + <p> + <xsl:apply-templates select="./funcsynopsis" /> </p> - </div> </xsl:template> </xsl:stylesheet>