Re: Finding schema files...

Steinar Bang <[email protected]>
Newsgroups gmane.emacs.nxml.general
Organization Probably a good idea
Message-ID <[email protected]>
If rng-schema-locating-files contains "schemas.xml" (which I think it
does by default.  Try `C-h v rng-schema-locating-files' to verify), you
can put a file named schemas.xml in the same directory as your document.

As for the format of that file, see the link that Kenneth J. Hughes
posted.

In short, you can match a file name pattern, an absolute file name, a
namespace used, the document element name, a doctype declaration public
IS, and more, against an RNC schema.

You can also specify a default schema.

If rng-schema-locating-files contains "schemas.xml", and you put a
schemas.xml file with this content in the same directory as the XML
documents themselves, that should do the trick:

<?xml version="1.0"?>
<locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0">
  <default uri="../../Schema/Data/foo.rnc"/>
</locatingRules>

If you think "what do I need with a bunch of identical extra schemas.xml
files?", then create a single one, and add its location to
rng-schema-locating-files,



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

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.