Re: Re: Finding schema files...

Dave Pawson <[email protected]>
Newsgroups gmane.emacs.nxml.general
Message-ID <[email protected]>
On 31 August 2010 17:29, Steinar Bang <[email protected]> wrote:
>>>>>> Leigh L Klotz Jr <[email protected]>:
>
>> I admin I'm confused about this.  Can't you just use the menu item to
>> set the schema for a file and let emacs save the data for you?  Is it
>> really a big deal that it saves it in a file called schemas.xml in the
>> same directory?
>
> Huh...?  Is that possible?  I didn't know that.
>
> Now I've experiemented.  Original poster, please try this:
>
> Make sure that the first element (car) of rng-schema-locating-files is
> "schemas.xml" (this is the default).
>
> Then select from the menus
>  XML->Set Schema->File...
> and select the name of the RNC file for your schema.


(define-key nxml-mode-map [f9] 'rng-set-schema-file)

as part of your .emacs helps. I use f9 now,
then tidy up the schemas file every few months

This as part of
(add-hook 'nxml-mode-hook
  (function (lambda()
	    (define-key nxml-mode-map [f5] 'sgml-comment)
	    (define-key nxml-mode-map [f9] 'rng-set-schema-file)
	    (define-key nxml-mode-map "\C-c\C-r" 'tag-region)
	    (setq nxml-slash-auto-complete-flag t)
	    (setq nxml-auto-insert-xml-declaration-flag t)
	    (setq nxml-default-buffer-file-coding-system (quote utf-8-dos))
	    (setq nxml-glyph-set (quote nxml-wgl4-glyph-set))
	    (setq rng-schema-locating-files '("/sgml/schemas.xml"))
	    (setq sgml-indent-data t)
	    (setq sgml-indent-step 2)
	
	    ))) ;; End of nxml mode specific hooks.



HTH


-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk


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

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.