http://wiki.contextgarden.net/Command/xmlinclude

Wikified, but sans example for now. Thomas, could I leave that to you?
Writing about things I don't understand is one thing, but producing
working code that I don't understand is something I am happy to leave
to the experts.  ;-)

Cheers,
Sietse

P.s. To anticipate the obvious question "Sietse, do you mean working
code that *you* don't understand, or that the *author* doesn't
understand?" — the answer is "Yes." :-P

On Sun, Dec 16, 2012 at 10:07 PM, Schmitz Thomas A.
<thomas.schm...@uni-bonn.de> wrote:
>
> On Dec 16, 2012, at 2:46 PM, Hans Hagen <pra...@wxs.nl> wrote:
>
>> Using xml sounds ok to me (esp as you know how to do it) ... with xinclude 
>> you mean combining multiple files into one? It's what we do in all xml 
>> related projects here. There is actually an \xmlinclude command
>>
>>    \xmlinclude{main}{include}{filename|href|name}
>>
>> this will include from elements with tags 'include' and one of the 
>> attributes mentioned. Do this as one of the first steps as it merges xml 
>> trees.
>>
>> Hans
>
> Hi Hans,
>
> thanks for your suggestion. Yes, I mean combining multiple files into one 
> document. Sorry that I didn't see \xmlinclude, that's of course just what I 
> was looking for. But after searching the list, I saw a couple old messages by 
> Hans dan der Meer which made me realise I have no idea yet how to use it. 
> Something like this?
>
> file chapter_1.xml
> <chapter>
>   text
> </chapter>
>
> file <chapter_2.xml
> <chapter>
>   text
> </chapter>
>
> and then
>
> file master.xml
> <document>
>   <xi:include href="chapter_1.xml/>
>   <xi:include href="chapter_2.xml/>
> </document>
>
> Would translate to
>
> \startxmlsetups xml:xi:include
>   \startchapter
>      \xmltext{#1}{chapter}
>    \stopchapter
> \stopchapter
>
> Is that the basic structure, or am I misunderstanding the way this could be 
> used?
>
> All best
>
> Thomas
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to