ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: DocBook in ConTeXt - any new ideas?
Date: Sun, 05 Jun 2011 12:46:30 +0200	[thread overview]
Message-ID: <4DEB5E86.4010905@wxs.nl> (raw)
In-Reply-To: <D2B5635C-A7C4-40A9-B125-A7609D4AAE68@umich.edu>

On 4-6-2011 2:24, Aditya Mahajan wrote:
>
> On Jun 4, 2011, at 5:06 AM, Hans Hagen<pragma@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
___________________________________________________________________________________


  parent reply	other threads:[~2011-06-05 10:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-02  9:39 Piotr Kopszak
2011-06-02 10:20 ` Thomas Schmitz
2011-06-02 10:53   ` Piotr Kopszak
2011-06-02 12:03     ` Hans Hagen
2011-06-02 17:17       ` Bruce
2011-06-02 20:20         ` Hans Hagen
2011-06-03 15:43           ` R. Ermers
2011-06-03 16:28             ` Hans Hagen
2011-06-04  8:21               ` R. Ermers
2011-06-04  9:06                 ` Hans Hagen
2011-06-04  9:57                   ` R. Ermers
2011-06-04 12:24                   ` Aditya Mahajan
2011-06-04 13:25                     ` R. Ermers
2011-06-05 10:46                     ` Hans Hagen [this message]
2011-06-02 11:58 ` Hans Hagen

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=4DEB5E86.4010905@wxs.nl \
    --to=pragma@wxs.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).