[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Docbook 5 problem



Niels Müller Larsen wrote:
> Hej alle
> Er der nogen brugere af Docbook V5 (XML)
> jeg har behov for at dokumentere fx programcode
> 
> <programlisting language="php"><![CDATA[
> 	if ($a == 42 &amp;&amp; $b == 17) {
> 		....
> 	}
> ]]></programlisting>
> 
> uanset hvad jeg prøver af krumspring bliver xlst-oversættelsen til
> 
> ....  if ($a == 42 &amp;&amp; ... og ikke
> ....  if ($a == 42 && ...  som ønsket
> 
> gør ingen forskel hvis jeg seelv skriver &amp;&amp; oversættelsen bliver
> det samme.
> 
> I fx en <para> <code> if ($a == 42 &amp;&amp; ...</code></para>
> virker det perfekt.
> 
> Hvad gør jeg galt????

CDATA bliver ikke parset, så dér skal du faktisk bare skrive det,
nøjagtigt som du ønsker at se det. Så skriv bare selv '&&'.
Ellers skal du bruge PCDATA (Parsed CDATA).

http://www.w3schools.com/xmL/xml_cdata.asp



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2010-02-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *