[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:
> 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
> 
ok, nu er det ved at være længe siden, jeg sidst skrev DocBook men jeg
plejede at gøre noget i denne stil:

<!ENTITY code-savefile SYSTEM "../code/SaveFileGameEngine.java.processed">


            <programlisting>
                <filename>SaveFileGameEngine.java</filename>
&code-savefile;
            </programlisting>


SaveFileGameEngine.java.processed er processeret af min Makefil med
følgende:

%.java.processed: %.java
		sed \
		-e 's/</\&lt;/g' \
		-e 's/>/\&gt;/g' \
		< $? > _temp_; \
		mv _temp_ $@

...altså alle '<' og '>' bliver oversat til '&lt;' og '&gt' men ellers
er filen uændret.



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