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

(Continue reading)

Dave Pawson | 2 Jul 2012 15:07
Picon
Gravatar

Re: Installation Problem with Fedora 17

On 2 July 2012 13:21, ingrid_schmidt <at> ymail.com
<ingridschmidt.ka <at> gmail.com> wrote:
> 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.

Due care. nxml-mode has been partially hi-jacked by the xhtml users.
It may be easier to install nxml-mode from
http://www.thaiopensource.com/nxml-mode/  then link it to emacs from there?
e.g. in .emacs

(setq msl "/files/emacs/site-lisp/")  Or wherever you keep your nxml-mode files
then
(add-to-list 'load-path (concat msl "nxml-mode"))

Then try
M-x nxml-mode

For docbook install the rnc files from
http://www.docbook.org/xml/5.0/

You then need to set up the association

Read the file association stuff that comes with nxml-mode?
 The function is rng-set-schema-file
to bring in the docbook schema.

There is more, but that may give you a start.
(Continue reading)

Steinar Bang | 15 Jul 2012 10:12
Picon
Picon
Favicon

Re: Installation Problem with Fedora 17

>>>>> "ingrid_schmidt <at> ymail.com" <ingridschmidt.ka <at> gmail.com>:

> 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.

Hm... how did you go about to create the RNC file for DITA?  I remember
having a lot of problems with that back in 2006 or 2007 or thereabouts.

> 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.

Hm... it would be more helpful if you could post your actual config
files and list the exact steps you did.  Going through that exercise may
show you where you went wrong, if that's the case.

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

No idea.  I'm a debian user. :-)

> 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".

It does sound like you're not in nxml-mode.  What does the mode line
(the line with inverted text colours) say about what mode you're in?
The mode is listed inside "[(" and ")]", eg. like so "[(Fundamental)]".
(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

__,_._,___
Dave Pawson | 20 Jul 2012 06:30
Picon
Gravatar

Re: Automatic Insertion of Required Elements and Attributes



On 20 July 2012 00:57, garbage_goal <clockyg <at> yahoo.com> wrote:


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?



http://dpawson.co.uk/relaxng/nxml/nxml-mode.html is an html version of the help file that comes
with nxml-mode.

Look for schema locating files.
1. Convert your schema to relax NG, rnc format.
2. Add it to the schema list using one of the methods stated,
or use the commands to specify the schema for your file.
3. Then use (not dissimilar to psgml-mode) 

and nxml-mode will show the list of elements valid at that point.
It will not automatically insert required elements.
If you want that, it's up to you.

HTH

 

--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk



__._,_.___

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

__,_._,___
garbage_goal | 25 Jul 2012 06:30
Picon
Favicon

Re: Automatic Insertion of Required Elements and Attributes

Alright, I wanted to make sure I didn't go reinventing any wheels. Appreciate your response - thanks!

--- In emacs-nxml-mode <at> yahoogroups.com, Dave Pawson <dave.pawson <at> ...> wrote:
>
> On 20 July 2012 00:57, garbage_goal <clockyg <at> ...> wrote:
> 
> >
> >
> > 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?
> >
> >
> >
> http://dpawson.co.uk/relaxng/nxml/nxml-mode.html is an html version of the
> help file that comes
> with nxml-mode.
> 
> Look for schema locating files.
> 1. Convert your schema to relax NG, rnc format.
> 2. Add it to the schema list using one of the methods stated,
> or use the commands to specify the schema for your file.
> 3. Then use (not dissimilar to psgml-mode)
> <
> 
> and nxml-mode will show the list of elements valid at that point.
> It will not automatically insert required elements.
> If you want that, it's up to you.
> 
> HTH
> 
> 
> 
> -- 
> 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:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

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


Gmane