ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Meer, H. van der" <H.vanderMeer@uva.nl>
To: ConTeXt NTG <ntg-context@ntg.nl>
Subject: xmlinclude
Date: Tue, 20 Mar 2012 19:07:55 +0000	[thread overview]
Message-ID: <CF422D83-3E7B-4CBE-969C-10C2AAB4C8E5@uva.nl> (raw)

Can someone tell me what \xmlinclude is supposed to do? I have experimented a lot but didn't come further to an understanding.

I have called it through:
\startxmlsetups xam:include
	\xmlinclude{#1}{include}{file}
\stopxmlsetups
from a node include in: 
<problem><include file="functions.xml"/></problem>

and indeed \enabletrackers[lxml.loading]gives me in the log: 
xml             > tex > loading file './xm-test-problem.xml' as 'problem'

But then nothing seemed to have happened. The xml-node in that file is never seen. I checked that by listing all these nodes in the log (\xmlcommand{\xmldocument}..)
The <include> and others are listed, but not the contents of the file I thought I had included.

Clearly I have some misunderstanding here as to what the manual implicates. It states:
"\xmlinclude{node}{lpath}{attribute} includes the file specified by attribute of the element located by lpath at node node."
I take this 'node' ast the node from where the lpath is rooted, but I might be mistaken.

And most of all: what happens to the included file and how can I approach/use its contents?

I would appreciate an enlightment. Thanks in advance.

Hans van der Meer



___________________________________________________________________________________
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	other threads:[~2012-03-20 19:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CF422D83-3E7B-4CBE-969C-10C2AAB4C8E5@uva.nl \
    --to=h.vandermeer@uva.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).