Re: False-positive validation errors
"lucas_gonze" <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], "Lucas Gonze" <lucas.gonze@...> wrote: > > >> So what's needed is a Relax NG schema for XHTML 1.0 Transitional? > > On Wed, Aug 13, 2008 at 2:42 AM, Lennart Borgman (gmail) > <lennart.borgman@...> wrote: > > Yes, exactly. It would be very nice if you wrote this. > > I have created an rnc file from > http://www.thaiopensource.com/relaxng/xhtml/xhtml.rng and done a > little testing to confirm that it doesn't completely fail. See > xhtml-transitional-in-nxml.tgz at > http://tech.groups.yahoo.com/group/emacs-nxml-mode/files/ Sample schemas.xml for loading this schema: <?xml version="1.0"?> <locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0"> <doctypePublicId publicId="-//W3C//DTD XHTML 1.0 Transitional//EN" uri="rnc/xhtml-transitional-frameset.rnc"/> </locatingRules> Sample .emacs for loading schemas.xml: ;; use custom validator for xhtml transitional in nxml-mode and nxhtml-mode (setq rng-schema-locating-files (append rng-schema-locating-files-default '("~/.emacs.d/xhtml-transitional-in-nxml/schemas.xml"))) I am posting these notes for the benefit of future web searchers working on the same issue. ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/emacs-nxml-mode/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/emacs-nxml-mode/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/