built-in schema datatype for html / xhtml

Posted by John Clements on Stack Overflow See other posts from Stack Overflow or by John Clements
Published on 2010-06-18T00:28:02Z Indexed on 2010/06/18 0:33 UTC
Read the original article Hit count: 390

Filed under:
|
|
|

Is there a built-in schema datatype for xhtml data? Suppose I want to specify a "boozle" element that contains two "woozles", each of which is arbitrary xhtml. I want to write something like this, using the relax NG compact syntax:

namespace nifty = "http://brinckerhoff.org/nifty/"

start = element nifty:boozle {woozle, woozle}

woozle = element nifty:woozle {xhtml}

Unfortunately, xmllint then signals this error:

./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

So my question is this: is there something sensible that I should put in place of "xhtml" above?

© Stack Overflow or respective owner

Related posts about Xml

Related posts about validation