Re: Weird inclusion problem

2001-06-19 Thread neilg
Hi Etienne, Turned out not to be the hardest bug to squash, but it certainly was a bug. It's fixed in CVS now. Thanks for sending me such a concise test case! Cheers, Neil Neil Graham XML Parser Development IBM Toronto Lab Phone: 416-448-3519, T/L 778-3519 E-mail: [EMAIL PROTECTED] Etienne

Re: xml validation using xml schemas

2001-06-19 Thread Edwin Goei
Elena Litani wrote: > > Hi, Christian, > > > > Sorry to repost this, but this is really keeping me stuck...anybody has an > > idea what I am doing wrong or is this actually in face a bug of the > > BuilderFactory? > > It might be a bug.. I am not sure if features are set correctly in > DocumentBu

Newbie - need help with Schema validation

2001-06-19 Thread George Rosier
Hi, I'm new to xerces and I would like if some one could tell me where to find some easy to understand examples on how to validate, report errors, and parse a XML document using the DOM parser. for example on how to parse this - XSD File - http://www.test.com"; xm

Re: iPlanet xerces JAR access help

2001-06-19 Thread John Hosage
The web server is Netscape iPlanet 4.1. The xerces.jar file is in the classpath. If I run the servlet without the setFeature() statement for validation, the servlet works great. So the JAR file is being found. But if I try to turn validation on, the exception is thrown. From the error messag

Re: Weird inclusion problem

2001-06-19 Thread Etienne Roy
Ok, here you are You'll find in the zip file two schemas and an instance. I put all my annotation inside the files, as the errors are a bit weird... Here is a dump of the error messages: D:\Xerces CVS>java sax.SAXCount -v -f instance.xml [Error] instance.xml:4:62: Schema error: prefix : [m

Re: xml validation using xml schemas

2001-06-19 Thread Elena Litani
Hi, Christian, > > Sorry to repost this, but this is really keeping me stuck...anybody has an > idea what I am doing wrong or is this actually in face a bug of the > BuilderFactory? It might be a bug.. I am not sure if features are set correctly in DocumentBuilder for the parser. To validate sc

Attributes.getRawName(int);

2001-06-19 Thread Jason Rizer
Hello. I've inherited some code which does an SAX parse. In startElement(String, String, String, Attributes attrs) there is the following call: attrs.getRawName(4); I can't find this method anywhere in the Attributes interface. Trying to figure out how this code compiles (which it does) is dri

Re: Schema validation

2001-06-19 Thread Elena Litani
Hi, Schawn, > Can you indicate to the parser what schemas to use, and if so how? Currently it is a requirement to use schemaLocation or noNamespaceLocation. However, we are working on providing a feature that would allow users to set schemas before parse() is called. Hopefully, we will be able t

RE: iPlanet xerces JAR access help

2001-06-19 Thread Ragunath Marudhachalam
Hi John, What webserver u r using for the servlet... probably u need to configure this jar file in ur webserver. If suppose u r using apache, u need to give the classpath of this jar file in the jserv.properties file in the jserv(home)/conf directory. -Original Message- From: [EMA

iPlanet xerces JAR access help

2001-06-19 Thread John Hosage
I am trying to use the xerces 1.4 XML parser in a servlet. When setting the validation feature, the parser throws an error. I believe that the error is caused since the parser cannot read it's JAR file with the resources that it needs. Can someone tell me how to allow this? I am using iPlanet

Re: Weird inclusion problem

2001-06-19 Thread neilg
Hi Etienne. Well given that you know your huge schemas a lot better than I do, it would probably be much easier for you to whittle the problem down to a manageable test case than it would be for me... so if you wouldn't mind trying to put together a small test case that would be much appreciated!

Re: Weird inclusion problem

2001-06-19 Thread Etienne Roy
Hi Neil, Thanks for your help. I'm afraid I'm experiencing the problem w/ the CVS version I grabbed 3 hours ago, after Lisa fixed another bug that was, well, buging me ;-) As for the test case, I can give you the schema I'm workig on (14 files or so) or I can try and write a small one, based on t

Re: Weird inclusion problem

2001-06-19 Thread neilg
Hi Etienne, Are you using Xerces 1.4.0 or a version from CVS? This sounds like a problem that I fixed a couple of weeks ago. If you are experiencing this problem with the CVS codebase though, please send a test case along. Thanks, Neil Neil Graham XML Parser Development IBM Toronto Lab Phone:

Weird inclusion problem

2001-06-19 Thread Etienne Roy
Hi all, AFAIK, I am allowed to declare 2 attributes with the same name provided they're not in the same scope. So the following snippet is valid: and XercesJ is Ok validating that but when that schema is imported in another schema, that raises isues like: S

RE: Which schema is SAX using for validation?

2001-06-19 Thread Michael Weir (Transform Research)
Title: Which schema is SAX using for validation? By this do you mean that the October 2000 version of schema is supported by the java xerces SAX parser? Thanks. -Original Message-From: Tung Mansfield [mailto:[EMAIL PROTECTED]Sent: Monday, June 18, 2001 10:03 AMTo: '[EMAIL PROT

RE: Is there any implementation nuetral way to create an Attribut es?

2001-06-19 Thread Swanson, Brion
It seems to me then that if you intend on supporting both APIs you'll have to have the duplicate code at least until the point where both APIs can be merged on a common interface. In other words, since SAX1 and SAX2 changed their class names in the interfaces, and didn't provide a means for transl

Schema validation

2001-06-19 Thread Schawn E. Thropp
Using Ver 1.4 of the Xerces parse it is not clear to me of how to indicate the schema(s) to use while parsing and validating. Since the schemaLocation is not required in an instance document, how can the DOMParser or SAXParser be set up to set these schemas ahead of time. There is no, problem of

xmlschemas and attributes

2001-06-19 Thread Christian_Seifert
Hi, Is it possible with schemas to validate values depending on the value of the attribute. E.g.5 #00 now I want my schema to ensure that the value in the param with attribute key "height" will be an integer and with attribute key "color" will be a Hex String... Thanks Christi

xml

2001-06-19 Thread Christian_Seifert
-Original Message- From: Seifert, Christian Sent: Monday, June 18, 2001 1:43 PM To: [EMAIL PROTECTED] Subject:xml validation using xml schemas Hi, I am having problems validating a xml file using xml schemas. The way I go about it is using the DocumentBuilder. I obt

RE: xml validation using xml schemas

2001-06-19 Thread Christian_Seifert
Sorry to repost this, but this is really keeping me stuck...anybody has an idea what I am doing wrong or is this actually in face a bug of the BuilderFactory? Thanks Christian -Original Message- From: Seifert, Christian Sent: Monday, June 18, 2001 1:43 PM To: [EMAIL PROTECTED]

RE: Is there any implementation nuetral way to create an Attribut es?

2001-06-19 Thread Jason Rizer
Brion, The only problem with that approach is that while I'm currently only testing with xerces and sun I'd like to be able to support any other parser (SAX1 or SAX2) which I might encounter. I should have mentioned this. Thanks for taking the time to reply. -Jason --- "Swanson, Brion" <[EMAIL

RE: Is there any implementation nuetral way to create an Attribut es?

2001-06-19 Thread Swanson, Brion
Don't you already have ties to one (or both) of Xerces and/or Sun? What's the complication in adding a single method that creates a Attributes instance and populates it with the information from the AttributeList class? Stick to the interface as much as possible and only use AttributesImpl to crea

Is there any implementation nuetral way to create an Attributes?

2001-06-19 Thread Jason Rizer
Hello. I have an SAX Parsing application which I'm trying to get to work with both xerces and the sun parser which comes with jaxp1.01. The problem is that the sun parser is an SAX1 implementation. As a result the class which handles the call back methods must implement both DocumentHandler (SAX

Re: XML Schemas - QName resolution of ref attributes

2001-06-19 Thread neilg
Hi Jeff. Thanks for pointing this out! 1.4.0 was indeed a touch lax in this regard; and now that we've tightened things up personal-schema no longer validates! :-( So I'm glad you pointed this out so we can fix it before 1.4.1 comes out. I'll get this done shortly. Thanks again, Neil Neil Gr

Réf. : Assigning XSL to an XML

2001-06-19 Thread Stephane . RAULT
I didn't test it by the spirit is not so far :-) myDocument.createProcessingInstruction("xml-stylesheet","href ='myStylesheet.xsl' type='text/xsl'"), myDocument.getDocumentElement()); -- A++ Stéphane

Assigning XSL to an XML

2001-06-19 Thread geza
Hi Guys! I use Xerces to create XML files, but couldn't find a way to assign an XSL file to it. Could anyone help me? Thanks in advance, Don - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: Other JAXP-compliant parsers

2001-06-19 Thread Willy Ching
I think there's from IBM and Oracle also... Tung Mansfield wrote: > Try http://xml.apache.org/crimson/index.html for more info on crimson and > xerces > > -Original Message- > From: Aaron Wadley [mailto:[EMAIL PROTECTED] > Sent: Monday, June 18, 2001 9:23 AM > To: 'Xerces List' > Subject:

XML Schemas - QName resolution of ref attributes

2001-06-19 Thread Jeff Rafter
Is Xerces-J 1.4 enforcing the QName resolution constraint? [1] In the sample personal.xsd I believe there is an error that is not reported. I don't think the ref's to the schema components should be resolved as they should be in the no-namespace (because there is no targetNamespace) and they are

Parsing errors are generic - can they be customized?

2001-06-19 Thread S Uma
Hello, I am using the Xerces parser for validating xml documents against DTDs. The parser generated error messages are generic i.e. they do not point out an element for any errors on that element. for e.g. if I have a document that has the a sequence of elements as elem1, elem2, elem3 and if I mis