W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2010

Re: How to allow html tags and restrict number of characters‏

From: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Sat, 9 Oct 2010 07:47:03 +0530
Message-ID: <AANLkTimeQsMTm3gZdu0y11DuGSEvg+a03O4EeoRyKe5m@mail.gmail.com>
To: xmlschema-dev@w3.org
Cc: Vani Gupta <vani_1974@yahoo.co.uk>, Michael Kay <mike@saxonica.com>
On Fri, Oct 8, 2010 at 1:38 PM, Michael Kay <mike@saxonica.com> wrote:
>  Another use case for XSD 1.1 assertions:
> <xs:assert test="string-length(.) le 50000"/>

I think expression string-length(.) returns string value (which is the
concatenation of all-of text node descendent's of a node in document
order) of an XDM node (in this case, an element node), which Vani
wanted. Cool :)

> (I would question whether it *should* be done. I find it hard to think of a
> good reason for designing a system with this limit in it. But that's another
> question.)

I agree with Mike.

Mukul Gandhi
Received on Saturday, 9 October 2010 02:17:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:57 UTC