Chris Lawrence | 4 Feb 2005 22:45

Fwd: Bug#293557: nxml-mode: id not recognized as a valid attribute for the html element


Yes, the XHTML 1.0 DTD says the id attribute is permissible in <html>
elements (though, interestingly enough, HTML 4.01 doesn't permit its
use there!):

http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_html

Looks like a simple tweak to one of the xhtml*.rnc files.

Chris

---------- Forwarded message ----------
From: Vincent Lefevre <vincent <at> vinc17.org>
Date: Fri, 4 Feb 2005 12:05:52 +0100
Subject: Bug#293557: nxml-mode: id not recognized as a valid attribute
for the html element
To: Debian Bug Tracking System <submit <at> bugs.debian.org>

Package: nxml-mode
Version: 20041004-4
Severity: normal

Consider the following XHTML file:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="index.en">
<head><title>.</title></head>
<body>
(Continue reading)

DuCharme, Bob (LNG-CHO | 7 Feb 2005 17:38
Favicon

use of xslt.rnc outside of nxml?

While the RNC schema for XSLT is packaged as part of the nxml distribution, there's no reason not to use it elsewhere. Can anyone tell me examples of its use outside of Emacs, e.g. for validation of stylesheets as part of a production system or to drive other RNG-aware editors such as Oxygen?
 
thanks,
 
Bob DuCharme   www.snee.com/bob       <bob <at>  
snee.com> weblog on linking-related topics:
http://www.oreillynet.com/pub/au/1191
 
 
arobert3434 | 9 Feb 2005 19:17
Favicon

Reason doesn't work in Emacs 20?


Hi, for unrelated reasons, I'm currently limited to Emacs 20 and am missing nxml mode.  I 
was under the impression that most changes from Emacs 20 to 21 had to do with 
rendering, not basic lisp facilities.  Thus, I was wondering if anyone knows why nxml mode 
is said not to work with Emacs 20?

I might be willing to try a back-port if it is something that can be worked around or done 
without with no more than a minor loss in functionality..

 
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/

Vincent Lefevre | 15 Feb 2005 14:49

Duplicate definition of start: inconsistent behavior


Is there any reason why when I'm doing in a .rnc file:

default namespace = ""
include "xhtml/xhtml.rnc"
start = ...

nXML complains with an error "Duplicate definition of start",
while when I'm doing:

default namespace = ""
include "docbook/docbook.rnc"
start = ...

nXML doesn't complain at all?

Note: on my machine, docbook and xhtml are symlinks to
/usr/share/emacs/site-lisp/nxml-mode/schema/ (I don't know if there's
a better way to avoid a hard-coded paths in the .rnc files).

--

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

David Abrahams | 15 Feb 2005 15:27
Picon
Picon
Favicon
Gravatar

** Where Is James Clark? **


Sorry for the loud subject line, but has anyone heard from him since
26 Oct 2004?  I am stuck with some things related to nxml-mode, and
I'm hoping he hasn't dropped off the face of the planet because it
seems like nobody else can answer my questions.  I hope he's okay; he
makes wonderful software.

--

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

 
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/

Lennart Borgman | 15 Feb 2005 16:39
Picon
Picon
Favicon

Re: ** Where Is James Clark? **


Maybe you can look at this page:

http://www.jclark.com/bio.htm

He seems to be working in Thailand.

----- Original Message ----- 
From: "David Abrahams" <dave <at> boost-consulting.com>

> Sorry for the loud subject line, but has anyone heard from him since
> 26 Oct 2004?  I am stuck with some things related to nxml-mode, and
> I'm hoping he hasn't dropped off the face of the planet because it
> seems like nobody else can answer my questions.  I hope he's okay; he
> makes wonderful software.

 
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/

James Clark | 15 Feb 2005 17:31

Re: ** Where Is James Clark? **


On Tue, 2005-02-15 at 09:27 -0500, David Abrahams wrote:
> 
> Sorry for the loud subject line, but has anyone heard from him since
> 26 Oct 2004?  I am stuck with some things related to nxml-mode, and
> I'm hoping he hasn't dropped off the face of the planet because it
> seems like nobody else can answer my questions.

I'm still here, but unfortunately I haven't been able to find any time
to give to nXML mode since November 2004, and am unlikely to be able to
find any at least until November 2005.

What happened is that I started doing a bit of open source advocacy in
Thailand (where I've lived for some time), and ended up getting asked to
manage the Thai Government's effort to promote open source.  Frankly it
was a lot more fun hacking nXML mode, than it is putting on a suit and
tie, going to the office everyday at 8.30 and spending most of my time
sitting in meetings and writing proposals, but I see this as a once in a
lifetime opportunity to really make a difference, and I feel I need to
make a 100% effort to try to make this most of this opportunity.  So I
hope you'll forgive me if I temporarily give priority to this work over
supporting/hacking nXML mode.

James
--

-- 
To send me mail, replace auth-only by public in the from address. 

 
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/

Ken Beesley | 16 Feb 2005 11:35
Picon
Favicon

pattern facets in Relax NG


RE:  pattern facets in Relax NG

I was very pleased to find that one can specify multiple
 regular-expression 'pattern' facets, e.g.

   Xtext = element xtext { xsd:string { pattern="..." pattern="..." }}

and that all of them have to be satisfied, and that nxml-mode
properly red-lines strings that aren't  valid, as you type.  Very nice.

Has any thought already been given to the following possibilities,
or can they already be done somehow?

1.  Implement  a negpattern="..." facet,
the complement of pattern.  E.g.

Xtext = element xtext { xsd:string { pattern="..."  
negpattern=".*z.*z.*" negpattern="zork|cumquat"}}

would allow any string matching some arbitrarily complex regular
expression, shown above as "...", but EXCLUDING any strings
that contain two 'z' letters,
and EXCLUDING the words "zork" and "cumquat".
Multiple patterns and negpatterns would all have to be satisfied
for validity.  (Yes, I understand that the two negpatterns in the
example above could be unioned into one:  
negpattern=".*z.*z.*|zork|cumquat".)

For non-trivial matching, it's often much easier to write a
general pattern that overrecognizes
somewhat and then filter the language accepted with something like a
negpattern.

2.  Add support for the definition of non-trivial regular expressions
via string interpolation, as in Perl.  Python has a similar
mechanism.  Possible utility:  The phonology and
orthography of some languages can be very predictable, with
words being composed of one or more syllables, and syllables
having a metapattern like  CVC*  (a consonant, followed by
a vowel, followed by zero or more consonants).  The definition
of a "possible word" pattern would be much facilitiated if one
could define and interpolate strings in a Perl-like manner, e.g.

$Con = "(p|t|k|q|h|v|m|n|s)" ;
$Vow = "[ieaou]" ;
$Syl   = "($Con$Vow$Con*)" ;
$Word = $Syll+ ;

Xtext = element xtext { xsd:string { pattern="$Word" } }

This is an artificially simple example, of course, but some real
languages (like Hopi) are not tremendously more complex
in what constitutes a phonologically/orthographically possible
word.  But the final pattern is definitely non-trivial, and trying
to write it as one monolithic regular expression would be both
tedious and error-prone.  String interpolation would allow
subparts of the pattern (like the definition of Consonant and Vowel)
to be changed and re-used consistently. 

With the ability to construct complex patterns, and the
ability to exclude words via negpatterns, one could
reasonably build a kind of real-time Hopi spell checker
using Relax NG and nxml-mode.  It would red-line orthographically
impossible words as you type, which could be very useful in teaching
the orthography.

3.  (lower priority)  Definition of non-trivial regular expressions
might be facilitated for some people by implementing xpattern
and xnegpattern facets that work like pattern and negpattern,
respectively, but ignore any non-literalized whitespace in the
pattern.  Similar to Perl's "x" option, e.g. matching with /pattern/x
or substitution with s/pattern/string/x.

*****************************************************

If such functionality is already available somehow, please
point me to it.

Thanks,

Ken Beesley

 
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/

Pawson, David | 24 Feb 2005 14:38
Picon

jing conversion problem


Jing version 20030619

Input

<define name="Lexeme">
  <a:documentation>
    <html:p>Element lexeme. Single PLS entry </html:p>
  </a:documentation>
  <element name="lexeme">
    <oneOrMore>
      <ref name="Grapheme"/>
    </oneOrMore>
    <choice>
	<optional>
	  <oneOrMore>
	    <ref name="Phoneme"/>
	  </oneOrMore>
	</optional>
      <group>
	<ref name="Alias"/>
	<oneOrMore>
	  <ref name="Example"/>
	</oneOrMore>
      </group>
    </choice>
  </element>
</define>

output 

Lexeme =
  element lexeme {
    Grapheme+,
    ((Phoneme+? | (Alias, Example+))
            ^^^^^

  }

nxml-mode then complains of a missing  )

 ((Phoneme+)? | (Alias, Example+))

Corrected to the above, nxml-mode is happy
as is trang.

Any suggestions to improve the rng please?

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/

Vincent Lefevre | 24 Feb 2005 15:12

nxml-mode doesn't detect invalid XHTML file ("a" in a "a")


The following XHTML file is invalid (according to the XHTML DTD)
due to the nested "a", but the schema provided with nXML accepts
it:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>.</title></head>
<body>
<p><a href="foo"><a href="bar">.</a></a></p>
</body>
</html>

--

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


Gmane