ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: LMTX problem with XML
Date: Sun, 14 Feb 2021 13:34:42 +0100	[thread overview]
Message-ID: <1d28fc6e-36e3-ebc4-d99d-51e55f9c50a4@gmx.es> (raw)

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
___________________________________________________________________________________

             reply	other threads:[~2021-02-14 12:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-14 12:34 Pablo Rodriguez [this message]
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

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=1d28fc6e-36e3-ebc4-d99d-51e55f9c50a4@gmx.es \
    --to=oinos@gmx.es \
    --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).