[Home] [By Thread] [By Date] [Recent Entries]

  • From: Jesper Tverskov <jesper.tverskov@g...>
  • To: xml-dev@l...
  • 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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member