473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Bypass namespace validation

Hi there

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.

How can I do this?

Thanks for any help

--
Thomas Guignard
Central Library
Swiss Federal Institute of Technology, Lausanne
Feb 8 '07 #1
2 2706
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/
Feb 8 '07 #2
Thanks for your help. I can set run-time parameters in Cooktop, and now
it works.

Cheers,

--
Thomas Guignard
Central Library
Swiss Federal Institute of Technology, Lausanne
Feb 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Alex Vinokur | last post by:
========================================= Windows 2000 CYGWIN_NT-5.0 1.3.22(0.78/3/2) GNU gcc version 3.2 20020927 (prerelease) ========================================= Here is some program...
1
by: Corey Olsen | last post by:
Can anyone point me to some documentation on bypassing validation controls when a user selects cancel? What I have is a user control with a form to fill out information on a subject. The user...
3
by: interuser | last post by:
Hi How can I prevent an event (eg button click) from happening from within page_load? The reason is that I want to make my existing application work for netscape, for which there are no client...
1
by: IkBenHet | last post by:
Hello, Currently I am using a large input form on a website that is based on ASP and JavaScript. Depending on the values that are filled in by the user the forms does a refresh and makes...
1
by: Plop69 | last post by:
need some help on following: xml file 1 <TEST xmlns="http://test" > <OK>mlkddflmkj</OK> </TEST> xml file 2
12
by: Plop69 | last post by:
need some help on following: xml file 1 <TEST xmlns="http://test" > <OK>mlkddflmkj</OK> </TEST>
2
by: Mark | last post by:
Hi... I've been trying the .Validate() method on the XmlDocument to validate some xml against a schema, but one thing I noted was that unless the document explicitly declares the schema as a...
3
by: George | last post by:
I am currently developing an xbrl validation software that takes an xml instance file and a lot of schemas(xsd files) and validates it against the xsd files. I am using Visual basic in visual...
3
by: Jon | last post by:
I have an xml document like so... <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:ng="http://newsgator.com/schema/extensions"> <channel> <title></title> <link></link>...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.