Date: 03/12/01
- Next message: Jirka Kosek: "Re: [PHP-DOC] anyone knows what this error is?"
- Previous message: Jaemin Byon: "[PHP-DOC] anyone knows what this error is?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
as PHP documentation is in XML, everywhere (even in programlistings)
characters < and & must be written as < and &. For longer code
examples it may be appropriate to use CDATA sections - in this section
XML reserved characters are not escaped:
<programlisting role="php"><![CDATA[
if ($foo < $bar)
echo "Hi!";
]]></programlisting>
With CDATA you should write it as:
<programlisting role="php">
if ($foo < $bar)
echo "Hi!";
</programlisting>
I'm writing here, because not all php-doc contributors know this XML
feature. Jade is very tolerant to errors like this because it comes from
SGML world. XML tools will crash on errors like these.
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka <email protected>
http://www.kosek.cz
- Next message: Jirka Kosek: "Re: [PHP-DOC] anyone knows what this error is?"
- Previous message: Jaemin Byon: "[PHP-DOC] anyone knows what this error is?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

