ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* LMTX problem with XML
@ 2021-02-14 12:34 Pablo Rodriguez
  2021-02-14 16:25 ` Pablo Rodriguez
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2021-02-14 12:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans,

the following sample breaks compilation with latest after release from
2021.02.05 17:45:

  \startbuffer[demo]
  <html xmlns="http://www.w3.org/1999/xhtml">
    <body>
     <div id="in" class="section level1 frontmatter">
       <h1>In</h1>
     </div>
     <div id="body" class="section level1 bodymatter">
       <h1>Body</h1>
     </div>
    </body>
  </html>
  \stopbuffer

  \startxmlsetups xml:initialize
    \xmlsetsetup{#1}
      {html|body|div|h1}
      {xml:*}

    \xmlsetsetup{#1}
      {[contains(@class,'frontmatter')]}
      {xml:frontmatter}

    \xmlsetsetup{#1}
      {[contains(@class,'bodymatter')]}
      {xml:bodymatter}
  \stopxmlsetups

  \xmlregistersetup{xml:initialize}

  \startxmlsetups xml:html
    \xmlflush{#1}
  \stopxmlsetups


  \startxmlsetups xml:body
    \xmlflush{#1}
  \stopxmlsetups

  \startxmlsetups xml:frontmatter
    \startfrontmatter
    \xmlflush{#1}
    \stopfrontmatter
  \stopxmlsetups

  \startxmlsetups xml:bodymatter
    \startbodymatter
    \xmlflush{#1}
    \stopbodymatter
  \stopxmlsetups

  \startxmlsetups xml:h1
    \xmlflush{#1}
  \stopxmlsetups

  \starttext
     \xmlprocessbuffer{main}{demo}{}
  \stoptext

Current latest from 2021.02.13 00:28 complains about argument of \xmlw
having an extra }.

I think this may be a bug in ConTeXt.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LMTX problem with XML
  2021-02-14 12:34 LMTX problem with XML Pablo Rodriguez
@ 2021-02-14 16:25 ` Pablo Rodriguez
  2021-02-14 16:47   ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2021-02-14 16:25 UTC (permalink / raw)
  To: ntg-context

On 2/14/21 1:34 PM, Pablo Rodriguez wrote:
> Hans,
>
> the following sample breaks compilation with latest after release from
> 2021.02.05 17:45:
> [...]
> Current latest from 2021.02.13 00:28 complains about argument of \xmlw
> having an extra }.

Hans,

many thanks for your fix in current latest (2021.02.14 16:39).

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LMTX problem with XML
  2021-02-14 16:25 ` Pablo Rodriguez
@ 2021-02-14 16:47   ` Hans Hagen
  2021-02-14 20:24     ` Pablo Rodriguez
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2021-02-14 16:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

On 2/14/2021 5:25 PM, Pablo Rodriguez wrote:
> On 2/14/21 1:34 PM, Pablo Rodriguez wrote:
>> Hans,
>>
>> the following sample breaks compilation with latest after release from
>> 2021.02.05 17:45:
>> [...]
>> Current latest from 2021.02.13 00:28 complains about argument of \xmlw
>> having an extra }.
> 
> Hans,
> 
> many thanks for your fix in current latest (2021.02.14 16:39).
well, thanks for testing it and reporting issues; i'm stepwise removing 
some old hacks but one not always knows in advance if some ancient hack 
had other (positive) side effects, so the more testing the better

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LMTX problem with XML
  2021-02-14 16:47   ` Hans Hagen
@ 2021-02-14 20:24     ` Pablo Rodriguez
  2021-02-14 21:32       ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2021-02-14 20:24 UTC (permalink / raw)
  To: ntg-context

On 2/14/21 5:47 PM, Hans Hagen wrote:
> On 2/14/2021 5:25 PM, Pablo Rodriguez wrote:
>> On 2/14/21 1:34 PM, Pablo Rodriguez wrote:
>>> Hans,
>>>
>>> the following sample breaks compilation with latest after release from
>>> 2021.02.05 17:45:
>>> [...]
>>> Current latest from 2021.02.13 00:28 complains about argument of \xmlw
>>> having an extra }.
>>
>> Hans,
>>
>> many thanks for your fix in current latest (2021.02.14 16:39).
> well, thanks for testing it and reporting issues; i'm stepwise removing
> some old hacks but one not always knows in advance if some ancient hack
> had other (positive) side effects, so the more testing the better

I need to test more, since I have an issue compiling XML sources that
only happens in Windows (and not in Linux).

The issue is really weird, since I can compile single chapters in both
OSes, but not the whole book in Windows.

But I‘m afraid it will take some time before I can provide a minimal
sample showing the issue.

Many thanks again for your excellent work with ConTeXt,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LMTX problem with XML
  2021-02-14 20:24     ` Pablo Rodriguez
@ 2021-02-14 21:32       ` Hans Hagen
  2021-02-15 16:16         ` Pablo Rodriguez
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2021-02-14 21:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

On 2/14/2021 9:24 PM, Pablo Rodriguez wrote:

> But I‘m afraid it will take some time before I can provide a minimal
> sample showing the issue.

We have plenty of time in these lock down days.

> Many thanks again for your excellent work with ConTeXt,
Maybe some bad tuc file? Sometimes wiping it helps.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LMTX problem with XML
  2021-02-14 21:32       ` Hans Hagen
@ 2021-02-15 16:16         ` Pablo Rodriguez
  0 siblings, 0 replies; 6+ messages in thread
From: Pablo Rodriguez @ 2021-02-15 16:16 UTC (permalink / raw)
  To: ntg-context

On 2/14/21 10:32 PM, Hans Hagen wrote:
> On 2/14/2021 9:24 PM, Pablo Rodriguez wrote:
>
>> But I‘m afraid it will take some time before I can provide a minimal
>> sample showing the issue.
>
> We have plenty of time in these lock down days.

Many thanks for your reply, Hans.

Might I suggest a couple of implementations in ConTeXt for these
lockdown days?

Parallel streams (both in pages and columns) have been already mentioned
here by some other users.

BTW, a nice version of three streams in two facing pages can be seen at
https://archive.org/details/aristo-teles-poetica/page/n54/mode/1up.

The other suggestion would be page registers for footnotes (such as in
http://www.faenumpublishing.com/uploads/2/3/9/8/23987979/hippocrates_on_airs_waters_and_places_-_hayes_and_nimis_june_2013.pdf#page=126).

>> Many thanks again for your excellent work with ConTeXt,
> Maybe some bad tuc file? Sometimes wiping it helps.

I overlooked that XML output was different from a newer version of
pandoc (which I use in Windows).

The new version included the same class for parent and child element
(parent <div> and child <h1>). Of course, this lead to crash, since my
lpath selection took for granted that only the parent <div> had that class.

In my case, copying everything to a new "testing" file (or bunch of
files) and start removing lines is the way to discover what is wrong in
the code.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-15 16:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-14 12:34 LMTX problem with XML Pablo Rodriguez
2021-02-14 16:25 ` Pablo Rodriguez
2021-02-14 16:47   ` Hans Hagen
2021-02-14 20:24     ` Pablo Rodriguez
2021-02-14 21:32       ` Hans Hagen
2021-02-15 16:16         ` Pablo Rodriguez

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).