XHTML Inclusion impossible
Posted: Thu Jul 12, 2007 6:39 pm
If you employ the external declaration of element contents, as outlined in the RelaxNG tutorial...
http://relaxng.org/compact-tutorial-20030326.html
...then it causes an unspecified oNDL syntax error.
Indeed there is apparently no way to specify that an element defined via a RelaxNG compact syntax should include XHTML content. So any ideas would be welcomed.
This is my original RelaxNG file, which references the html-basic schema in place inside a Jing distribution.
default namespace = "http://cefn.com/blog/"
namespace rng = "http://relaxng.org/ns/structure/1.0"
namespace xhtml = "http://www.w3.org/1999/xhtml"
datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes"
grammar {
start = source
source = element source {
(post | page | source)* |
attribute uri {xsd:anyURI}
}
post = element post {
labelling, journalling, external "../lib/java/jing/jing-20030619/doc/xhtml/xhtml-basic.rng"
}
page = element page {
labelling, journalling, external "../lib/java/jing/jing-20030619/doc/xhtml/xhtml-basic.rng"
}
file = element file {
labelling, attaching
}
labelling = attribute name { xsd:IDREF}?, attribute title { xsd:string}, attribute description { xsd:string}?
journalling = attribute created { xsd:date}, attribute published { xsd:date}?
attaching = attribute bytes { xsd:base64Binary }, attribute mimetype { xsd:string }
}
http://relaxng.org/compact-tutorial-20030326.html
...then it causes an unspecified oNDL syntax error.
Indeed there is apparently no way to specify that an element defined via a RelaxNG compact syntax should include XHTML content. So any ideas would be welcomed.
This is my original RelaxNG file, which references the html-basic schema in place inside a Jing distribution.
default namespace = "http://cefn.com/blog/"
namespace rng = "http://relaxng.org/ns/structure/1.0"
namespace xhtml = "http://www.w3.org/1999/xhtml"
datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes"
grammar {
start = source
source = element source {
(post | page | source)* |
attribute uri {xsd:anyURI}
}
post = element post {
labelling, journalling, external "../lib/java/jing/jing-20030619/doc/xhtml/xhtml-basic.rng"
}
page = element page {
labelling, journalling, external "../lib/java/jing/jing-20030619/doc/xhtml/xhtml-basic.rng"
}
file = element file {
labelling, attaching
}
labelling = attribute name { xsd:IDREF}?, attribute title { xsd:string}, attribute description { xsd:string}?
journalling = attribute created { xsd:date}, attribute published { xsd:date}?
attaching = attribute bytes { xsd:base64Binary }, attribute mimetype { xsd:string }
}