logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

customizing a grammar and location grammar: msg#00000

Subject: customizing a grammar and location grammar
Hello emacs-nxml-mode list,

In trying to customize the docbook 4.5CR1 rng model by paralleling

http://www.docbook.org/docs/howto/#faq-customization-mathml-svg

I wondered, "Is there a way to reference the public version of, say,
docbook and have nxml automatically map that to my local version?"

For example:

<include href="http://www.docbook.org/rng/4.5CR1/docbook.rng";>...</include>

would automatically find my local copy of the docbook grammar in a
different directory?

So, uh - is there?

Also, my .emacs file has

(setq rng-schema-locating-files '("schemas.xml","/path/to/schemas.xml"))

and nxml mode wants locate.rnc to be at /path/to/locate.rnc.

I wanted it to be in /path/to/locatingrules and set the content of
/path/to/schemas.xml accordingly,

<documentElement localName="locatingRules" uri="locatingrules/locate.rnc"/>

but nxml mode ignored it.

In fact, without changing my /path/to/schemas.xml file, moving
locate.rnc to /path/to/located.rnc causes everything to work fine.

Is there a way to make nxml mode handle /path/to/schemas.xml and
/path/to/locatingrules/locate.rnc?

I didn't append my schemas.xml file because I don't want to use the
default file.

Thank you for your expertise and time. Sorry for the verbosity.

Ciao,
--
http://chris.chiasson.name/


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 






<Prev in Thread] Current Thread [Next in Thread>