Does merge of two schema require rewriting of existing code?
"gavenkoa" <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <[email protected]> |
Sorry, this message may be some offtopic for this list.
I try write compact RELAX NG schema for Blogger template. Look at used
namespaces:
<html dir='ltr'
xmlns='http://www.w3.org/1999/xhtml'
xmlns:b='http://www.google.com/2005/gml/b'
xmlns:data='http://www.google.com/2005/gml/data'
xmlns:expr='http://www.google.com/2005/gml/expr'>
As Emacs 23.2 already have 'xhtml.rnc' file for 'http://www.w3.org/1999/xhtml'
I try reuse them. I think that only need write rules for Google namespace and
merge them.
If anyone interesting how look target .xml file visit link:
http://code.google.com/p/brain-break-blog/source/browse/gavenkoa-exp.blogspot.com.xml
But I get difficult in merging new schema into existing. For example target
xml contain this code:
<title><data:blog.pageTitle/></title>
This code from 'xhtml-struct.rnc':
title = element title { title.attlist, text }
As I understand RELAX NG upper rule don't allow me integrate:
gml-data.blog.pageTitle = element blog.pageTitle {empty}
into it to become:
title = element title {
title.attlist
& text*
& gml-data.blog.pageTitle*
}
Does I need make own 'xhtml.rnc' to allow merge into it new syntax?
In "RELAX NG Compact Syntax Tutorial" for extensibility used such pattern:
inline =
(text
| element bold { inline }
| element italic { inline }
| inline.extra)*
inline.extra = notAllowed
which I can not found in 'xhtml*.rnc' files.
What you recommend?
------------------------------------
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:
[email protected]
[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/