Re: xerces2 compatible with xerces 1.x

2004-12-06 Thread Michael Glavassevich
[EMAIL PROTECTED] wrote on 12/06/2004 05:23:42 PM: > Hi, > > I uses Xerces2 for XML Schema API. However, there are other parts of our > system that are certified to work with only xerces 1.x. Wondering if I > switch out the 1.x with 2.x, will the old code that uses xerces 1.x > continue to work?

xerces2 compatible with xerces 1.x

2004-12-06 Thread hari_dhandapani
Hi, I uses Xerces2 for XML Schema API. However, there are other parts of our system that are certified to work with only xerces 1.x. Wondering if I switch out the 1.x with 2.x, will the old code that uses xerces 1.x continue to work? In other words, is Xerces2 backward compatible? Alternatively,

Re: Problem with grammar pool

2004-12-06 Thread Jeff Greif
If this was all you had to use, you would be safe to invalidate B and A if C changed. A certainly depends on C, and B possibly. X,Y and Z cannot depend on C if C is not in the pool already. The tricky part is what to do if Y changes, since A, B and/or C might depend on it. I'm not sure there's

Re: Problem with grammar pool

2004-12-06 Thread Bob Foster
Wish it were that easy. After parsing the instance document, the grammar pool holds X,Y,Z,A,B,C. Now C is changed, and the resulting parse replaces C in the grammar pool. Which others should be invalidated? Multiple namespaces may be involved. It is not certain from this information there is an

Re: Problem with grammar pool

2004-12-06 Thread Jeff Greif
You would find out, for example, that Before parsing A.xsd, the grammar pool held X,Y,Z After parsing A, it held X,Y,Z,A,B,C. So B,C were imported during the parse of A. You could save dependency trees based on this information. Jeff - Original Message - From: "Bob Foster" <[EMAIL PROT

Re: Problem with grammar pool

2004-12-06 Thread Bob Foster
Jeff Greif wrote: Another not-very-appealing possibility is to iterate over the grammar pool before and after parsing the document or root schema and look at the change. I'm not sure what I would find out from this. This assumes the grammar pool is not used by multiple threads. It is, but I have a

Re: Problem with grammar pool

2004-12-06 Thread Jeff Greif
Another not-very-appealing possibility is to iterate over the grammar pool before and after parsing the document or root schema and look at the change. This assumes the grammar pool is not used by multiple threads. Jeff - Original Message - From: "Bob Foster" <[EMAIL PROTECTED]> To: <[EMA

Re: Problem with grammar pool

2004-12-06 Thread Bob Foster
Yes, you could do that. Then if you had seen a sequence of schemas and later one of these changed you could just throw away everying in the sequence preceding the changed schema. Assuming that which schema changes is somewhat random, you will, on average, throw away half of the cache related to

RE: Problem with grammar pool

2004-12-06 Thread Christopher Ebert
Hi, Maybe I'm being naïve, but couldn't you get the dependency information by using an EntityResolver? I guess you wouldn't be able to tell the difference between [A includes B includes C] and [A includes B and C], but it would give you a rough idea and since it's really the 't

Re: xml schema description file for XSL files

2004-12-06 Thread csaba . szucs
Hello George and Martin, lots of thanks for You for Your rapid answers! :) I think I will use an XSLT processor... Kind regards, Csaba Szucs George Cristian Bina <[EMAIL PROTECTED]> 12/06/2004 01:06 PM Please respond to xerces-j-user                 To:        [EMAIL PROTECTED]    

Re: xml schema description file for XSL files

2004-12-06 Thread George Cristian Bina
Hi Csaba, For XSLT 2.0 there is a schema in the spec. XSLT 1.0 has only a DTD in the spec but you can use TRANG for instance to convert it to a schema. If your task is to validate XSLT then a better approach is o use an XSLT processor to do that. It will check more that a validation against a s

Re: xml schema description file for XSL files

2004-12-06 Thread Martin Vysny
[EMAIL PROTECTED] wrote: I mean, I need an xsd file for the XSLT part of XSL specification Does it exist somewhere? There is a DTD in appendices of W3C XSLT specification. However DTD cannot describe rules such as 'any element not from XSLT namespace' hence it cannot describe XSLT correctly.

xml schema description file for XSL files

2004-12-06 Thread csaba . szucs
 I mean, I need an xsd file for the XSLT part of XSL specification Does it exist somewhere? Kind regards, Csaba Szucs - Forwarded by Csaba Szucs/ve/eu/au/cag on 12/06/2004 12:37 PM - Csaba Szucs 12/06/2004 12:32 PM         To:        [EMAIL PROTECTED]         cc:          

xml schema description file for XSL files

2004-12-06 Thread csaba . szucs
Hello Xerces Users, I would like to (schema)-validate XSL files. Does an .xsd file exist for the XML document type of XSL files? Where can I download it from? Thanks, Kind regards, Csaba Szucs

RE: Regarding characters function

2004-12-06 Thread Suresh Babu Koya
Read this: http://xml.apache.org/xerces2-j/faq-sax.html#faq-2 >>-Original Message- >>From: Suresh Babu Koya [mailto:[EMAIL PROTECTED] >>Sent: Monday, December 06, 2004 3:42 PM >>To: [EMAIL PROTECTED]; IndianAtTech >>Subject: RE: Regarding characters function >> >> >>You have to collect all

Re: Regarding characters function

2004-12-06 Thread IndianAtTech
could u please provide me an example On Mon, 06 Dec 2004 15:41:39 +0530, Suresh Babu Koya <[EMAIL PROTECTED]> wrote: > You have to collect all the string data and process all that > data in the endElement method. > > /Suresh > > > > >>-Original Message- > >>From: IndianAtTech [mailto:

RE: Regarding characters function

2004-12-06 Thread Suresh Babu Koya
You have to collect all the string data and process all that data in the endElement method. /Suresh >>-Original Message- >>From: IndianAtTech [mailto:[EMAIL PROTECTED] >>Sent: Monday, December 06, 2004 3:20 PM >>To: [EMAIL PROTECTED] >>Subject: Regarding characters function >> >> >>Hello

Regarding characters function

2004-12-06 Thread IndianAtTech
Hello All, How many times the characters functions is called, if the value in XML set as multiline data When I have tested the following code snippet, I am not getting all the multi line data in single shot. characters function is calling multiple times. I don't know where to end for single elem

RE: validating documents (SOAP messages) with no schemaLocation attribute

2004-12-06 Thread Michael Glavassevich
There is a bug in Xerces 2.6.x which causes the external schema location properties to be ignored if the values of features/properties do not change between parses. This has been fixed for a while now in CVS. Without a schema location another way to locate your schema is with an entity resolver