Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

cvs: phpdoc /xsl htmlhelp.xsl
techtonik		Sun Oct 31 05:07:10 2004 EDT

Modified files:
/phpdoc/xsl	htmlhelp.xsl
Log:
escape double quotes in titles to correctly generate .hhk entry
temporary fix to hide errorneous output while processing titleabbrev in refe
rence

http://cvs.php.net/diff.php/phpdoc/...1.4&r2=1.5&ty=u
Index: phpdoc/xsl/htmlhelp.xsl
diff -u phpdoc/xsl/htmlhelp.xsl:1.4 phpdoc/xsl/htmlhelp.xsl:1.5
--- phpdoc/xsl/htmlhelp.xsl:1.4	Sat Oct 30 09:50:50 2004
+++ phpdoc/xsl/htmlhelp.xsl	Sun Oct 31 05:07:09 2004
@@ -3,7 +3,7 @@

HTML Help specific stylesheet

-  $Id: htmlhelp.xsl,v 1.4 2004/10/30 13:50:50 nlopess Exp $
+  $Id: htmlhelp.xsl,v 1.5 2004/10/31 10:07:09 techtonik Exp $

-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -171,8 +171,8 @@
<OBJECT type="text/site properties">
<param name="Window Styles" value="0x800227">
</OBJECT>
-
-<UL>]]></xsl:text>
+<UL>]]>
+</xsl:text>
<xsl:if test="($htmlhelp.use.hhk != 0) and $htmlhelp.generate.index">
<xsl:choose>
<xsl:when test="$rootid != ''">
@@ -190,6 +190,19 @@
</xsl:call-template>
</xsl:template>

+<!-- escape double quotes in titles to correctly generate .hhk entry
+     for example: <title><literal>emply("0")... -->
+<xsl:template match="title/literal">
+  <xsl:variable name="apos" select=""'"" />
+  <xsl:variable name="quot" select=''"'' />
+  <xsl:value-of select="translate(.,'"',$apos)"/>
+</xsl:template>
+
+<!-- *************** HTML HELP TOC CUSTOMIZINGS (HHC) **************** -->
+
+<!-- compile custom TOC file (.hhc) and insert two additional files into
+     contents structure. These will be created later by splitting result ti
tle
+     page with contents in two -->
<!-- Setup style for TOC window -->
<xsl:template name="hhc-main">
<xsl:text disable-output-escaping="yes"><![CDATA[<HTML>
@@ -417,6 +430,7 @@
</xsl:choose>
</xsl:template>

+
<!-- output formal object titles enclosed in <h3> tags -->
<xsl:template name="formal.object.heading">
<xsl:param name="object" select="."/>
@@ -428,7 +442,7 @@
</h3>
</xsl:template>

-<xsl:template match="titleabbrev" />
-<xsl:template match="collab" />
+<!-- FIX: temporary till also this is in std.-distrib. -->
+<xsl:template match="reference/titleabbrev"></xsl:template>

</xsl:stylesheet>

Report this thread to moderator Post Follow-up to this message
Old Post
Anatoly Techtonik
10-31-04 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:33 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.