unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs as an XML editor
@ 2011-02-22 14:46 Giulio Petrucci
  2011-02-22 16:23 ` Le Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Giulio Petrucci @ 2011-02-22 14:46 UTC (permalink / raw)
  To: help-gnu-emacs

Hi there,

I'm searching a way to use Emacs as an xml editor. What I need is:
1. a bit of syntax highlight
2. validation against an XSD scheme
3. some code completion if the XSD scheme is provided
4. the possibility to run some XPath queries on the document
Please, keep in mind that I work mostly on WinXP. :-)

Thanks in advance,
Giulio

-- 




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: emacs as an XML editor
  2011-02-22 14:46 emacs as an XML editor Giulio Petrucci
@ 2011-02-22 16:23 ` Le Wang
       [not found] ` <mailman.1.1298391825.21497.help-gnu-emacs@gnu.org>
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Le Wang @ 2011-02-22 16:23 UTC (permalink / raw)
  To: Giulio Petrucci; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 491 bytes --]

nxml, convert your xsd to rng.

On Tue, Feb 22, 2011 at 10:46 PM, Giulio Petrucci <sisisi@nonono.boh> wrote:

> Hi there,
>
> I'm searching a way to use Emacs as an xml editor. What I need is:
> 1. a bit of syntax highlight
> 2. validation against an XSD scheme
> 3. some code completion if the XSD scheme is provided
> 4. the possibility to run some XPath queries on the document
> Please, keep in mind that I work mostly on WinXP. :-)
>
> Thanks in advance,
> Giulio
>
> --
>
>
>


-- 
Le

[-- Attachment #2: Type: text/html, Size: 789 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: emacs as an XML editor
       [not found] ` <mailman.1.1298391825.21497.help-gnu-emacs@gnu.org>
@ 2011-02-22 16:28   ` Giulio Petrucci
  2011-02-22 16:48     ` Le Wang
  0 siblings, 1 reply; 10+ messages in thread
From: Giulio Petrucci @ 2011-02-22 16:28 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Le Wang,

first of all thank you for your quick reply.

On 2/22/2011 5:23 PM, Le Wang wrote:
> nxml, convert your xsd to rng.

Uhm... I'm trying it but when I open an .xsd scheme I have a message in 
the minibuffer saying: "No scheme loader available for file extension 
'xsd'".
I know I'm doing something wrong but I can't get *what* (as I'm quite a 
n00b). :-)

thanks,
Giulio

-- 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: emacs as an XML editor
  2011-02-22 16:28   ` Giulio Petrucci
@ 2011-02-22 16:48     ` Le Wang
  2011-02-22 21:12       ` mcundiff1
  0 siblings, 1 reply; 10+ messages in thread
From: Le Wang @ 2011-02-22 16:48 UTC (permalink / raw)
  To: Giulio Petrucci; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 808 bytes --]

I don't work with nxml very often, but see here:
http://stackoverflow.com/questions/917337/schema-sensitive-editing-in-emacs-based-on-w3c-xml-schema-not-rng

<http://stackoverflow.com/questions/917337/schema-sensitive-editing-in-emacs-based-on-w3c-xml-schema-not-rng>Nxml
only understands rng schema.

On Wed, Feb 23, 2011 at 12:28 AM, Giulio Petrucci <sisisi@nonono.boh> wrote:

> Hi Le Wang,
>
> first of all thank you for your quick reply.
>
>
> On 2/22/2011 5:23 PM, Le Wang wrote:
>
>> nxml, convert your xsd to rng.
>>
>
> Uhm... I'm trying it but when I open an .xsd scheme I have a message in the
> minibuffer saying: "No scheme loader available for file extension 'xsd'".
> I know I'm doing something wrong but I can't get *what* (as I'm quite a
> n00b). :-)
>
> thanks,
> Giulio
>
> --
>



-- 
Le

[-- Attachment #2: Type: text/html, Size: 1428 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: emacs as an XML editor
  2011-02-22 16:48     ` Le Wang
@ 2011-02-22 21:12       ` mcundiff1
  0 siblings, 0 replies; 10+ messages in thread
From: mcundiff1 @ 2011-02-22 21:12 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]

nxml does not understand xsd schemas or rng schemas, only rnc (relaxng compact syntax) so you need to convert whatever schema you have to rnc. That done, emacs makes a good xml editor. 

Morgan 


----- Original Message ----- 
From: "Le Wang" <l26wang@gmail.com> 
To: "Giulio Petrucci" <sisisi@nonono.boh> 
Cc: help-gnu-emacs@gnu.org 
Sent: Tuesday, February 22, 2011 11:48:15 AM 
Subject: Re: emacs as an XML editor 

I don't work with nxml very often, but see here: http://stackoverflow.com/questions/917337/schema-sensitive-editing-in-emacs-based-on-w3c-xml-schema-not-rng 


Nxml only understands rng schema. 


On Wed, Feb 23, 2011 at 12:28 AM, Giulio Petrucci <sisisi@nonono.boh> wrote: 


Hi Le Wang, 

first of all thank you for your quick reply. 


On 2/22/2011 5:23 PM, Le Wang wrote: 


nxml, convert your xsd to rng. 

Uhm... I'm trying it but when I open an .xsd scheme I have a message in the minibuffer saying: "No scheme loader available for file extension 'xsd'". 
I know I'm doing something wrong but I can't get *what* (as I'm quite a n00b). :-) 

thanks, 
Giulio 

-- 



-- 
Le 

[-- Attachment #2: Type: text/html, Size: 2078 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: emacs as an XML editor
  2011-02-22 14:46 emacs as an XML editor Giulio Petrucci
  2011-02-22 16:23 ` Le Wang
       [not found] ` <mailman.1.1298391825.21497.help-gnu-emacs@gnu.org>
@ 2011-02-23 18:40 ` Andreas Röhler
       [not found] ` <mailman.4.1298486230.9795.help-gnu-emacs@gnu.org>
  2011-03-06 18:33 ` Steinar Bang
  4 siblings, 0 replies; 10+ messages in thread
From: Andreas Röhler @ 2011-02-23 18:40 UTC (permalink / raw)
  To: help-gnu-emacs

Am 22.02.2011 15:46, schrieb Giulio Petrucci:
> Hi there,
>
> I'm searching a way to use Emacs as an xml editor. What I need is:
> 1. a bit of syntax highlight
> 2. validation against an XSD scheme
> 3. some code completion if the XSD scheme is provided
> 4. the possibility to run some XPath queries on the document
> Please, keep in mind that I work mostly on WinXP. :-)
>
> Thanks in advance,
> Giulio
>

have a look at

http://www.emacswiki.org/emacs/PsgmlMode

also don't miss this:

http://sourceforge.net/projects/xslide

HTH

Andreas



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: emacs as an XML editor
       [not found] ` <mailman.4.1298486230.9795.help-gnu-emacs@gnu.org>
@ 2011-02-25  9:16   ` Giulio Petrucci
  2011-02-25 15:59     ` Andreas Röhler
       [not found]     ` <mailman.3.1298649372.23031.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 10+ messages in thread
From: Giulio Petrucci @ 2011-02-25  9:16 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Andreas,

On 2/23/2011 7:40 PM, Andreas Röhler wrote:
> have a look at
> http://www.emacswiki.org/emacs/PsgmlMode

I already know the PsgmlMode but... I still couldn't use it in a 
productive way. :-) I think it's a generale issue about every emacs 
mode: the first "step" in the learning curve is very hard and every 
documentation you may found seems to speak to an expert user. Maybe I 
need just a little patience... ;-)

Thanks,
Giulio

-- 






^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: emacs as an XML editor
  2011-02-25  9:16   ` Giulio Petrucci
@ 2011-02-25 15:59     ` Andreas Röhler
       [not found]     ` <mailman.3.1298649372.23031.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Andreas Röhler @ 2011-02-25 15:59 UTC (permalink / raw)
  To: help-gnu-emacs

Am 25.02.2011 10:16, schrieb Giulio Petrucci:
> Hi Andreas,
>
> On 2/23/2011 7:40 PM, Andreas Röhler wrote:
>> have a look at
>> http://www.emacswiki.org/emacs/PsgmlMode
>
> I already know the PsgmlMode but... I still couldn't use it in a
> productive way. :-) I think it's a generale issue about every emacs
> mode: the first "step" in the learning curve is very hard and every
> documentation you may found seems to speak to an expert user. Maybe I
> need just a little patience... ;-)
>
> Thanks,
> Giulio
>

yes, the beginning might be hard, remember that well.... :-)

Maybe tell what you want to do task by task, so we may see which command 
to use, how to proceed resp. where and why a stop occurs.


Andreas

--
https://code.launchpad.net/~a-roehler/python-mode/python-mode-components
https://code.launchpad.net/s-x-emacs-werkstatt/




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: emacs as an XML editor
       [not found]     ` <mailman.3.1298649372.23031.help-gnu-emacs@gnu.org>
@ 2011-02-28 18:11       ` Giulio Petrucci
  0 siblings, 0 replies; 10+ messages in thread
From: Giulio Petrucci @ 2011-02-28 18:11 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Andreas,

On 2/25/2011 4:59 PM, Andreas Röhler wrote:
> yes, the beginning might be hard, remember that well.... :-)

Not only the beginning. :-(

> Maybe tell what you want to do task by task, so we may see which command
> to use, how to proceed resp. where and why a stop occurs.

Nothing special, actually.
- Open an XML file
- use an XSD scheme file to validate the document and have some 
intelli-sense support.

I'm trying to use trang (but it doesn't works for xsd to rng conversion) 
and xsdtorngconverter (but it just freak the scheme out). :-(

thanks,
Giulio

-- 



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: emacs as an XML editor
  2011-02-22 14:46 emacs as an XML editor Giulio Petrucci
                   ` (3 preceding siblings ...)
       [not found] ` <mailman.4.1298486230.9795.help-gnu-emacs@gnu.org>
@ 2011-03-06 18:33 ` Steinar Bang
  4 siblings, 0 replies; 10+ messages in thread
From: Steinar Bang @ 2011-03-06 18:33 UTC (permalink / raw)
  To: help-gnu-emacs

>>>>> Giulio Petrucci <sisisi@nonono.boh>:

> Hi there,
> I'm searching a way to use Emacs as an xml editor. What I need is:
> 1. a bit of syntax highlight

nxml-mode can do that.
  http://www.thaiopensource.com/nxml-mode/

Part of emacs24, I think.  Also available from ELPA
  http://tromey.com/elpa/

(ELPA install works on windows emacs as well)

> 2. validation against an XSD scheme

Nope.  nnxml-mode only does Relax-NG (actually RNC, ie. the "compact"
notation).

But an utility named trang can convert from XSD to RNG
  http://www.thaiopensource.com/relaxng/trang.html

(trang is written in Java and so should work on windows)

Note that if you are writing the schema yourself, then writing a schema
in Relax-NG is a _lot_ nicer than writing an XSD schema.  And you can
use trang to create an xsd schema from the Relax-NG schema.

> 3. some code completion if the XSD scheme is provided

Nope.  But code competion against the RNG schema is provided.

> 4. the possibility to run some XPath queries on the document

Nope.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-03-06 18:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-22 14:46 emacs as an XML editor Giulio Petrucci
2011-02-22 16:23 ` Le Wang
     [not found] ` <mailman.1.1298391825.21497.help-gnu-emacs@gnu.org>
2011-02-22 16:28   ` Giulio Petrucci
2011-02-22 16:48     ` Le Wang
2011-02-22 21:12       ` mcundiff1
2011-02-23 18:40 ` Andreas Röhler
     [not found] ` <mailman.4.1298486230.9795.help-gnu-emacs@gnu.org>
2011-02-25  9:16   ` Giulio Petrucci
2011-02-25 15:59     ` Andreas Röhler
     [not found]     ` <mailman.3.1298649372.23031.help-gnu-emacs@gnu.org>
2011-02-28 18:11       ` Giulio Petrucci
2011-03-06 18:33 ` Steinar Bang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).