Standalone XInclude grammar

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

I'm in the process of updating the grammar files for Genshi and Xinclude in nXhtml and I need some help. I've just finished rewriting the Xinclude grammar following the official XSD as close as I can. (I'm still very new to RelaxNG) and have separated it out. I posted a buggy version earlier, but I deleted that message. This one seems good enough for me, but please do post your bugs here if it doesn't work.

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

xi.include.attlist =
   attribute href     { xsd:anyURI }?,
   attribute parse    { "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 }*

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

xi.include.extra = notAllowed

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

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

xi.fallback.extra = notAllowed

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.