ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "R. Ermers" <r.ermers@hccnet.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: cals tables - UNSOLVED
Date: Sat, 19 Mar 2011 09:10:04 +0100	[thread overview]
Message-ID: <4B192494-CA20-43A8-9E88-700F161EC936@hccnet.nl> (raw)
In-Reply-To: <78B175D1-D98C-4958-9101-663B74D9C860@hccnet.nl>

Dear All,

After having succeeded with Aditya's kind help to typeset a table file in a separate pdf, I have been trying to typeset the cals tables in my docbook xml file in two ways:

A. directly in the document. 

The table is in //section/cals:table.

The cals module is loaded at the beginning of the document. But in the pdf there is no trace of any table. Do I need to add 
 definition somewhere? Perhaps in this list where the xml items are introduced?

\xmlsetsetup{#1}{article|footnote|foreignphrase|section [snippet] para|quote|itemizedlist|listitem}{xml:*}

This would be contrary to working with the directives and the cals module.

B. as a separate document in a mediaobject
Usually docbook files can contain tables, but there is nothing against imported a separate files. I chose to use the graphics wrapper:

      <mediaobject role="tabel">
        <imageobject>
          <imagedata fileref="./test2.xml"/>  (I also tried fileref="test2.xml") 
        </imageobject>
      </mediaobject>

I know that the object is found, because I use a marker (TABEL 3), which is printed in the pdf.

\startxmlsetups xml:mediaobject:imageobject:imagedata:tabel
\xmlloaddirectives{directives.xml}
TABEL 3
\xmlprocess{xml:cals:process}{\xmlatt{#1}{fileref}}{}
\stopxmlsetups

The xml file, and I believe here the table file is meant, is not imported though. The log file says that the xml file is invalid, but that is not true.  It is Hans' simple test table (alpha, betha, gamma), it is validated by xml software, and moreover, it can be typeset without any problems in a separate pdf.

\pages           > flushing realpage 24, userpage 24
lxml            : 9 directives found in 'directives.xml', 9 valid
load            > invalid xml file - parsed text

The log file also says that the text is parsed. But there is no text from the table in the pdf.

%I tried loading the directives in various places, e.g. directly after the module in the top of the document and after the command \startxmlsetups xml:dbsetups.

Well, has anyone any advice? Or should I give up on this?

Regards,

Robert





___________________________________________________________________________________
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:[~2011-03-19  8:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-07 11:26 cals tables R. Ermers
2011-03-07 11:41 ` Hans Hagen
2011-03-07 12:41   ` R. Ermers
2011-03-07 21:10     ` R. Ermers
2011-03-08 20:00   ` R. Ermers
2011-03-09 13:30     ` Hans Hagen
2011-03-11  8:35       ` R. Ermers
2011-03-12 11:46         ` R. Ermers
2011-03-17 10:33           ` cals tables - UNSOLVED R. Ermers
2011-03-18  4:08             ` Aditya Mahajan
2011-03-18  7:47               ` R. Ermers
2011-03-19  8:10                 ` R. Ermers [this message]

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=4B192494-CA20-43A8-9E88-700F161EC936@hccnet.nl \
    --to=r.ermers@hccnet.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).