On 02/24/2016 09:20 AM, Hans Hagen wrote:
> On 2/23/2016 10:26 PM, Mica Semrick wrote:
>> Reading the docbook thread earlier today reminded me to ask this:
>>
>> Is there any feature or script that anyone can share that will read in
>> an XML document and spit out a blank mapping file?
> 
> what is a blank mapping file

Just guessing (or that would be useful for me too), a file with the
following scheme:

\startxmlsetups xml:blank:map % xml:[filename] would be also fine
    \xmlsetsetup{\xmldocument}
        {xml:elements} % all elements used in document listed here
        {xml:*}

    \xmlsetsetup{\xmldocument}
        {h2[contains(@class,'author')]} % list also all elements
        {xml:title:author}              % with attributes
\stopxmlsetups

\xmlregistersetup{xml:pandoc}

\startxmlsetups xml:elements % basic configuration for elements
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:title:author % basic configuration for attributes
    \xmlflush{#1}
\stopxmlsetups

I guess that the usefulness of this is not the actual configuration, but
to know what you have to configure.

I hope it helps,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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 via email to