473,836 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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>014 41cam 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 2723
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>014 41cam 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.val idateOnParse = 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
11333
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 which is compiled and works fine. ############################################
1
5483
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 should be presented with two buttons a "Submit" and a "Cancel". When the "Cancel" button is selected all of the items on the user control should be cleared. However, I have validation controls setup for each item necessary on the form and when...
3
2441
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 side validations. So I thought to put something like the following in the superclass of all UI pages: public sub page_load
1
3267
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 other input fields available to fill in. I use the JavaScript OnChange function (=clientside) that creates a querystring and does a refresh of the page. It works fine.
1
1848
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
8572
by: Plop69 | last post by:
need some help on following: xml file 1 <TEST xmlns="http://test" > <OK>mlkddflmkj</OK> </TEST>
2
3048
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 default namespace, Validate() just lets it slide through as a success. Is there a way to Validate() either a) mandating against a particular schema, or at the very least b) supplying a default namespace to be used even when not explicitly declared?
3
2953
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 studio 2005. I have managed to cycle through the xml file , validate most of the variables, however, i have some problems with the namespaces of some attributes. For example, in my xml instance file, it says: <xbrldi:typedMember...
3
3498
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> <description></description> ...
0
9825
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10559
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10601
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10260
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9388
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6981
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5829
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4460
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.