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

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