cvs: phpdoc /phpbook/phpbook-xsl html-chunk.xsl
| From: | Hannes Magnusson | Date: | Wed, 28 Mar 2007 13:33:46 +0000 |
| Subject: | cvs: phpdoc /phpbook/phpbook-xsl html-chunk.xsl | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969375924@lists.php.net to get a copy of this message | ||
bjori Wed Mar 28 13:33:46 2007 UTC
Modified files:
/phpdoc/phpbook/phpbook-xsl html-chunk.xsl
Log:
Fixed bug#40650 (build system: include/require _once linking)
http://cvs.php.net/viewvc.cgi/phpdoc/phpbook/phpbook-xsl/html-chunk.xsl?r1=1.1&r2=1.2&diff_format=u
Index: phpdoc/phpbook/phpbook-xsl/html-chunk.xsl
diff -u phpdoc/phpbook/phpbook-xsl/html-chunk.xsl:1.1 phpdoc/phpbook/phpbook-xsl/html-chunk.xsl:1.2
--- phpdoc/phpbook/phpbook-xsl/html-chunk.xsl:1.1 Mon Jan 22 14:09:56 2007
+++ phpdoc/phpbook/phpbook-xsl/html-chunk.xsl Wed Mar 28 13:33:46 2007
@@ -3,7 +3,7 @@
html-common.xsl: Common HTML customizations
- $Id: html-chunk.xsl,v 1.1 2007/01/22 14:09:56 bjori Exp $
+ $Id: html-chunk.xsl,v 1.2 2007/03/28 13:33:46 bjori Exp $
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -95,9 +95,14 @@
<xsl:variable name="targetid">
<xsl:choose>
<xsl:when test="$rolename='php'">
- <xsl:if
test="count(//refentry[@id=concat('function.',$idbase)])>0">
- <xsl:copy-of select="concat('function.',$idbase)"/>
- </xsl:if>
+ <xsl:choose>
+ <xsl:when
test="count(//refentry[@id=concat('function.',$idbase)])>0">
+ <xsl:copy-of select="concat('function.',$idbase)"/>
+ </xsl:when>
+ <xsl:when test="//sect1[@id=concat('function.', $idbase)] !=
''">
+ <xsl:copy-of select="concat('function.', $idbase)" />
+ </xsl:when>
+ </xsl:choose>
</xsl:when>
<xsl:when test="$rolename='zend-api'">
<xsl:if
test="count(//refentry[@id=concat('zend-api.',$idbase)])>0">
@@ -115,7 +120,7 @@
</xsl:choose>
</xsl:variable>
<xsl:choose>
- <xsl:when test="ancestor::refentry/@id=$targetid
+ <xsl:when test="(ancestor::refentry/@id=$targetid or ancestor::sect1/@id=$targetid)
or string-length($targetid) = 0">
<b><xsl:copy-of select="$content"/></b>
</xsl:when>
@@ -131,3 +136,7 @@
</xsl:template>
</xsl:stylesheet>
+<!--
+vim: et
+-->
+