nxhtml team mailing list archive
-
nxhtml team
-
Mailing list archive
-
Message #00215
Re: [Question #110173]: isn't xhtml dead on arrival?
Question #110173 on nXhtml changed:
https://answers.launchpad.net/nxhtml/+question/110173
Status: Answered => Solved
Perry Smith confirmed that the question is solved:
Hi,
Thanks for the reply. I played with this most of today and I think I
have it working but I haven't really used it. I've only looked at
various files I have floating around.
I didn't find Dave's post but I did find something else that led me to
the same github account that he points to.
The README.markdown describes how to set it up.
As I recall, I followed the README's instructions.
I did just discover a bug in Hober's schema file (sorta). There are two
schemas actually. One for html5 and one for xhtml5. Hober's schema
file always uses the xhtml5 schema. I changed it to be this:
<locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0">
<uri pattern="*.html" typeId="HTML5"/>
<namespace ns="http://www.w3.org/1999/xhtml" typeId="HTML5"/>
<documentElement localName="html" typeId="HTML5"/>
<typeId id="HTML5" uri="relaxng/html5.rnc"/>
<uri pattern="*.xhtml" typeId="XHTML5"/>
<namespace ns="http://www.w3.org/1999/xhtml" typeId="XHTML5"/>
<documentElement localName="html" typeId="XHTML5"/>
<typeId id="XHTML5" uri="relaxng/xhtml5.rnc"/>
</locatingRules>
You can test it by adding a meta tag with a charset attribute. In
xhtml5 mode, that must be set to utf-8. In html5 mode it can be any
string.
The only 'nit' I have (which is no big deal) is I have to add the xmlns
attribute to the html tag. I don't understand (looking at the schema
files) why. And the html5 specs says its optional. Not a big deal but
I wish I could follow why it has to be there.
Thank you for helping
Perry
--
You received this question notification because you are a member of
nXhtml, which is an answer contact for nXhtml.