Re: Genshi Python expression Regex
"wyuenho" <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <[email protected]> |
After a lot of experimentation, I have to suspect that either I'm doing something really stupid or there's something really wrong with nxml's xsd datatype regex engine.
All I'm trying to match is the ${} python expression in this fragment(the underlines are just validation error):
<!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>_
____${select('*[local-name()!="title" and local-name!="meta"]')}_
__</head>
</html>
My grammar is simply this:
include "xhtml.rnc"
head.content &= python.expression
python.expression = xsd:normalizedString {
pattern = "[.\s]*"
}
How on earth do I get a validation error still?
------------------------------------
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:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/