logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Suggestion for the file to schema binding: msg#00054

Subject: Re: Suggestion for the file to schema binding
>>>>> James Clark <jjc@xxxxxxxxxx>:

> However, I do agree with you that the current behaviour is bad.
> I'm planning to redo the whole schema/document association
> mechanism, but it's not a trivial problem.  For example, with C-c
> C-s it would be easy to make the association persist till you exit
> Emacs, but it would be more useful to be able to make it persist
> even if you exit and restart Emacs.

What's the current behaviour?  Association based on file name
extension?  Association based on top element name?  Association based
on top element name, plus namespace?  No association, except for
what's done manually by the user at runtime?

> Then the question is how to store this association.

If we're talking of state stored in buffer local lisp variables, one
possibility would be to store the lisp variable in a local variables
list, in a comment at the end of the file.

Is there no standard way of doing the association?  Ie. no schema
equivalent of DOCTYPE?

> In a processing instruction in the document?  In some separate file
> somewhere?  If so, are these association files per-document,
> per-directory, per-user or what?

I think a PI in the document is what I would expect.  The PI should
allow XML files to start other places than the top, to allow for
composite documents.

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/Tq9otC/XP.FAA/3jkFAA/2U_rlB/TM
---------------------------------------------------------------------~->

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>