On 4-6-2011 2:24, Aditya Mahajan wrote:
On Jun 4, 2011, at 5:06 AM, Hans Hagen<pra...@wxs.nl> wrote:
On 4-6-2011 10:21, R. Ermers wrote:
Adding the prefix cals: to the tag names (thus making the file invalid, which
is contrary to the docbook philosophy), using the cals table module and the
directives is not enough, at least the cals tables in my valid xml docbook
document were never typeset.
can be any prefix (namespace) ... the code that implements it uses a namespace
in order to avoid a mixup
IIRC, the namespace was hardcoded in the parser (or the call to the parser).
Robert's trouble with the cals table could have been resolved if there were a
user option to set (or disable) the cals namespace.
No, the namespace is just used to isolate code so 'cals' is an
abstraction. However, the assumption is indeed is that when used in an
xml file there is a namespace (afaiks in docbook they embed the cals
model, so it's not used as an independent definition).
When in x-cals.lua the following is used in line 128
local prefix = namespace and namespace ~= "" and (namespace .. ":")
or ""
one can do this then:
\startxmlsetups xml:cals:nonamespace
\xmlsetfunction {main} {table} {moduledata.cals.table}
\stopxmlsetups
\xmlregistersetup{xml:cals:nonamespace}
(I need to check such a change for side effects.)
(BTW, x-cals-test.xml in the testsuite shows all kind of namespace
remapping / usage)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________