[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Long programlisting
Dave,
To xinclude text files in programlisting:
<programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="MyFile.txt"
parse="text" /></programlisting
And then make sure you have a something like this in your mod files:
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT xi:include (xi:fallback?) > <!ATTLIST xi:include xmlns:xi CDATA #FIXED "http://www.w3.org/2001/XInclude" href CDATA #REQUIRED parse (xml|text) "xml" encoding CDATA #IMPLIED xpointer CDATA #IMPLIED accept CDATA #IMPLIED accept-charset CDATA #IMPLIED accept-language CDATA #IMPLIED > <!ELEMENT xi:fallback ANY> <!ATTLIST xi:fallback xmlns:xi CDATA #FIXED "http://www.w3.org/2001/XInclude" > <!-- inside part elements --> <!ENTITY % local.info.class "| xi:include" > <!ENTITY % local.preface.class "| xi:include" > <!ENTITY % local.part.class "| xi:include" > <!ENTITY % local.chapter.class "| xi:include"> <!ENTITY % local.section.class "| xi:include"> <!-- inside chapter or section elements --> <!ENTITY % local.appendix.class "| xi:include"> <!-- inside appendix elements --> <!ENTITY % local.divcomponent.mix "| xi:include"> <!-- inside para, programlisting, literallayout, etc. --> <!ENTITY % local.para.char.mix "| xi:include"> <!-- inside bookinfo, chapterinfo, etc. --> <!ENTITY % local.info.class "| xi:include"> <!-- inside sets --> <!ENTITY % local.book.class "| xi:include"> <!ENTITY % local.set.class "| xi:include"> Regards,
Dean Nelson
In a message dated 6/6/2011 7:49:31 A.M. Pacific Daylight Time,
david@thingbag.net writes:
-----BEGIN PGP SIGNED MESSAGE----- |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]