unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12280: Bug#685872: emacs24 XHTML RELAX NG schema should support XHTML5
       [not found] <86sjbadgis.fsf@gray.siamics.net>
@ 2012-08-25 18:30 ` Rob Browning
  2021-06-01  7:31   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Browning @ 2012-08-25 18:30 UTC (permalink / raw)
  To: 12280; +Cc: 685872, 685872-forwarded, Ivan Shmakov

(If possible, please preserve the 685872-forwarded@bugs.debian.org
 address in any replies.)

This Debian bug was just filed, requesting support for XHTML5.  I'm not
sure how/if you'd like to handle the issue, but thought I should pass it
on.

Ivan Shmakov <oneingray@gmail.com> writes:

> Package: emacs24-common
> Version: 24.1+1-4
>
> 	The XHTML RELAX NG schema currently packaged with Emacs 24.1 in
> 	Debian doesn't support XHTML5.  For instance, nXML doesn't seem
> 	to recognize ‘aside’ as a valid element in the example XHTML5
> 	document MIME'd.
>
> 	I was able to find the schema with XHTML5 support at [1, 2],
> 	and, in order to force nXML use it instead of the one shipped,
> 	created a schemas.xml file (in the directory that holds the
> 	example document) based on the contents of Emacs' own
> 	etc/schema/schemas.xml, with only the following edit:
>
>    <typeId id="XSLT" uri="xslt.rnc"/>
>    <typeId id="RELAX NG" uri="relaxng.rnc"/>
> -  <typeId id="XHTML" uri="xhtml.rnc"/>
> +  <!-- formely: xhtml.rnc -->
> +  <typeId id="XHTML" uri="validator-syntax-ed90a83ab0fd/relaxng/xhtml5.rnc"/>
>    <typeId id="DocBook" uri="docbook.rnc"/>
>    <typeId id="RDF" uri="rdfxml.rnc"/>
>
> 	(I've unpacked the schema snapshot [2] into the same directory
> 	as well.)
>
> 	Unfortunately, this schema uses the following datatype library
> 	declaration [3], which Emacs doesn't seem to support:
>
> datatypes w = "http://whattf.org/datatype-draft"
>
> 	Thus, I've also had to provide the following “stub” code:
>
> (defun rng-html5-compile (name params)
>   "A stub for the http://whattf.org/datatype-draft datatype library."
>   '(t identity))
>
> (put (intern "http://whattf.org/datatype-draft")
>      'rng-dt-compile
>      'rng-html5-compile)
>
> 	Finally, it made Emacs recognize the ‘aside’ element introduced
> 	in XHTML5.
>
> 	Hopefully, someone could implement proper support for [3].
> 	Either way, my suggestion would be to switch to the RELAX NG
> 	XHTML schema that supports XHTML5 [1].
>
> 	TIA.
>
> [1] http://syntax.whattf.org/
> [2] http://bitbucket.org/validator/syntax/get/ed90a83ab0fd.tar.bz2 
> [3] http://hsivonen.iki.fi/html5-datatypes/

Thanks
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4





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

* bug#12280: Bug#685872: emacs24 XHTML RELAX NG schema should support XHTML5
  2012-08-25 18:30 ` bug#12280: Bug#685872: emacs24 XHTML RELAX NG schema should support XHTML5 Rob Browning
@ 2021-06-01  7:31   ` Lars Ingebrigtsen
  2022-05-07 16:40     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-01  7:31 UTC (permalink / raw)
  To: Rob Browning; +Cc: 685872, 685872-forwarded, Ivan Shmakov, 12280

[-- Attachment #1: Type: text/plain, Size: 683 bytes --]

Rob Browning <rlb@defaultvalue.org> writes:

>> 	The XHTML RELAX NG schema currently packaged with Emacs 24.1 in
>> 	Debian doesn't support XHTML5.  For instance, nXML doesn't seem
>> 	to recognize ‘aside’ as a valid element in the example XHTML5
>> 	document MIME'd.

(I'm going through old bug reports that unfortunately got no response at
the time.)

This still seems to be the case in Emacs 28 -- the test file below
doesn't recognise the `aside' element.

So we should probably update etc/schema/xhtml*.rnc?  Anybody know where
we can get a new copy?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

[-- Attachment #2: a.xhtml --]
[-- Type: application/xhtml+xml, Size: 484 bytes --]

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

* bug#12280: Bug#685872: emacs24 XHTML RELAX NG schema should support XHTML5
  2021-06-01  7:31   ` Lars Ingebrigtsen
@ 2022-05-07 16:40     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-07 16:40 UTC (permalink / raw)
  To: Rob Browning; +Cc: 685872, 685872-forwarded, Ivan Shmakov, 12280

Lars Ingebrigtsen <larsi@gnus.org> writes:

> So we should probably update etc/schema/xhtml*.rnc?  Anybody know where
> we can get a new copy?

It seems like the source of the data is:

  1. The XHTML Modularization Version 1.1 standard, available online
     at http://www.w3.org/TR/xhtml-modularization/

      xhtml-applet.rnc xhtml-attribs.rnc xhtml-base.rnc xhtml-bdo.rnc
      xhtml-bform.rnc xhtml-btable.rnc xhtml-csismap.rnc
      xhtml-datatypes.rnc xhtml-edit.rnc xhtml-events.rnc
      xhtml-form.rnc xhtml-frames.rnc xhtml-hypertext.rnc

However, I can't find anything there that resembles these .rnc files.  A
search for site:w3.org "xhtml-form.rnc" gives me zero hits, but perhaps
they're in a zip file somewhere?

Searching the rest of the web, I just get hits from Emacs packages.

It seems like http://www.w3.org/TR/xhtml-modularization/ was indeed
updated in 2018, but I can't find the data files.  Anybody?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2022-05-07 16:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <86sjbadgis.fsf@gray.siamics.net>
2012-08-25 18:30 ` bug#12280: Bug#685872: emacs24 XHTML RELAX NG schema should support XHTML5 Rob Browning
2021-06-01  7:31   ` Lars Ingebrigtsen
2022-05-07 16:40     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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