bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12280: Bug#685872: emacs24 XHTML RELAX NG schema should support XHTM


From: Rob Browning
Subject: bug#12280: Bug#685872: emacs24 XHTML RELAX NG schema should support XHTML5
Date: Sat, 25 Aug 2012 13:30:57 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

(If possible, please preserve the address@hidden
 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 <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]