On Feb 23, 2007, at 13:37, Jirka Kosek wrote:

> And what about
>
> element foo { token { pattern = "[^\p{Zs}\p{Zl}\p{Zp}\p{Cc}\p{Cf}] 
> +" } }
>
> or in case of XSD datatypes:
>
> element foo { token { minLength = 1 } }

This does not work for HTML5, because RELAX NG doesn't allow mixed  
content when the text content is constrained by a datatype. I've  
dealt with this case by using a hand-crafted ContentHandler.

(Anyway, HTML5 is likely to drop this requirement, because so far  
indications are that the requirement would only lead to an arms race  
without actually improving the quality of Web content.)

-- 
Henri Sivonen
[EMAIL PROTECTED]
http://hsivonen.iki.fi/


Reply via email to