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

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

From: Vani Gupta <vani_1974@yahoo.co.uk>
Date: Fri, 8 Oct 2010 09:26:36 +0100 (BST)
Message-ID: <770269.35635.qm@web25905.mail.ukl.yahoo.com>
To: xmlschema-dev@w3.org
Thanks Daniel,

Can you tell me the syntax for this please?

Regards,

Lenin


--- On Thu, 7/10/10, Dani D <daniel.dui@gmail.com> wrote:

> From: Dani D <daniel.dui@gmail.com>
> Subject: Re: How to allow html tags and restrict number of characters‏
> To: "Vani Gupta" <vani_1974@yahoo.co.uk>
> Date: Thursday, 7 October, 2010, 22:35
> Vani
> 
> xsd:any + html namespace is probably what you need.
> 
> -daniel
> 
> 
> On 7 October 2010 14:58, Vani Gupta <vani_1974@yahoo.co.uk>
> wrote:
> > Hello All,
> >
> > I am in the process of developing an XSD.
> >
> > I have requirement, there is a tag which should allow
> html tags in it, it is a description field, users can enter
> any text with bold, italics, paragraphs etc.
> >
> > And the filed length should be 50,000 characters.
> >
> > How do I achieve this in xsd?
> >
> > Any suggestions are much appreciated.
> >
> > So far I managed to allow html tags but not able to
> restrict the number of characters.
> >
> > Please find part of my xsd
> >
> > <xsd:complexType name="htmltagsok">
> > <xsd:sequence>
> > <xsd:element xmlns:q1="http://www.w3.org/1999/xhtml" ref="q1:body"
> minOccurs="0" />
> > </xsd:sequence>
> > </xsd:complexType>
> >
> >
> > <xsd:element name="Conclusion" type="htmltagsok"
> />
> >
> > Regards,
> >
> >
> >
> >
> >
> >
> >
> >
> 
> 
> 
> -- 
> ____________________________________________________________
>    Daniel Dui - daniel.dui@gmail.com
> - skype: danieldui
> 


      
Received on Friday, 8 October 2010 08:27:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:27 GMT