Re: Re: Finding schema files...
Leigh L Klotz Jr <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <[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? On 08/27/2010 10:35 AM, kennethjhughes wrote: > > http://www.dpawson.co.uk/relaxng/nxml/schemaloc.html#d574e168 > > --- In [email protected] > <mailto:emacs-nxml-mode%40yahoogroups.com>, "christian_stieber" > <stieber.c@...> wrote: > > > > Well, like most XML tools, nxml-mode seems to be "oversized". > > > > Basically, I don't want to place my schema files on a webserver. Why > should I? And how do I guarantee they stay current? xmllint, on the > other hand, didn't even accept "file://..." --- luckily, it has a > command line option, although putting the path into the XML would have > been nice. > > > > nxml doesn't even allow any specs inside the XML file; instead it's > using some obscure repository. Same as before, I don't want my schema > files to be installed on the system (it would have to be symlinks back > into my working copy anyway, but unfortuntely someone other than me > checking out the stuff won't be getting this). I don't even want to > add "pointers" into my working copies into some private configuration > file of me. I just want to associate an XML file with a schema file, > nothing more. I don't even want to "search" for the schema file --- I > know where it is! Believe it or not, I just happen to know the layout > of my source repository. > > > > 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. > > > > Or am I really the only one using XML for stuff that's not some > obscure worldwide distributed collection of magic processing rules, > pulling datatypes from asia into rules from china to determine how to > process documents assembled from france and italy with an encoding > table from russia? > > > >