Re: cvs: peardoc /fr/package/database/db intro-dsn.xml intro-execute.xml intro-fetch.xml
| From: | Daniel Convissor | Date: | Sun, 27 Jun 2004 19:07:42 +0000 |
| Subject: | Re: cvs: peardoc /fr/package/database/db intro-dsn.xml intro-execute.xml intro-fetch.xml | ||
| References: | 1 2 3 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-4515@lists.php.net to get a copy of this message | ||
On Sun, Jun 27, 2004 at 08:56:47PM +0200, Yannick TORRES wrote:
> On Sunday 27 June 2004 19:48, Daniel Convissor wrote:
> > Here, and in several other places, you switched to using CDATA's where the
> > en versions don't.
>
> Yes, and this declaration MUST be added to all examples in the documentation.
1) Where is that stated?
2) You're adding them unilaterally in one translation, where the original
and other translations don't.
If you feel they should be used, that's fine. Start a discussion here on
the pear-doc list and we will talk about it.
Or, if you think there is one particular file in English that needs
updating, why not talk to the author of that file?
> > Such modifications are likely to make long term
> > maintenance more difficult.
>
> No... i don't think that at all.
> When you have an example like this :
If the English version doesn't use them but one translation does, then
you're creating a difference between the two versions that must be
MANUALLY noticed and acommodated for EACH time the file is translated by
EVERY person performing a translation LONG into the future.
> <programlisting>
> <![CDATA[
> <?php
> echo 'bonjour à tous';
> ?>
> ]]>
> </programlisting>
>
> You must encode "à", "<" and ">" if you don't use the
> CDATA's declaration.
> So, you can make easylier mistakes if you forget to encode one of this
> caracter.
Most program listings in the documentation do use CDATA. But where a
simple, non-php example is provided, it can be overkill.
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409