david.pawson | 1 Mar 2004 11:28
Picon

schema location file.

Fairly regular use of the schema location file results in such as

  <uri resource="NISO/2004/relax/test.xml"
uri="NISO/2004/relax/dtbook.rnc"/>
  <uri resource="NISO/2004/relax/test.xml"
uri="NISO/2004/relax/dtbook.rnc"/>
  <uri resource="NISO/2004/relax/test.xml"
uri="NISO/2004/relax/dtbook.rnc"/>
  <uri resource="NISO/2004/relax/test.xml"
uri="NISO/2004/relax/dtbook.rnc"/>
  <uri resource="NISO/2004/relax/test.xml"
uri="NISO/2004/relax/dtbook.rnc"/>
  <uri resource="NISO/2004/relax/test.xml"
uri="NISO/2004/relax/dtbook.rnc"/>
  <uri resource="NISO/2004/relax/test.xml"
uri="NISO/2004/relax/dtbook.rnc"/>

I.e. each time I'm prompted, do you want to add this to the schema location
file I say yes, and the same data is repeated.

An identity transform with

 <xsl:template match="r:uri[ <at> resource=preceding::r:uri/ <at> resource]"
  xmlns:r="http://thaiopensource.com/ns/locating-rules/1.0"/>

cleans it up reasonably, without resolving the problem.

Is it possible to remove this redundancy please James?

Regards DaveP.
(Continue reading)

ghthaker | 1 Mar 2004 22:49

is it possible to reload the schema?

nXML mode is great. Thanks.

My normal usage mode is to load and .xml file and have it associated
with a schema (.rnc file.) I find that often I need to go and edit
.rnc file and thus make changes to my schema. I notice that the schema
changes do not take effect unless one kills the .xml buffer and
reloads it. Is there a key binding to quick re-read the schema file?

Also, is it possible to have keybinding that can move forward and
entire  element? C-M-f moves forward just a <...> amount at a time. I
am looking for a way to mark, highlight, move-past, kill, entire
elements such as:

<begin>
  <subelement> foo </subelement>
</begin>

Thanks for any comments.

Gautam

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/2U_rlB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links
(Continue reading)

ghthaker | 1 Mar 2004 23:07

is there a mode that display ".rnc" files in color?

is there a mode that display ".rnc" files in color? It would be nice
if there was a good mode for editing/coloring .rnc files; i must not
be aware of it probably.

Gautam

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/2U_rlB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/emacs-nxml-mode/

<*> 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/

DuCharme, Bob (LNG-CHO | 1 Mar 2004 23:13
Favicon

RE: is there a mode that display ".rnc" files i n color?

>is there a mode that display ".rnc" files in color? It would be nice
>if there was a good mode for editing/coloring .rnc files; i must not
>be aware of it probably.
 
See "RNC Emacs Mode" at http://www.pantor.com/download.html.
 
Bob
ghthaker | 1 Mar 2004 23:30

Re: is there a mode that display ".rnc" files i n color?

--- In emacs-nxml-mode <at> yahoogroups.com, "DuCharme, Bob (LNG-CHO)"
<bob.ducharme <at> l...> wrote:
> >is there a mode that display ".rnc" files in color? It would be nice
> >if there was a good mode for editing/coloring .rnc files; i must not
> >be aware of it probably.
>  
> See "RNC Emacs Mode" at http://www.pantor.com/download.html
> <http://www.pantor.com/download.html> .
>  
> Bob

Thanks. This works, but when compiling rnc-mode.el file i do get the
error:

Compiling file /home/gthaker/elisp/rnc-mode.el at Mon Mar  1 17:21:56 2004
  ** The function `forward-char-command' is not known to be defined.

perhaps this should be "forward-char" only?

Gautam

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/emacs-nxml-mode/

<*> 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/

Josh Sled | 1 Mar 2004 23:37

Re: is it possible to reload the schema?

On Mon, Mar 01, 2004 at 09:49:13PM -0000, ghthaker wrote:

|    My normal usage mode is to load and .xml file and have it associated
|    with a schema (.rnc file.) I find that often I need to go and edit
|    .rnc file and thus make changes to my schema. I notice that the schema
|    changes do not take effect unless one kills the .xml buffer and
|    reloads it. Is there a key binding to quick re-read the schema file?

C-c C-s [rng-c-set-schema]

|    Also, is it possible to have keybinding that can move forward and
|    entire  element? C-M-f moves forward just a <...> amount at a time. I
|    am looking for a way to mark, highlight, move-past, kill, entire
|    elements such as:

ESC C-n [nxml-forward-element]

|    Thanks for any comments.
|    Gautam

...jsled

--

-- 
http://www.asynchronous.org/ - `no=jsled; spam=asynchronous.org; echo ${no} <at> ${spam}`
# A: Because it breaks the flow of normal conversation.
# Q: Why don't we put the response before the request?

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/emacs-nxml-mode/

<*> 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/

Gautam H Thaker | 1 Mar 2004 23:50

Re: is it possible to reload the schema?


Josh Sled wrote:
> On Mon, Mar 01, 2004 at 09:49:13PM -0000, ghthaker wrote:
> 
> |    My normal usage mode is to load and .xml file and have it associated
> |    with a schema (.rnc file.) I find that often I need to go and edit
> |    .rnc file and thus make changes to my schema. I notice that the schema
> |    changes do not take effect unless one kills the .xml buffer and
> |    reloads it. Is there a key binding to quick re-read the schema file?
> 
> C-c C-s [rng-c-set-schema]

Unless I am missing something this requires the schema file to be 
respecified. I just wish to tell nxml mode that the schema file that has 
been associated with this .xml file has changed.

> 
> |    Also, is it possible to have keybinding that can move forward and
> |    entire  element? C-M-f moves forward just a <...> amount at a time. I
> |    am looking for a way to mark, highlight, move-past, kill, entire
> |    elements such as:
> 
> ESC C-n [nxml-forward-element]

yes, this work, Thanks.

Gautam

> 
> |    Thanks for any comments.
> |    Gautam
> 
> ...jsled
> 

-- 
Gautam H. Thaker
Distributed Processing Lab; Lockheed Martin Adv. Tech. Labs
3 Executive Campus; Cherry Hill, NJ 08002
856-792-9754, fax 856-792-9925  email: gthaker <at> atl.lmco.com

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/2U_rlB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/emacs-nxml-mode/

<*> 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/

DuCharme, Bob (LNG-CHO | 2 Mar 2004 00:10
Favicon

RE: Re: is there a mode that display ".rnc" fil es i n color?

Yes. I told them about it, but I guess they didn't fix it in the distribution.
 
Bob
 
-----Original Message-----
From: ghthaker [mailto:gthaker <at> atl.lmco.com]
Sent: Monday, March 01, 2004 5:30 PM
To: emacs-nxml-mode <at> yahoogroups.com
Subject: [emacs-nxml-mode] Re: is there a mode that display ".rnc" files i n color?

--- In emacs-nxml-mode <at> yahoogroups.com, "DuCharme, Bob (LNG-CHO)"
<bob.ducharme <at> l...> wrote:
> >is there a mode that display ".rnc" files in color? It would be nice
> >if there was a good mode for editing/coloring .rnc files; i must not
> >be aware of it probably.

> See "RNC Emacs Mode" at http://www.pantor.com/download.html
> <http://www.pantor.com/download.html> .

> Bob

Thanks. This works, but when compiling rnc-mode.el file i do get the
error:

Compiling file /home/gthaker/elisp/rnc-mode.el at Mon Mar  1 17:21:56 2004
  ** The function `forward-char-command' is not known to be defined.

perhaps this should be "forward-char" only?

Gautam



david.pawson | 2 Mar 2004 15:23
Picon

internal error

apply: 
Internal error at 3914 in rng-validation-mode. Wrong type argument: arrayp,
0
Region saved

This is shown in the message window,
Latest nxml, emacs 21.3

Jing validates the file OK,
convert to rnc format,
C-c C-s set the schema and it produces the error message.

Moderately large, 90K schema, XHTML based, including comments.

Worked fine until the table model was included!

Regards DaveP.

**** snip here *****

- 
DISCLAIMER: 

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged. If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system. 

RNIB endeavours to ensure that emails and any attachments generated by 
its staff are free from viruses or other contaminants. However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments. 

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent 
those of RNIB. 

RNIB Registered Charity Number: 226227 

Website: http://www.rnib.org.uk 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/emacs-nxml-mode/

<*> 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/

DuCharme, Bob (LNG-CHO | 2 Mar 2004 21:26
Favicon

RE: is it possible to reload the schema?

>>> C-c C-s [rng-c-set-schema]
 
>Unless I am missing something this requires the schema file to be
>respecified. I just wish to tell nxml mode that the schema file that has
>been associated with this .xml file has changed.
 
I'll second the request: something that does for the schema in memory what the Emacs revert-buffer does for the file in memory (that is, reloads it from the disk) would make the schema tweak-test cycle go faster.
 
Bob
 

Gmane