GNU bug report logs -
#12280
Bug#685872: emacs24 XHTML RELAX NG schema should support XHTML5
Previous Next
To reply to this bug, email your comments to 12280 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12280
; Package
emacs
.
(Sat, 25 Aug 2012 18:33:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Rob Browning <rlb <at> defaultvalue.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 25 Aug 2012 18:33:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
(If possible, please preserve the 685872-forwarded <at> 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 <at> 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
Severity set to 'wishlist' from 'normal'
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Wed, 30 Oct 2019 23:17:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12280
; Package
emacs
.
(Tue, 01 Jun 2021 07:32:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 12280 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Rob Browning <rlb <at> 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
[a.xhtml (application/xhtml+xml, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12280
; Package
emacs
.
(Sat, 07 May 2022 16:41:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 12280 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> 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
This bug report was last modified 3 years and 36 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.