OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] including non-xml

On Mon, 26 Apr 2010 11:41:13 +0100
Ivan Ristic <ivan.ristic@gmail.com> wrote:

> On a similar matter, does anyone know if it is possible to include
> only a part of a file?
> In case of a book on programming, for example, I want to keep all
> examples separate (which would allow me to easily perform syntax
> checks, and maintain them separately), but include only certain parts
> in the book (complete examples will usually include much more stuff
> than necessary to reproduce in a book).
> I looked around for a solution, but couldn't find anything. I have an
> idea to hack something together that would allow me to specify the
> fragment "coordinates" in the URL. For example:
> <programlisting><xi:include
> href="codesample.c?startMarker=XXX&endMarker=YYY"  parse="text"
>       xmlns:xi="http://www.w3.org/2001/XInclude"; /></programlisting>
> Comments, pointers and suggestions are welcome.

If your source (C code whatever) can be 'partitioned' 
in some way, that might help?
  I don't think xslt can help you with non-xml 'selection'

HTH - and Thanks Samual.

Bob to the rescue again :-)



Dave Pawson

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]