drkm | 4 Oct 2005 10:36
Picon
Favicon

"Range striding over charsets"

  Hi

  I just had the following message from nXML:

    Internal error in rng-validate-mode triggered at buffer
    position 148. Invalid regexp: "Range striding over charsets".

I have the following minimal example:

    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:strip-space elements="fo:table-cell"/>
    </xsl:stylesheet>

(position 148 is at the end of the line with the strip-space element).
 I don't understand this.  Does the problem arise with your
installation?

--drkm

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
(Continue reading)

Thomas Haselberger | 5 Oct 2005 08:50
Picon

Re: "Range striding over charsets"

"drkm" <darkman_spam <at> yahoo.fr> writes:

>   Hi
>
>   I just had the following message from nXML:
>
>     Internal error in rng-validate-mode triggered at buffer
>     position 148. Invalid regexp: "Range striding over charsets".
>
> I have the following minimal example:
>
>     <?xml version="1.0"?>
>     <xsl:stylesheet version="1.0"
>         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>       <xsl:strip-space elements="fo:table-cell"/>
>     </xsl:stylesheet>
>
> (position 148 is at the end of the line with the strip-space element).
>  I don't understand this.  Does the problem arise with your
> installation?

no. version 20041004 here.

tom

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

(Continue reading)

drkm | 5 Oct 2005 11:30
Picon
Favicon

Re: "Range striding over charsets"

Thomas Haselberger wrote:

> "drkm" writes:

> >     <?xml version="1.0"?>
> >     <xsl:stylesheet version="1.0"
> >         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> >       <xsl:strip-space elements="fo:table-cell"/>
> >     </xsl:stylesheet>

> >  I don't understand this.  Does the problem arise with your
> > installation?

> no. version 20041004 here.

  Here too.  But I didn't explain the whole thing, sorry.  After
pasting the text above in a fresh buffer, you have to be in validation
mode ('C-c C-v' if you don't see 'Valid' nor 'Invalid' in the mode
bar) and associate the buffer with the XSLT schema ('C-c C-s C-t XSLT
<RET>' while in validation mode).

  My Emacs is: GNU Emacs 22.0.50.2 (i386-mingw-nt5.1.2600) of
2005-04-17 on LAPTOP.

  I didn't find something related in my config.  If you can't
reproduce the problem, I'll investiguate further (like installing a
newer CVS Emacs).

  Thanks for your help,

(Continue reading)

sunil bhushan | 11 Oct 2005 07:44
Picon
Favicon

schema locating file is not ignoring comments

Hi, 
  I have a schema locating file schemas.xml. I am
getting the following error when that file is being
loaded. 

'File mode specification error: (error "XML
declaration not at beginning of file at position'

This is because, I have a few lines of comments
enclosed in "<!-- -->" before the first line.  It will
be good for xml schema to ignore comments, if present.

Btw, we have recently configured nxml in our env. It's
a pretty useful stuff with many good features. 

Thanks,
Sunil

		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
(Continue reading)

Vincent Lefevre | 11 Oct 2005 13:26

Re: schema locating file is not ignoring comments

On 2005-10-10 22:44:35 -0700, sunil bhushan wrote:
> Hi, 
>   I have a schema locating file schemas.xml. I am
> getting the following error when that file is being
> loaded. 
> 
> 'File mode specification error: (error "XML
> declaration not at beginning of file at position'
> 
> This is because, I have a few lines of comments
> enclosed in "<!-- -->" before the first line.  It will
> be good for xml schema to ignore comments, if present.

No, comments should not be ignored, but processed as comments.
It is an error to have a comment before the XML declaration:
the XML declaration must always come first in an XML document.

Why not put your comments just after the XML declaration?

--

-- 
Vincent Lefèvre <vincent <at> vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
(Continue reading)

drkm | 12 Oct 2005 01:20
Picon
Favicon

Re: schema locating file is not ignoring comments

Vincent Lefevre writes:

> It is an error to have a comment before the XML declaration:
> the XML declaration must always come first in an XML document.

  Even before white spaces.  I think it's a common mistake.

--drkm

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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/

Sunil Raja Bhushan | 19 Oct 2005 07:22
Picon
Favicon

Re: schema locating file is not ignoring comments

> No, comments should not be ignored, but processed as comments.
> It is an error to have a comment before the XML declaration:
> the XML declaration must always come first in an XML document.
> 
> Why not put your comments just after the XML declaration?

    We have our own xml document format. And we use Perl CPAN's
XML::Parser module with a wrapper around it to parse files. That
module parses even if we have comments on the first line. Actually, it
is clearcase source control's version information which is in
comments. It will be set automatically for all files. We can, of
course, disable it for this file but just wanted to find out if it is
invalid. We do not have a declaration like this:
<?xml version="1.0"?>
   We have our own start tag. Just for information.

   I checked w3c site for xml standard. I found this about comments. 
http://www.w3.org/TR/2000/REC-xml-20001006#sec-comments
   It does not specifically say comments should not appear before
declaration. "They can appear within document declaration at places
allowed by grammar" Is there any standard which says comments should
not appear on the first line? If so, we would like to remove header
information from all our xml files. 

   My apologies for this late reply. I was out on vacation and also I
had some other work. 

Sunil

------------------------ Yahoo! Groups Sponsor --------------------~--> 
(Continue reading)

Sunil Raja Bhushan | 19 Oct 2005 07:25
Picon
Favicon

How to customize key combinations?

Hi all, 
      Is there a way to have our own custom key combinations for
nxml-mode. I want to have TAB for completion instead of C-<RET>. Is
there any hook which allows us to define our own key combinations
overriding the default values? 

Sunil 

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/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/

drkm | 19 Oct 2005 10:06
Picon
Favicon

RE: How to customize key combinations?

Sunil Raja Bhushan wrote:

>       Is there a way to have our own custom key combinations for
> nxml-mode. I want to have TAB for completion instead of C-<RET>.

  This should help (in your ~/.emacs.el):

    (add-hook 'nxml-mode-hook
              (lambda ()
                (interactive)
                (local-set-key (kbd "<TAB>") 'nxml-complete)))

  You can see (info "(emacs)Hooks"), (info "(elisp)Hooks")
and (info "(emacs)Rebinding") for details.

--drkm

	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

(Continue reading)

Vincent Lefevre | 19 Oct 2005 10:27

Re: Re: schema locating file is not ignoring comments

On 2005-10-19 05:22:21 -0000, Sunil Raja Bhushan wrote:
> > No, comments should not be ignored, but processed as comments.
> > It is an error to have a comment before the XML declaration:
> > the XML declaration must always come first in an XML document.
> > 
> > Why not put your comments just after the XML declaration?
> 
>     We have our own xml document format.

Then you can't call it XML, since it's no longer XML.

> And we use Perl CPAN's XML::Parser module with a wrapper around it
> to parse files. That module parses even if we have comments on the
> first line.

If the comments are followed by an XML declaration, then this module
is buggy. For instance, xmllint does report an error:

parser error : XML declaration allowed only at the start of the document

and so does xmlwf:

xml declaration not at start of external entity

> Actually, it is clearcase source control's version information which
> is in comments. It will be set automatically for all files. We can,
> of course, disable it for this file but just wanted to find out if
> it is invalid. We do not have a declaration like this:
> <?xml version="1.0"?>

(Continue reading)


Gmane