xinclude rnc file in nxhtml

"wyuenho" <[email protected]>
Newsgroups gmane.emacs.nxml.general
Message-ID <[email protected]>
Hi everyone,

I'm trying to rewrite the Genshi and Xinclude RNC files packaged with nXhtml. And I think I've just got the Xinclude grammar done. Can anybody check it for me please? Thanks!

namespace xi = "http://www.w3.org/2001/XInclude"
namespace local = ""

xi.include.attlist =
   attribute href     { xsd:anyURI }?,
   attribute parse    { xsd:token { "xml" | "text" } }?,
   attribute xpointer { xsd:string }?,
   attribute encoding { xsd:string }?,
   attribute accept   { xsd:string }?,
   attribute accept-language { xsd:string }?

xi.include.attlist.extra =
   attribute * - xi.include.attlist { text }*

start =
   element xi:include {
      xi.include.attlist,
      xi.include.attlist.extra,
      (xi:fallback? | xi.include.extra)*
   }

xi.include.extra =
   element * - xi.class {} | text

xi.fallback.attlist =
   attribute * { text }*

xi.fallback =
   element xi:fallback {
      xi.fallback.attlist, 
      xi:include* | xi.fallback.extra*
   }

xi.include.extra =
   element * - xi.class {} | text

xi.class = xi.include | xi.fallback



------------------------------------

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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.