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: Thu, 17 Mar 2011 11:33:37 +0100	[thread overview]
Message-ID: <8EE590AC-597D-454A-BED3-A69ADF17E388@hccnet.nl> (raw)
In-Reply-To: <506D6753-407C-48E3-8EE2-AB2D7DCE3F6F@hccnet.nl>

Dear All,

I am still trying to typeset cals tables. 

I have
1. an environment document with instructions.
2. an xml docbook file containing cals tables

Note that the original cals tables (docbook standard) use <table, <tgroup, etc. but for ConTeXt purposes this  - as far as I understand - needs to be: <cals:table, <cals:tgroup, etc. (My xml reader does not recognize them anymore.)

Among the many things I tried is putting the table in a separate xml file, and then import it:

\starttext
\xmlprocess{main}{\xmlatt{#1}{fileref}}{}
\stoptext

This works, so yes, it is possible to produce a standard table on a pdf page. This pd file can be imported as an image (which of course is of no help when the table is longer than one page).

But the directives - the ones prepared by Hans - have no influence on the tables at all. According to the log file the cdx file file is loaded, but the directives are not recognized:

lxml : no directives found in 'x-cals-test.cdx'

To solve this, I tried rephrasing the directives as context instructions:

<directive attribute='cdx' value="colors" element="cals:table" setup="cdx:cals:table:colors"/>

\xmlcontextdirective {cdx} {colors} {cals:table} {cdx:cals:table:colors}

But there is no effect, and I don't know whether I did this right. However, loading the separate xml file and processing the table remain the main problem. When the process instruction is part of a setup in an environment file, such as:

\startxmlsetups xml:mediaobject:imageobject:imagedata:tabel
\xmlloaddirectives{x-cals-test.cdx}%
\xmlprocess{main}{\xmlatt{#1}{fileref}}{}
\stopxmlsetups

The table is not typeset and the entire file is broken off at this point (the table xml file is valid of course). 
So the table is probably read in, but then something happens. Without the table, the file is typeset normally.

I already read and reread all information in the manuals on this subject, and all archived email correspondence.

Can anyone explain me in more than one line how to set up an environmental file? Or show me a working minimal example?

Thanks in advance!

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-17 10:33 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           ` R. Ermers [this message]
2011-03-18  4:08             ` cals tables - UNSOLVED Aditya Mahajan
2011-03-18  7:47               ` R. Ermers
2011-03-19  8:10                 ` R. Ermers

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=8EE590AC-597D-454A-BED3-A69ADF17E388@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).