On Wednesday, December 17, 2003, 4:55:01 AM, Nuno wrote:

> +      <programlisting role="php">
> +       <![CDATA[
> +       <?php
> +       echo decbin(12);
> +       ?>
> +       ]]>
> +      </programlisting>
> +      <para>
> +       The above example will output:
> +      </para>
> +      <screen>
> +       <![CDATA[
> +       1100
+       ]]>>
> +      </screen>
> +     </example>
> +    </para>

Note that <![CDATA[ should not be aligned as you would think it
should. It needs to hug the LHS, and the ]]> also needs no spaces
before it. Also, the examples/screen outputs shouldn't be aligned to
the XML either (think of them as within <pre> tags, where whitespace
counts), so your example should be:


      <programlisting role="php">
<![CDATA[
<?php
echo decbin(12);
?>
]]>
      </programlisting>


Look at some other examples if you need to. HTH.

Dave

Reply via email to