Tom Emerson | 18 Dec 2012 18:45
Picon
Gravatar

rnc-mode updated for GNU Emacs 23+

Greetings,

I noticed that rnc-mode has not been updated for quite some time, and
that the canonical download link at Pantor stopped working.

I created a repo on github for rnc-mode, and fixed it to work with GNU
Emacs 23 and 24. You can clone from here:

https://github.com/TreeRex/rnc-mode

I will be creating a Marmalade (or MELPA, I haven't decided yet)
package for it in the next day or so, which will make it easier for
people to install.

If you have features/bugs that you'd like addressed, feel free to
submit an issue on GitHub.

Share and enjoy,

    -tree

--

-- 
Tom Emerson
tremerson <at> gmail.com
http://www.dreamersrealm.net/tree

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

Yahoo! Groups Links

(Continue reading)

RonB | 12 Oct 2012 19:26
Picon

Specifying outlining scheme

nxml outlining doesn't work for me, since I don't happen to use the schema that
nxml-section-element-name-regexp assumes. I don't want to set that every time I edit a file using a
different schema. How do people normally deal with that?

Since the price of admittance to using nxml on custom XML is creating a .rnc schema anyway, seems like that
would be the natural place to store that information, e.g., as an annotation. Has anybody written such a patch?

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

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:
    emacs-nxml-mode-digest <at> yahoogroups.com 
    emacs-nxml-mode-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

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

RonB | 11 Oct 2012 23:00
Picon

completion in nxml

Newbie. Downloaded latest Gnu Emacs for Windows. Studying nxml. It appears that:

a) Lots of websites tell you that nxml-complete is bound to C-RET.
b) This is not true in GNU Emacs 24.2.1.
c) nxml-complete isn't bound to any key
d) C-RET isn't bound to any function
e) completion-at-point is bound to Alt-tab, inconvenient if not useless for Windows users.

After some poking around, I went with adding this line:

     (global-set-key [C-return] 'completion-at-point)

to my .emacs.d/init.el file. The question was, assuming I want completion bound to ctrl-return instead of
Alt-Tab, was this a reasonable way to do it?

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

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:
(Continue reading)

Dave Pawson | 9 Oct 2012 09:16
Picon
Gravatar

A better html mode?

http://web-mode.org/

A new mode for working with mixed {HTML, PHP, Java, JSP, ASPX,
JavaScript, CSS}.

-- 
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:
    emacs-nxml-mode-digest <at> yahoogroups.com 
    emacs-nxml-mode-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
(Continue reading)

Dmitry Gutov | 22 Sep 2012 02:13
Picon
Favicon
Gravatar

nXML and embedded code in templates

Hi all!

Like some, I'd like to be able to use nxml-mode for editing ERB
templates. Or EJS and JSP, they use similar syntax.

sgml-mode in Emacs already tries to recognize this type of tags, and
here's a few years old patch for xmltok.el that does something similar:

https://github.com/purcell/emacs.d/commit/a77629d6a3130d710386e0553a1cbb640797c7e3

What do you think of the goal? Should nXML be useful for these types of
files? Does the patch take the right approach?

--Dmitry

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

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:
(Continue reading)

garbage_goal | 20 Jul 2012 01:57
Picon
Favicon

Automatic Insertion of Required Elements and Attributes

Hi there,

I hope I am not posting a previously asked question, but I am not having much luck searching on this topic.

I've been a psgml user but want to switch to nxml since psgml broke with Emacs 24. One thing psgml does is automatically add required elements and attributes as you go along.

For example, if I were to insert a tag <compact-disc> which requires a "name" attribute and at least one "track" element, psgml would generate and insert the following fragment, placing my cursor between the quotes for the "name" element:

<compact-disc name="">
    <track></track>
</compact-disc>

Is there any way to make nxml behave similarly? I've found nxml will at least warn me if I am missing a required child element/attribute, but then I have to remember myself which child elements/attributes are required and begin typing them before I can take advantage of auto completion.

I'd appreciate it if anyone can point me in the right direction. Is there an existing feature I haven't found yet, a minor mode, perhaps some code I could find on the internet, do I have to write this myself?

Thanks!



__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
ingrid_schmidt@ymail.com | 2 Jul 2012 14:21
Picon

Installation Problem with Fedora 17

Hello,
I am a relatively unexperienced Linux/Fedora user. On Fedora 16 I once successfully installed Emacs with
the nXML ability working just fine, even after making it DITA-aware.
Now I installed Fedora 17, downloaded Emacs, and followed the instructions on
http://fedoraproject.org/wiki/How_to_use_Emacs_for_XML_editing, letter by letter. 

(Sideline question: I am not sure whether the yum shell used my rpm download or whether it performed an own
download from whereever appropriate...)

I thought I did everything right but what is not working is the display of Docbook-Elements when I press
CTRL-Enter within the <book>-element in the test file (as described on the a. m. Fedora web page).
Message: "C-return is undefined". 

I have repeatedly checked everything I was able to think of as a source of error (checking the .emacs file,
the schemas.xml, the existence of rnc files...). I could not find something similar with your search
function, so I am looking forward to hopefully receive hints and tips from somebody willing to support a
beginner in gaining experience.
Thanks a lot in advance!
Ingrid.

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

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:
    emacs-nxml-mode-digest <at> yahoogroups.com 
    emacs-nxml-mode-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

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

Stephen Corbesero | 30 May 2012 16:19

Trying to get my bearings

xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

Hello.

 

I am new to nxml-mode and this mailing list. 

 

I have some very general questions.

 

1.      What is the current development status of nxml-mode?  Is there a newer version than the one that is currently released as part of Emacs 23?

2.      Is this list an appropriate place to make some suggestions for feature enhancements and additions?

 

 

--

Stephen Corbesero, PAC

Synchronoss Technologies, Inc., Bethlehem, PA, USA

 



__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Jesse Alama | 18 May 2012 17:38
Picon
Favicon
Gravatar

validating xhtml entities

I like the way that nXML mode validates my XML documents on the fly.
It seems that concerning entities, though, there can be false
negatives (i.e., nXML says that the document is valid, but it is not).
For example, in XHTML, one can write, say

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <title>An XHTML 1.0 Strict standard template</title>
  </head>
  <body>
  <p>&nbsp;</p>
  </body>
  </html>

and this document is (correctly) judged to be valid.  Plugging in a
bogus entity

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <title>An XHTML 1.0 Strict standard template</title>
  </head>
  <body>
  <p>&bogus;</p>
  </body>
  </html>

is likewise judged to be valid, but this is not correct, at least
under the definition of "valid" that matters for my purposes (the
result needs to be valid XHTML -- validator.w3.org flags the bogus
entity as bad XHTML).

To verify entities in XHTML, one could just scan the document,
comparing every entity occurring inside it against a fixed list of
acceptable XHTML entities.  I would rather not code such a thing,
though, unless it's really necessary.  Judging from the documenation
(in the "DTDs" section of the nXML info docs), I gather that indeed
nXML does not care to "validate" entities in the sense I intend.  But
perhaps I'm wrong.

Thanks,

Jesse

--
Jesse Alama
http://centria.di.fct.unl.pt/~alama/

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

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:
    emacs-nxml-mode-digest <at> yahoogroups.com 
    emacs-nxml-mode-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

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

Tony Graham | 22 Feb 2012 14:16

Flymake+Jing for 'RNC-mode'

From http://inasmuch.as/2012/02/22/flymake-for-relax-ng-compact-syntax/

(require 'flymake)
(defun flymake-rnc-init ()
  (let* ((temp-file (flymake-init-create-temp-buffer-copy
		     'flymake-create-temp-inplace))
     	 (local-file (file-relative-name
		      temp-file
		      (file-name-directory buffer-file-name))))
    (list "jing" (list "-c" local-file))))
(add-to-list 'flymake-allowed-file-name-masks
      '(".+\\.rnc$"
	flymake-rnc-init
	flymake-simple-cleanup
	flymake-get-real-file-name))
(add-hook 'rnc-mode-hook
	  'flymake-mode)

Regards,

Tony Graham                                   tgraham <at> mentea.net
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL-FO and XSLT consulting, training and programming

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

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:
    emacs-nxml-mode-digest <at> yahoogroups.com 
    emacs-nxml-mode-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

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

Tony Graham | 14 Nov 2011 14:14

Imenu for `RNC-mode'

If you are using `rnc--mode' by David Rosenborg [1] when editing RNC
schemas, you may be interested in adding the following to your .emacs to
add a 'RNC' menu for locating named patterns, etc.

--------------------------------------------------------
(require 'rnc-mode)
(add-hook 'rnc-mode-hook
	  (lambda ()
	    (set-variable
	     'imenu-generic-expression
	     (list
	      (list nil "^\\([a-zA-Z][-a-zA-Z0-9._]*\\)\\s-*[&|]?=" 1)
	      (list "include"
"^include\\s-+['\"]\\([a-zA-Z][-a-zA-Z0-9._]*\\)['\"]" 1)
	      (list "namespace"
"^\\(default\\s-+\\)?namespace\\s-+\\([a-zA-Z][-a-zA-Z0-9._]*\\)\\s-*="
2)
	      (list "dataypes"
"^datatypes\\s-+\\([a-zA-Z][-a-zA-Z0-9._]*\\)\\s-*=" 1)))
	    (imenu-add-to-menubar "RNC")))
--------------------------------------------------------

Regards,

Tony Graham                                   tgraham <at> mentea.net
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL-FO and XSLT consulting, training and programming

[1] http://www.pantor.com/download.html

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

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:
    emacs-nxml-mode-digest <at> yahoogroups.com 
    emacs-nxml-mode-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

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


Gmane