bjori Thu Feb 1 09:38:03 2007 UTC
Modified files:
/phpdoc/phpbook/phpbook-xsl html-common.xsl
Log:
Fix bug#40303
role != php should be escaped!
http://cvs.php.net/viewvc.cgi/phpdoc/phpbook/phpbook-xsl/html-common.xsl?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc/phpbook/phpbook-xsl/html-common.xsl
diff -u phpdoc/phpbook/phpbook-xsl/html-common.xsl:1.4
phpdoc/phpbook/phpbook-xsl/html-common.xsl:1.5
--- phpdoc/phpbook/phpbook-xsl/html-common.xsl:1.4 Wed Jan 31 11:53:14 2007
+++ phpdoc/phpbook/phpbook-xsl/html-common.xsl Thu Feb 1 09:38:02 2007
@@ -3,7 +3,7 @@
html-common.xsl: Common HTML customizations
- $Id: html-common.xsl,v 1.4 2007/01/31 11:53:14 bjori Exp $
+ $Id: html-common.xsl,v 1.5 2007/02/01 09:38:02 bjori Exp $
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -626,7 +626,14 @@
<td>
<xsl:element name="pre">
<xsl:attribute name="class"><xsl:value-of select="./@role"
/></xsl:attribute>
- <xsl:value-of select="." disable-output-escaping="yes" />
+ <xsl:choose>
+ <xsl:when test="./@role = 'php'">
+ <xsl:value-of select="." disable-output-escaping="yes" />
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="." disable-output-escaping="no" />
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:element>
</td>
</tr>