Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Extending the XHTML transitional XSD >Thread Next - Re: Extending the XHTML transitional XSD Re: Extending the XHTML transitional XSDTo: NULL Date: 9/14/2006 9:31:00 PM Hi, This post was very useful. I've been having a look-alike trouble that maybe you could help. I've extended some XHTML tags to add an form validation functionality in the client side (implemented with javascript ). I’ve created a set of attributes that indicates what kind of validation check is needed for the form field before it was submitted to the server. Like this: <input type="text" v:type="email" /> <input type="text" v:type="name" /> Then a javascript function processes all the tags and validates the form accordingly to the v:type attribute. Everything was fine. All the modern desktop browsers supported the extension, but that’s not enough for the project I’ve been working on. The code must be validated by some XHTML validators around the web. The code validation is required for "quality of the product" reasons. These validators were complaining about the invalid/unspecified attribute used in the <input /> tag. So I’ve created a Schema for the "v" namespace. The problem is: I've tried to extend the XHTML specification and turn the code into a valid XML document (the input tag must be expecting a possible v:type attribute occurrence) . I found it was a hard task to conclude. So, can you give me suggestions of a painless way for doing it? And what validation engines support such schema extension? Thanks! *** Sent via Developersdex http://www.developersdex.com *** | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
