Re: Finding schema files...

"Tony Graham" <[email protected]>
Newsgroups gmane.emacs.nxml.general
Message-ID <[email protected]>
On Fri, August 27, 2010 5:50 pm, christian_stieber wrote:
...
> Is there any way to stick something into an XML file that makes emacs or
> nxml use the correct schema file, a SIMPLE file path? Even if it's an
> elisp fragment that needs to be installed so emacs reads a line like <!--
> XMLSchema: ../../Schema/Data/foo.rnc --> and does the right thing? Of
> course, it would be nicer if nothing had to be done to make it work.

I used to have a hook function for nxml-mode that read the PI that
<oXygen/> inserts in XML files to find the schema and used that to tell
nxml-mode to find the schema.  It wasn't hard to do, but I don't have it
anymore after I made both an <oXygen/> framework and a nxml-mode schemas
file for the schema (for the XSpec XSLT/XQuery testing framework) so
people would stop putting idiosyncratic schema locations in PIs in shared
XSpec test files.

Regards,


Tony Graham                         [email protected]
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2



------------------------------------

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:
    [email protected] 
    [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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.