【发布时间】:2011-03-05 05:38:57
【问题描述】:
是否有用于 xhtml 数据的内置模式数据类型?假设我想指定一个包含两个“woozle”的“boozle”元素,每个“woozle”都是任意的 xhtml。我想写这样的东西,使用放松 NG 紧凑语法:
namespace nifty = "http://brinckerhoff.org/nifty/"
start = element nifty:boozle {woozle, woozle}
woozle = element nifty:woozle {xhtml}
不幸的是,xmllint 然后发出此错误信号:
./lab.rng:43: element ref: Relax-NG parser error : Reference xhtml has no matching definition ./lab.rng:43: element ref: Relax-NG parser error : Internal found no define for ref xhtml
所以我的问题是:我应该用什么东西代替上面的“xhtml”吗?
【问题讨论】:
标签: xml validation xhtml relaxng