unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Get "File mode specification error: (error Invalid pattern)" when opening XML file with RNC schema in nxml
@ 2022-11-13 10:54 Steinar Bang
  2022-11-13 15:42 ` Stefan Monnier via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 2+ messages in thread
From: Steinar Bang @ 2022-11-13 10:54 UTC (permalink / raw)
  To: help-gnu-emacs

Platform: debian 11.5 "bullseye" on amd64
          nxml installed with GNU Emacs 27.1

When I open an XML file with an RNC schema in emacs, the following
happens:
 1. The window is split in two, with the XML doc on top and the schema
    in the bottom half
 2. The cursor is positioned in the RNC schema
 3. The following error text is displayed in the minibuffer:
     File mode specification error: (error Invalid pattern)

See screenshot: https://www.bang.priv.no/screenshots/Screenshot%20at%202022-11-13%2010-52-49.png

In the messages buffer, I find this:
Error: (error "Invalid pattern at position 28615 in ~/workspaces/oldalbum/oldalbum.db.liquibase/src/main/resources/oldalbum/dbchangelog-3.9.rnc")
File mode specification error: (error Invalid pattern)

Does anyone know how to debug this further?

The RNC schema, the XML file and the schemas.xml file can be found here:
 https://github.com/steinarb/oldalbum/tree/master/oldalbum.db.liquibase/src/main/resources/oldalbum

The dbchangelog-3.9.rnc file was created by first either running the
(increasingly hard to run) sun schema converter, or maybe this one
http://debeissat.nicolas.free.fr/XSDtoRNG.php

and then converted from that to RNC.

And then I have done a manual massaging to make nxml accept the RNC
schema:
 https://github.com/steinarb/oldalbum/commit/af4106c09b9a93b07d44f42348bab4b9f3ecaa0f

But now, two years on, the schema no longer works.

And the Relax-NG resources on the net seems to be dead, or nearly dead,
so I'm asking for help here.

Thanks!


- Steinar



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

* Re: Get "File mode specification error: (error Invalid pattern)" when opening XML file with RNC schema in nxml
  2022-11-13 10:54 Get "File mode specification error: (error Invalid pattern)" when opening XML file with RNC schema in nxml Steinar Bang
@ 2022-11-13 15:42 ` Stefan Monnier via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2022-11-13 15:42 UTC (permalink / raw)
  To: help-gnu-emacs

> See screenshot: https://www.bang.priv.no/screenshots/Screenshot%20at%202022-11-13%2010-52-49.png
>
> In the messages buffer, I find this:
> Error: (error "Invalid pattern at position 28615 in ~/workspaces/oldalbum/oldalbum.db.liquibase/src/main/resources/oldalbum/dbchangelog-3.9.rnc")
> File mode specification error: (error Invalid pattern)
>
> Does anyone know how to debug this further?

Hmmm... can you use `M-x nxml-mode` manually (after enabling "Options =>
Enter Debugger on Error") to hopefully get a backtrace?

> But now, two years on, the schema no longer works.

Hmm... what has changed on your side?  New version of Emacs?


        Stefan




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

end of thread, other threads:[~2022-11-13 15:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-13 10:54 Get "File mode specification error: (error Invalid pattern)" when opening XML file with RNC schema in nxml Steinar Bang
2022-11-13 15:42 ` Stefan Monnier via Users list for the GNU Emacs text editor

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 read-only IMAP folder(s) and NNTP newsgroup(s).