[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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Robert Larsen wrote:
> 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
> 

Du har helt ret, MEN når det bliver lagt ind i en <programlisting>
så sker der det at && af xslt bliver oversat til &amp;&amp;

Synes jeg har prøvet alle mulige krumspring, men intet har hjulpet
w3schools har ret, men de skriver om generel XML ikke om Docbook, der jo
har et lagt udenom

- --
Niels Muller Larsen, MSc
Programmer, Teacher

Mob: +45 2040 5740
Web: http://x15.dk
Mail: sslug@sslug
Public key: 0xD4DB4A5E
(http://keyserver.veridis.com:11371/search?q=0xD4DB4A5E)

If you flaunt it, expect to have it trashed.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFLXDEobiU629TbSl4RAmDbAKDUWMZJCzGlWqg2k2Yt/k+qXJ9XCwCeJ8Er
0BO8zIghWpXI2Klh9YX/e5c=
=rJ31
-----END PGP SIGNATURE-----


 
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] *