Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: How to use DTD and Schema in the single XML file? >Thread Next - Re: How to use DTD and Schema in the single XML file? RE: How to use DTD and Schema in the single XML file?To: "'Balakrishnan'" <balakrishnan@-----.--.-->, "'Mukul Gandhi'" <gandhi.mukul@-----.---> Date: 7/25/2006 7:01:00 PM > > I using DTD for parsing the XML file, Suppose the xml have > 100 elements and I want to validate just 10 element then How > can I write the schema? and validate? There are not many tools that offer selective validation at the element level, but you can do it with a schema-aware XQuery or XSLT 2.0 stylesheet: <xsl:template match="element-to-be-validated"> <xsl:copy-of select="." validation="strict"/> </xsl:template> Michael Kay http://www.saxonica.com/ From gandhi.mukul@g... Tue Jul 25 17:06:30 2006 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
