[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Polyglot XHTML5 Validator?
- From: Jesper Tverskov <jesper.tverskov@gmail.com>
- To: xml-dev@lists.xml.org
- Date: Sat, 21 May 2011 18:25:39 +0200
Hi David
Thanks for Schematron schema for validating polyglot XHTML6:
http://lists.w3.org/Archives/Public/public-html/2010Dec/att-0172/poly.sch
I think I have found a bug:
<sch:assert test="matches(name(),'^[a-z]+$')">
elements should use lower case names (<sch:value-of select="name()"/>)
</sch:assert>
You have forgotten that we have element names containing digits, h1-h6.
Should probably be corrected to something like the following:
<sch:assert test="matches(name(),'^[a-z|1-6]+$')">
elements should use lower case names (<sch:value-of select="name()"/>)
</sch:assert>
Cheers,
Jesper Tverskov
http://www.xmlplease.com
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]