Re: question : answer.

From: Date: Thu, 22 Feb 2001 15:56:02 +0000
Subject: Re: question : answer.
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969334395@lists.php.net to get a copy of this message
Dmitry Tkatchenko wrote: > > I tried, but once i try to convert to html, it says the following: > /usr/bin/jade:./en/functions/mnogosearch.xml:321:32:E: document type does > not allow element "programlisting" here > /usr/bin/jade:./en/functions/mnogosearch.xml:329:15:E: end tag for "example" > which is not finished > What's wrong? Document type does not allow element "programlisting" here. Here is a working example: <para> <example> <title>Automatic index with <function>Array</function></title> <programlisting role="php"> $array = array( 1, 1, 1, 1, 1, 8=>1, 4=>1, 19, 3=>13); print_r($array); </programlisting> </example> <!-- </para> <para> --> which will display : <!-- </para> --> <informalexample> <programlisting> Array ( [0] => 1 [1] => 1 [2] => 1 [3] => 13 [4] => 1 [8] => 1 [9] => 19 ) </programlisting> </informalexample> <!-- </para> <para> --> Note that index '3' is defined twice, and keep its final value of 13. Index 4 is defined after index 8, and next generated index (value 19) is 9, since biggest index was 8. </para> Since you would document C and not PHP code, you should write <programlisting role="C">. Please close the paras as shown in the comments. -Egon -- SIX Offene Systeme GmbH · Stuttgart - Berlin Sielminger Straße 63 · D-70771 Leinfelden-Echterdingen Fon +49 711 9909164 · Fax +49 711 9909199 http://www.six.de Besuchen Sie uns auf der CeBIT 2001, Halle 6, Stand F62/4

« previous php.doc (#969334395) next »