Questions tagged [nxml]

12 questions
22
votes
3 answers

Folding tags in emacs nxml-mode

The interwebs are full of ancient doctrines for folding code in the Glorious Emacs Editor. Among them are folding.el, outline-minor-mode, and fold-dwim.el. Alas, my poor unenlightened mind cannot write the necessary elisp configuration. Please help…
Natan Yellin
  • 6,063
  • 5
  • 38
  • 57
13
votes
1 answer

XSLT 2.0 support in emacs nXML mode

I'm editing an XSLT 2.0 document in emacs and get an "attribute value invalid" error on the version number, i.e., If I replace the "2.0" with "1.0" I don't get an…
Marc Stober
  • 10,237
  • 3
  • 26
  • 31
6
votes
2 answers

How to use emacs nxml mode validate certain xml file using xsd schema?

I have installed GNU emacs 23.2.1, and nxml-mode-20041004. I want to validate an xml file using an xsd file, but the emacs complain No schema loader available for file extension `xsd' How could I make this loader for xsd file extension? Thanks for…
xjtuzyc
  • 61
  • 1
  • 2
3
votes
1 answer

Differences between nxml-mode and nxhtml-mode?

I installed nxml-mode and then nxhtml-mode (and they look great, real-time validation right inside my favorite editor is just sweet). I understand that an XHTML file is an XML file and so I can use "just" nxml-mode to edit the XHTML. But I'm a bit…
Cedric Martin
  • 5,945
  • 4
  • 34
  • 66
3
votes
2 answers

nXML mode for web development

Is it possible to make nXML mode more convenient for web development? Specifically: Treat bits as if they didn't exist Don't issue "Unknown element" warnings when the XML schema is unknown I'd rather not use a multi-mode…
sabof
  • 8,062
  • 4
  • 28
  • 52
3
votes
1 answer

Function similar to sgml-tag for the nXml mode with DocBook tags

The Emacs function sgml-tag is just what I need for my DocBook editing. However, I edit DocBook in nXml mode and I can't seem to find an alternative. sgml-tag still works fine, but does not offer XML tags. My use case is: highlight a region, press a…
mart1n
  • 5,969
  • 5
  • 46
  • 83
1
vote
0 answers

How do I parse an nxml file?

I have no Idea about nxml format although I know how to parse xml files. When I open this file in sublime it appears something like this. I would really appreciate if someone could guide me on python/java parser.
Schrodinger
  • 190
  • 1
  • 1
  • 7
1
vote
1 answer

Make nXML open the same schema file every time?

I only use nXML for authoring docbook documents, and I would like to tell nxml to always load C:\docbook-5.0\rng\docbookxi.rnc How do I do this?
Mica
  • 18,501
  • 6
  • 46
  • 43
1
vote
0 answers

emacs nXML-mode hide subheadings error: Not in section

Emacs nXML-mode keeps saying "byte-code: Not in section" error message when I try to run nxml-hide-subheadings, I'm not sure why. The formatting is fine, when I run the validation command, it tells me "No more errors". I also updated both…
sudo
  • 647
  • 2
  • 7
  • 19
1
vote
0 answers

Indentation in nxml-mode in GNU Emacs

Here is an example how XEmacs makes indentation in xml-mode of a xhtml document: in nxml-mode in GNU Emacs it looks like this: This is…
iberion
  • 33
  • 3
0
votes
0 answers

How to extracting values looping over nested .nxml files in R

I am using pubmed data in .nxml format I have several categorized folders by topic (each contains 100-300 .nxml files). I wrote the following code to extract the abstarct from one single file and save it as a data frame: library(XML) doc <-…
0
votes
1 answer

Emacs - nxml-mode causes memory overflow

It seems, that nxhtml-mode is the only really interesting solution to editing mixed html-files in emacs (with snippets of php, css etc.); that is why I once more try to get an answer via stackoverflow, knowing that the information I can provide is…
mbutz
  • 11
  • 2