Re: [docbook-apps] including a file as CDATA

From
Juan R. Migoya <>
Date
2003-10-21T18:17:09+00:00
ID
Thread
Re: [docbook-apps] including a file as CDATA
What about:

<programlisting>
&pieceofcode1;
</programlisting>

declaring the entity "&pieceofcode1"  as a system file.
(Or <literal> if you do prefer).

I have not tried it, but seems reasonable.

I hope not being missing the point.

Regards,
Juan R. Migoya
SPAIN

Marius Scurtescu wrote:

>You could move the CDATA markers from your main file
>into the included files, but then the included files
>will not be valid respective to the programming language
>used (they would be XML fragments instead of Python
>programs).
>
>Marius
>
>  
>
>>-----Original Message-----
>>From: Jens Skripczynski [mailto:]
>>Sent: Tuesday, October 21, 2003 10:37 AM
>>To: 
>>Subject: [docbook-apps] including a file as CDATA
>>
>>
>>hi,
>>
>>I'm writing a small programming tutorial, that includes many code 
>>examples.
>>They make it harder to read the main document, so I thought about 
>>excluding
>>them, and include them later with an entity, but entities inside a CDATA
>>section are printed as is, but the programs themselves need to be 
>>inside one.
>>
>>Has somebody got an idea / workaround for including files, that are 
>>outputed without any changes (java source files and xml files).
>>
>>Ciao
>>
>>Jens Skripczynski
>>-- 
>>E-Mail: skripi-lists(at)myrealbox(dot)com
>>
>>Always say what I really think. But nowadays this is a serious error
>>since one risks being misunderstood.
>>                                  -- Oscar Wild
>>
>>
>>To unsubscribe from this list, send a post to 
>>, or visit 
>>    
>>
>http://www.oasis-open.org/mlmanage/.
>
>
>To unsubscribe from this list, send a post to , or visit http://www.oasis-open.org/mlmanage/.
>
>
>  
>