Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Bypass namespace validation >Thread Next - Re: Bypass namespace validation Re: Bypass namespace validationTo: NULL Date: 2/8/2007 2:33:00 PM Thomas Guignard wrote: > I need to run an XSLT stylesheet on XML files generated by another app > that seem to have errors. When I try to run my XSLT processor (MSXML > engine, run through the Cooktop editor), I get the following error message > > ERROR: pattern constraint failed. > The element: '{http://www.loc.gov/MARC21/slim}leader' has an invalid > value according to its data type. > > Source: '<marc:record><marc:leader>01441cam a22003614a 45 0</marc:leader>' > Line: 14277, Pos: 53 > > Since I don't plan to use this field, I'd like to have the processor > bypass this error validation, so that I can get the rest to work. You get validation errors when you run an XSLT transformation? If you are using MSXML then you might be able to prevent it from doing validation by setting xmlDocument.validateOnParse = false for the DOMDocuments you are using. Whether that is possible with Cooktop I don't know. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
