Re: Notations in schema (readme!)

2001-02-23 Thread Ted Leung
- Original Message - From: "Andy Clark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 21, 2001 11:52 PM Subject: Re: Notations in schema (readme!) > Ted Leung wrote: > > I could have sworn there was a part of XNI for the grammar. I > > just tried to go to your p

Name space and getElementsByTagName

2001-02-23 Thread Haneef Ali
hi, I have the following xml I created a document and doc.getElementsByTagName("Envelope")is working but doc.getElementsByTagNameNS("*","Envelope") is not working Will some one let me know what is wrong here. Thanks Haneef

Re: noNameSpace schema include during validation

2001-02-23 Thread neilg
Hi Kirk, I notice the noNamespaceSchemaLocation in your instance document is a full URI, whereas the one in your schema is a relative URI. This may explain some of the inconsistency. The other thing you could try is to specify your own EntityResolver; then you can have control over what's done

RE: AW: Validation ?

2001-02-23 Thread Michael Duffy
Neil: I've overlooked an obvious resource. Thank you for pointing it out. Sincerely, MOD --- [EMAIL PROTECTED] wrote: > > > Hi Michael, > > Why not have a look through the examples in the > samples/dom package, > perhaps particularly at DOMCount.java. These > examples can use the > DOMPar

RE: AW: Validation ?

2001-02-23 Thread neilg
Hi Michael, Why not have a look through the examples in the samples/dom package, perhaps particularly at DOMCount.java. These examples can use the DOMParser to successfully validate schemas, outputting errors as appropriate. Cheers, Neil Neil Graham XML Parser Development IBM Toronto Lab Phon

RE: AW: Validation ?

2001-02-23 Thread Michael Duffy
Ian: I turned on namespaces, but still no dice. The JAXP API, combined with an ErrorHandler, gets me the exception I expected when I passed a document that didn't conform to the schema. The same document passes quietly by the DOMParser using the same ErrorHandler. What else could I be missing

noNameSpace schema include during validation

2001-02-23 Thread Kirk Freeman
Hi, It seems there's a change in schema include file loading during validation between Xerces 1.2.0 and 1.2.3. For an example like the following, the 1.2.0 parser would load the included schemas relative to the noNameSpaceSchemaLocation. The 1.2.3 parser seems to search for the included schema

Re: xsd validation

2001-02-23 Thread Michael Duffy
Keith: I had EXACTLY the same problem. Look at the note from Alex Neth dated 22-Feb-2001 and follow the JAXP API as he laid it out and write an ErrorHandler for yourself. That will get you an exception if you give it an invalid document. - MOD --- "Dalia, Keith A - TOS-DITT1" <[EMAIL PROTECTE

Re: Xalan Justification

2001-02-23 Thread Somsak AsSawakulpaibool
Scott Carter wrote: > > I am trying to convince my organization to utilize Xalan in an upcoming > application that does file transformations from a single format to possibly > 20 different text based formats. One of the stipulations is that during the > transformation, we would have to be able

xsd validation

2001-02-23 Thread Dalia, Keith A - TOS-DITT1
I'm new to xerces. I'm trying to validate an instance doc using xml-schema. Am I on the right track: DOMParser parser = new DOMParser(); try { parser.setFeature("http://xml.org/sax/features/validation";, true); parser.parse("gi.xml");

Re: Using xml schema

2001-02-23 Thread Michael Duffy
Alex: Thank you - you've hit it precisely on the head. When I use the JAXP API as you suggested and pass the altered personal-schema.xml document to it, I get a SAXParseException, as I should. I DON'T get the exception unless I set an ErrorHandler that throws it. This ran counter to my intui

RE: Help With Schema Support

2001-02-23 Thread neilg
Hi Brandon, Have you tried making any other changes to personal-schema to make it invalid? Our ID implementation isn't exactly robust in schemas, so it is possible you've simply found a parser bug. Try including an undefined element in your instance doc; this will certainly throw an error. Ch

Re: Using xml schema

2001-02-23 Thread neilg
Hi Alex, Just to add a couple of things to Ian's response: Not all folks like to use the JAXP, and the DOMParser provides a nice interface for a DOM tree for lots of people. The class is also used in Xerces's schema parsing: it builds the schema grammar representation from a DOM tree represen

Xalan Justification

2001-02-23 Thread Scott Carter
I am trying to convince my organization to utilize Xalan in an upcoming application that does file transformations from a single format to possibly 20 different text based formats. One of the stipulations is that during the transformation, we would have to be able to provide totals and subtotals o

RE: Help With Schema Support

2001-02-23 Thread Michael Duffy
Sorry, Brandon - bad idea. It won't happen again. --- Brandon Rife <[EMAIL PROTECTED]> wrote: > Please refrain from 521K attachments. I downloaded > 80+ messages from this > list this morning, if everyone was as inconsiderate > as yourself > > -Original Message- > From: Mic

RE: Help With Schema Support

2001-02-23 Thread Brandon Rife
Please refrain from 521K attachments. I downloaded 80+ messages from this list this morning, if everyone was as inconsiderate as yourself -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2001 9:54 AM To: [EMAIL PROTECTED] Subject:

Re: Using xml schema

2001-02-23 Thread Ian Roberts
On Thu, 22 Feb 2001, Alex Neth wrote: > > The DocumentBuilder API is part of the Sun API, whereas the DOMParser is > proprietary to Xerces. > > I was just wondering why this class exists when it is redundant. DocumentBuilder is part of JAXP, a standard API for XML parsing. The idea is that if

RE: AW: Validation ?

2001-02-23 Thread Ian Roberts
On Thu, 22 Feb 2001, Michael Duffy wrote: > I've got a few features turned on: > > parser.setFeature("http://xml.org/sax/features/validation";, > true); > > parser.setFeature("http://apache.org/xml/features/validation/dynamic";, > true); > > parser.setFeature("http://apache.org/xml/features/val

Re: win-1251 encoding support

2001-02-23 Thread jean-frederic clere
olegabr wrote: > > I've done it and encoding==cp1251 > but it is not supported by xerces > > question: how can I convert my files in one of encodings > that is already supported? For these thing I use iconv: +++ iconv -f cp1251 -t 8859_1 toto.xml +++ There also a native2ascii in most JVM distri

Re: RE : (No Subject)

2001-02-23 Thread Andy Clark
M Thirumal Kumar wrote: > My address is > > 104 , Sai Balaji Towers, > near Dhurgam Cheervu, > Kavuri hills, > Hydrabad 500 034. Party at Thirumal's place! BYOP (bring your own parser) ;) -- Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]

Re: Using xml schema

2001-02-23 Thread Alex Neth
The DocumentBuilder API is part of the Sun API, whereas the DOMParser is proprietary to Xerces. I was just wondering why this class exists when it is redundant. I guess you are actually setting the sax feature http://xml.org/sax/features/validation to true in order to enable parsing on the DOMP

RE : (No Subject)

2001-02-23 Thread M Thirumal Kumar
Hi Mathur, Yes. I have pretty much settled here. All my things reached through road yesterday . I have applied for a telephone with DOT,those guys promised to install the phone in a weeks' time . It is more than two weeks since I applied and now their response is that they will let me know my

Re: win-1251 encoding support

2001-02-23 Thread Andy Clark
olegabr wrote: > I've done it and encoding==cp1251 > but it is not supported by xerces Just for a sanity check, have you tried "Cp1251" -- the case- sensitive version of the string that matches the Java byte decoder class name? -- Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]

Help on Xerces-j1.3.0: sample coding wanted!

2001-02-23 Thread Casey Chan
Hi, I'm using Xerces-j1.3.0. I want to dump some xml output according to the following dtd: If my output should be like the following: What should my java code using Xerces j1.3.0 look like? Thanks, Casey

Re: Getting started ...

2001-02-23 Thread Martin Welch
Neil, That didn't work :o( I did affect the result however. Now I get these errors: org/apache/xml/serialize/BaseMarkupSerializer.java [951:1] No method found matching getPublicId() startDTD( docType.getName(), docType.getPublicId(), docType.getSystemId() ); org/apache/xml/s

Using the xalan java extension with "java.exe" vs. "jview.exe"

2001-02-23 Thread nng
Hi, I am using Xalan 1.x with the java extension on Windows NT. However, when I use "java.exe" to run my program, the java function never gets called from the XSLT. If I use jview.exe, it is working fine. I've been using jview.exe for a little while but now I am at the point that I must switch to

Re: Using xml schema

2001-02-23 Thread Michael Duffy
The name says it all, Alex: it's a parser that parses an XML document and creates a DOM tree. Your DocumentBuilder is probably using one behind the scenes to do the same thing. The only difference is that you're DocumentBuilderFactory uses methods like setNamespaceAware() and setValidating() i

Re: AW: Validation ?

2001-02-23 Thread Michael Duffy
Milind: If I understand what the ErrorHandler is supposed to do, it's going to have its warning, error, and fatal error methods called when there's a problem. (The argument to each one is SAXParseException.) I thought that passing a document that was invalid against the schema would trigger one

Re: Xerces-j1.3.0 not compiling XPath.Axis

2001-02-23 Thread Andy Clark
caroline o'reilly wrote: > org.apache.xerces.validators.schema.identity.Selector > 'The type names XPath.Axis is not defined'. > > Do anyone know why this is. The XPath class has been > imported and all the inner classes such as Axis are > there. Sounds like a VisualAge bug. -- Andy Clark * IBM

Re: win-1251 encoding support

2001-02-23 Thread Andy Clark
Mark Diekhans wrote: > The IANA name is `windows-1251'; try `Cp1251', which is probably the > alias java is using. (Cp == Code page). I stand corrected. Thank you. For the official list, check out: http://www.isi.edu/in-notes/iana/assignments/character-sets In the meantime, if you want to use

Re: AW: Validation ?

2001-02-23 Thread Milind Gadre
Michael, why don't you throw the exception from the error and warning methods??? Just printing the error is essentially not doing anything. Regards... Milind Gadre ecPlatforms, Inc 901 Mariner's Island Blvd, Suite 565 San Mateo, CA 94404 C: 510-919-0596 F: 815-352-0779 [EMAIL PROTECTED] > > I wr

Re: Re: win-1251 encoding support

2001-02-23 Thread Milind Gadre
Neil, it may help to do a 'equalsIgnoreCase' on the encoding name, would save folks a lot of headaches and confusion. Regards... Milind Gadre ecPlatforms, Inc 901 Mariner's Island Blvd, Suite 565 San Mateo, CA 94404 C: 510-919-0596 F: 815-352-0779 [EMAIL PROTECTED] > Hello, > > Try "CP1251" (nlo

Re: Re: win-1251 encoding support

2001-02-23 Thread Milind Gadre
Try (a) UTF-8, (b) leave out the encoding attribute, or (c) look at the following URL to determine the correct encoding name. Java, Xerces, XML standards etc tend to use small variations, such as different capitalizations, with or without hyphen etc. So experimentation would help. http://java.sun.