Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Windows extended CHM does not handle <function> properly.: msg#00000

php.documentation.windows

Subject: Windows extended CHM does not handle <function> properly.

Hi.

This is in the Windows Extended CHM file.

Take phpdoc/en/strings/functions/str-repeat.xml

Look in the seealso section.

There is a difference in the way the see also's are entered ...

<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><link linkend="control-structures.for">for</link></member>
<member><function>str_pad</function></member>
<member><function>substr_count</function></member>
</simplelist>
</para>
</refsect1>

Using make chm_xsl this is translated to the file
phpdoc/htmlhelp/html/function.str-repeat.html

The seealso section now looks like (slightly tidied).

<div class="refsect1" lang="en">
<a name="id5929139"></a>
See Also
<p></p>
<table class="simplelist" border="0" summary="Simple list">
<tr><td><a href="control-structures.for.html"
title="for">for</a></td></tr>
<tr><td><b class="function">str_pad()</b></td></tr>
<tr><td><b class="function">substr_count()</b></td></tr>
</table>
<p></p>
</div>

This means that none of the see also link to other functions.

This is further converted into the CHM files as ...

<div class="refsect1" lang="en">
<a name="id5929139"></a>
See Also
<table class="simplelist" border="0" summary="Simple list">
<tr><td><a href="control-structures.for.html"
title="for">for</a></td></tr>
<tr><td><b class="function">str_pad()</b></td></tr>
<tr><td><b class="function">substr_count()</b></td></tr>
</table>
</div>

(Dropping of empty <p></p> tags).

Still no anchors for the functions.

The xsl code for this (I think) is in
phpdoc/phpbook/phpbook-xsl/common.xsl around line 373-381 ...

<!-- Enclose FUNCTION in links, add parenthesis, make 'em bold. Do not
link if
current page is description of current function or target is not
available -->
<xsl:template match="function">
<xsl:variable name="content">
<b class="{local-name(.)}">
<xsl:apply-templates/>
<xsl:text>()</xsl:text>
</b>
</xsl:variable>

I suspect this is incorrect.


I think I could change it so that the an <a> tag is created, but I don't
know how to obey the rest of the comment "Do not link if current page is
description of current function or target is not available".

The common.xsl was last changed on $Id: common.xsl,v 1.4 2007/06/20
22:25:41 bjori Exp $

The online version of this page was generated on 2007/06/17 and doesn't
show this problem.

I looked at other xsl files that deal with <xsl:template
match="function"> and they are quite different.

The one in html-chunk.xsl looks the most promising ...

<xsl:choose>
<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>
<xsl:otherwise>
<a>
<xsl:attribute name="href">
<xsl:value-of select="concat($targetid,$html.ext)"/>
</xsl:attribute>
<xsl:copy-of select="$content"/>
</a>
</xsl:otherwise>
</xsl:choose>

But I don't know anywhere NEAR enough to even try this out. I don't know
XSL at all (though I think I can guess).

Regards

Richard Quadling.

--
PHP CHM Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation