AW: [xml] IDC bug?

2006-04-06 Thread Kasimier Buchcik
Hi, -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Frans Englich Gesendet: Mittwoch, 5. April 2006 17:24 An: xml@gnome.org Betreff: [xml] IDC bug? Either I'm not using IDCs correctly(which may very well be the case), or there's

Re: [xml] Win32 compile settings

2006-04-04 Thread Kasimier Buchcik
Hi, Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Coleman Brumley Gesendet: Dienstag, 4. April 2006 14:34 An: xml@gnome.org Betreff: [xml] Win32 compile settings What settings were used to compile the Win32 binaries at zlatkovic.com? cruntime=/MT, cruntime=/MTd,

[xml] XSLT - changed handling of attrs exclude-result-prefixes andextension-element-prefixes

2006-03-31 Thread Kasimier Buchcik
Title: XSLT - changed handling of attrs exclude-result-prefixes andextension-element-prefixes Hi, We changed the handling of exclude-result-prefixes and extension-element-prefixes in Libxslt. Daniel noted that this change will probably break some XSLT stuff out there, so I want to notify

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-03-24 Thread Kasimier Buchcik
Hi, I want to inform you that I currently put the aside the intention of adding xmlDOMWrapSetAttr(Node) and xmlDOMWrapRemoveAttr(Node) functionality. Looking at the code of the Delphi-wrapper, I'm having difficulties in finding oppropriate code to be put into Libxml2, which does what I need

Re: [xml] Namespaces

2006-03-20 Thread Kasimier Buchcik
Hi, On Mon, 2006-03-20 at 11:00 -0500, Jason Viers wrote: [...] When children are created, they automatically inherit their parents' ns, so as long as you call xmlSetNs before any further children are added, they'll use the prefix too. If you want a child node to NOT use the prefix, just

Re: [xml] XML Schema Help

2006-03-02 Thread Kasimier Buchcik
Hi, Although your example is not complete, I'll try to comment your scenario: 1) Import the correct schema for XML: xs:import namespace=http://www.w3.org/XML/1998/namespace; schemaLocation=http://www.w3.org/2001/xml.xsd/ 2) Define the simple-type gemq:GEMPriceCode, which you

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-27 Thread Kasimier Buchcik
Hi, On Sat, 2006-02-25 at 08:09 -0500, Rob Richards wrote: [EMAIL PROTECTED] wrote: [...] functions). Lastly, if the function is only returning a 0 or -1, would it make more sense to just return the actual attribute (again similar to the libxml2 function). i.e.: xmlAttrPtr

[xml] Search for DTD's attr decls in xmlGetNsProp() and xmlHasNsProp()

2006-02-27 Thread Kasimier Buchcik
Hi, The code for looking up default/fixed attributes in the DTD in the functions xmlGetNsProp() and xmlHasNsProp() differs. I think this lookup is broken in xmlGetNsProp(): it won't find an attribute with a prefix, unless @name is intended to be a QName, but I don't think so, since it is compared

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-24 Thread Kasimier Buchcik
Hi, On Thu, 2006-02-23 at 17:44 -0500, Rob Richards wrote: Daniel Veillard wrote: On Thu, Feb 23, 2006 at 09:49:04PM +0100, [EMAIL PROTECTED] wrote: Thinking this over again, plus taking into account what you said about reusing the code in tree.c, I now think that the DOM-wrapper

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-24 Thread Kasimier Buchcik
Hi, On Fri, 2006-02-24 at 07:05 -0500, Rob Richards wrote: Kasimier Buchcik wrote: [...] OK. Now that I have disgusted you with the narrow entry point: can we already foresee which additional xmlDOMWrapXXX functions we need? I think it would be good for Daniel to see what additional

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-23 Thread Kasimier Buchcik
Hi On Wed, 2006-02-22 at 19:39 -0500, Rob Richards wrote: Kasimier Buchcik wrote: Hi, On Tue, 2006-02-21 at 16:06 +0100, Kasimier Buchcik wrote: Hi, On Tue, 2006-02-21 at 08:56 -0500, Rob Richards wrote: Kasimier Buchcik wrote: As far as copy/import/adopt

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-23 Thread Kasimier Buchcik
Hi, An interesting idea about switching ID indexing on/off: http://www.jdom.org/pipermail/jdom-interest/2002-November/011001.html Kasimier ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-23 Thread Kasimier Buchcik
Hi, On Thu, 2006-02-23 at 07:29 -0500, Daniel Veillard wrote: On Thu, Feb 23, 2006 at 01:03:24PM +0100, Kasimier Buchcik wrote: The problem occurs regardless of a validation being performed or not. Example: !DOCTYPE foo [ !ELEMENT foo (bar) !ELEMENT bar !ATTLIST bar myId

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-23 Thread Kasimier Buchcik
Hi, On Thu, 2006-02-23 at 08:08 -0500, Rob Richards wrote: Kasimier Buchcik wrote: Hi On Wed, 2006-02-22 at 19:39 -0500, Rob Richards wrote: How do you figure (or are you referring to the case of a document not parsed in validating mode)? A DTD doesn't allow a redefinition

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-23 Thread Kasimier Buchcik
Hi, On Thu, 2006-02-23 at 09:15 -0500, Daniel Veillard wrote: On Thu, Feb 23, 2006 at 03:05:46PM +0100, Kasimier Buchcik wrote: [ ... cut an invalid example ... ] According to Daniel, the IDness based on DTDs can really be queried by a element/attribute combination, without caring

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-23 Thread Kasimier Buchcik
Hi, On Thu, 2006-02-23 at 11:08 -0500, Rob Richards wrote: Daniel Veillard wrote: On Thu, Feb 23, 2006 at 04:05:21PM +0100, Kasimier Buchcik wrote: Daniel, could we have that flag field on xmlDoc? Explain clearly the semantic of it. A priori I'm not too fond of it if we

Re: [xml] Fwd: Patch: Null prefix namespaces not cloned

2006-02-22 Thread Kasimier Buchcik
Hi, On Wed, 2006-02-22 at 11:17 +1300, Andrew Miller wrote: [...] From DOM Level 2 Core specification: As far as the DOM is concerned, special attributes used for declaring XML namespaces are still exposed and can be manipulated just like any other attribute. However, nodes are permanently

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-22 Thread Kasimier Buchcik
Hi, On Tue, 2006-02-21 at 16:06 +0100, Kasimier Buchcik wrote: Hi, On Tue, 2006-02-21 at 08:56 -0500, Rob Richards wrote: [...] About 2b): I would be happy if we could agree on using the adopt semantics prior to handing nodes over to tree-modyfing functions. Although

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-21 Thread Kasimier Buchcik
Hi, On Tue, 2006-02-21 at 16:06 +0100, Kasimier Buchcik wrote: Hi, On Tue, 2006-02-21 at 08:56 -0500, Rob Richards wrote: Kasimier Buchcik wrote: As far as copy/import/adopt goes. I have found a couple of conflicting opinions for this. One is that the importing doc should determine

Re: [xml] XSD Schema validation issues with boolean type.

2006-02-20 Thread Kasimier Buchcik
Hi, The xs:boolean bug is fixed in CVS, xmlschemastypes.c, revision 1.106. The XSI bug is fixed in CVS, xmlschemas.c, revision 1.193. Thanks for the report! Regards, Kasimier [...] ___ xml mailing list, project page http://xmlsoft.org/

Re: [xml] Stupid Windows build question!

2006-02-15 Thread Kasimier Buchcik
On Tue, 2006-02-14 at 18:34 -0500, [EMAIL PROTECTED] wrote: I hate windows. I downloaded the libxml2 latest release (2.6.23) binaries from http://www.zlatkovic.com/libxml.en.html. I can't seem to tell if they are compiled with /MD or /MT. If anyone can give me a clue it would be

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-15 Thread Kasimier Buchcik
Hi, Bugzilla: http://bugzilla.gnome.org/show_bug.cgi?id=331273 Regards, Kasimier ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

Re: [xml] Push-parsing Unicode with LibXML2

2006-02-15 Thread Kasimier Buchcik
Hi, On Wed, 2006-02-15 at 08:50 -0500, Rob Richards wrote: After reading this thread and the comments in the bug report I have a few questions/comments. Kasimier Buchcik wrote: To me the most logical would be to do surgery on your input stream you are modifying it by changing its

[xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-03 Thread Kasimier Buchcik
Hi, We have the following code in tree.c, xmlCopyPropInternal(): if ((target!= NULL) (cur!= NULL) (target-doc != NULL) (cur-doc != NULL) (cur-doc-ids != NULL) (cur-parent != NULL)) { if (xmlIsID(cur-doc, cur-parent, cur)) { [... add the id to the target doc ...] }

Re: [xml] Potential wrong usage of xmlIsID() in tree.c

2006-02-03 Thread Kasimier Buchcik
Hi, On Fri, 2006-02-03 at 11:13 -0500, Daniel Veillard wrote: On Fri, Feb 03, 2006 at 03:52:46PM +0100, Kasimier Buchcik wrote: Hi, We have the following code in tree.c, xmlCopyPropInternal(): if ((target!= NULL) (cur!= NULL) (target-doc != NULL) (cur-doc != NULL

Re: [xml] Getting complextype name and datatype from XML Schema

2006-01-26 Thread Kasimier Buchcik
On Thu, 2006-01-26 at 11:45 +0100, Trond Aksel Myklebust wrote: Hello, If I got a XML document with XML Schema defined for it, is it possible for a given node in the XML document to get the complexType name (if existing) the node belongs to and the datatype for the node? I.e, if I got a

[xml] Re: --tests working in win32---hi all thank you for your wonderfull support----

2006-01-18 Thread Kasimier Buchcik
Hi, On Wed, 2006-01-18 at 20:40 +0530, venkat naidu wrote: [...] later one of my friend said we require even testapi.exe ( most important) for testing.. so again i gone through MakeFile.msvc , some where in utils: task i have added testapi.exe Yes, we need to add testapi.exe to the 3

Re: [xml] thanks a lot ---some more help ---

2006-01-17 Thread Kasimier Buchcik
Hi, On Mon, 2006-01-16 at 18:50 +0530, venkat naidu wrote: thanks a lot Mr.daniel i think it will be a lenghty mail but i want explain you all so that you wont feel bad.. okk i have given libXML 2.6.20 and i was supposed to build binaries in win32 system , i have follwed the

RE: [xml] LSB specification for libxml2 library

2006-01-16 Thread Kasimier Buchcik
to the type-definitions of that module as they are currently displayed at: http://www.linuxbase.org/spec//book/XML/XML.html ; i.e. I'm fine with them. Regards, Kasimier Thanks again, -Rajesh -Original Message- From: Kasimier Buchcik [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03

Re: [xml] LSB specification for libxml2 library

2006-01-03 Thread Kasimier Buchcik
Hi, On Mon, 2006-01-02 at 15:53 -0800, Banginwar, Rajesh wrote: Hi, Please find the LSB specification for libxml2 library at http://www.linuxbase.org/spec//book/XML/XML.html. The plan is to have a separate module for XML. For the time being, libxml2 library will part of LSB desktop

Re: [xml] xmlCopyNode that doesn't copy a namespace?

2006-01-03 Thread Kasimier Buchcik
Hi, On Tue, 2006-01-03 at 03:27 -0500, Daniel Veillard wrote: On Mon, Jan 02, 2006 at 10:31:46PM +0100, [EMAIL PROTECTED] wrote: So I'm just repeating my question in case it went out of focus: Does anyone see problems wrt adding a public wrapper for xmlStaticCopyNode() which also takes a

Re: [xml] Crash in xmlschemas.c when validating XML containing mixed CDATA section

2005-12-20 Thread Kasimier Buchcik
Hi, On Mon, 2005-12-19 at 14:14 -0800, Judy Hay wrote: Hi, I'm running into a problem with the XML schema validation code when applied to CDATA sections that happen to have some trailing whitespace. It seems to be isolated to cases where a namespace is being used. The following XML

Re: [xml] libxml2 and default namespaces

2005-12-13 Thread Kasimier Buchcik
On Tue, 2005-12-13 at 02:17 +0100, Paul Boddie wrote: Hello! Don't worry, I don't think this is trivia. I'm happy that this issue reached the surface once again, since it seems to me still underestimated by DOM users. I guess the most people using DOM think that there's no way of how

Re: [xml] libxml2-2.6.22 tests

2005-12-09 Thread Kasimier Buchcik
Hi, On Fri, 2005-12-09 at 04:29 -0500, Daniel Veillard wrote: On Thu, Dec 08, 2005 at 03:44:14PM -0800, Manish Marathe wrote: Hello, If I run libxml2-2.6.22 tests by two different ways 1 way: ./runtest ./runsuite ./testapi a) 546 errors for Microsoft schema tests

Re: [xml] XMLSchema-Instance broken in 2.6.22 ?

2005-11-23 Thread Kasimier Buchcik
Hi On Wed, 2005-11-23 at 16:51 +0100, Julien Lamy wrote: Hi folks, As the title indicates, XMLSchema-Instance seems to be broken in version 2.6.22 of libxml2. Consider the following person.xsd file : ?xml version=1.0 encoding=UTF-8? xsd:schema

[xml] In case you have problems validating XHTML 1.1 with XML Schema...

2005-11-22 Thread Kasimier Buchcik
Hi, there was a bug which made the XML Schema processor fail to redefine some of the components of the XHTML 1.1 schemas. This is now fixed in CVS: xmlschemas.c, revision 1.181. In case someone's interested, here are the schemata:

[xml] Adding xmlSchemaSetParserStructuredErrors() to the XML Schema API

2005-11-18 Thread Kasimier Buchcik
Hi, Does someone object to add the following function to the XML Schema API? It assigns a structured error callback to the parser context. We have already a xmlSchemaSetValidStructuredErrors() counterpart for the validation context, but for the parser context this was missing. XMLPUBFUN void

Re: [xml] XML Schema: Nillable custom type error (PATCH)

2005-11-08 Thread Kasimier Buchcik
Hi, On Mon, 2005-11-07 at 19:33 -0500, Sir Woody Hackswell wrote: Wow! You're right! I respectfully disagree with the standard, but it's what we must follow. Nillable to me meant that it could have a null value. It seems silly to me to declare that it's empty... because you can just

Re: [xml] XML Schema: Nillable custom type error (PATCH)

2005-11-07 Thread Kasimier Buchcik
Hi, On Sat, 2005-11-05 at 20:23 -0500, Sir Woody Hackswell wrote: Hello, all! I believe I've come across a problem with Schema validation. Here's my scenario: I have a custom type (in this example, pricetype. My Element is nillable, but the validator always bombs on it, because the item

Re: [xml] crash in xmlSchemaFormatNodeForError when node is document

2005-11-07 Thread Kasimier Buchcik
Hi, On Mon, 2005-11-07 at 08:08 -0500, Rob Richards wrote: When validating with a schema against an empty document, xmlSchemaFormatNodeForError crashes because the document node, passed in from xmlSchemaValidateDoc, does not have node-ns and passes the if (node-ns != NULL) test resulting

Re: [xml] Bug in xmlSchemaParse() in libxml2 2.6.22?

2005-10-31 Thread Kasimier Buchcik
Hi Samuel, On Fri, 2005-10-28 at 22:45 +0200, Samuel Díaz García wrote: Can I do that recompiling 2.6.22 to view where is the posible bug? Yes, check out the library with CVS - tagged with LIBXML2_2_6_22. Using the xmllint util as you put on your message? Or putting in a queue overloading

Re: [xml] Bug in xmlSchemaParse() in libxml2 2.6.22?

2005-10-28 Thread Kasimier Buchcik
Hi, On Wed, 2005-10-26 at 19:24 +0200, Samuel Díaz García wrote: I upgraded libxml2 version and a bug encountered in this release: regexp error : Memory allocation failed : adding transition [...] With the current CVS head I get the following with xmllint: $ xmllint --noout --schema

Re: [xml] Bug in xmlSchemaParse() in libxml2 2.6.22?

2005-10-28 Thread Kasimier Buchcik
Hi, On Fri, 2005-10-28 at 04:46 -0400, Daniel Veillard wrote: On Fri, Oct 28, 2005 at 10:27:36AM +0200, Kasimier Buchcik wrote: $ xmllint --noout --schema ORM_O01.xsd 46\(tabla\).xml 46(tabla).xml validates Could you add them to the regression tests, so I'm sure I don't break

Re: [xml] On validating a DOM with a schema, in Python

2005-10-25 Thread Kasimier Buchcik
Hi, On Tue, 2005-10-25 at 17:14 +0200, Meunier, Jean-Luc wrote: Hi, In Python, I need to validate a DOM tree using a W3C XML schema, but I cannot figure out how to do it. It seems that the C-function xmlSchemaValidateDoc does the job but I’m lost in the Python binding.

Re: [xml] speed between XPath SAX xmlReader

2005-10-24 Thread Kasimier Buchcik
Hi, On Mon, 2005-10-24 at 12:39 +0200, nico wrote: thank you daniel hi all, i have to get node contents of a simple doc of 100 nodes like this [...] which parser is appropriate for that job? i nee the faster one. XPath is not a parser !!! SAX2 should be the fastest, but it

Re: [xml] speed between XPath SAX xmlReader

2005-10-24 Thread Kasimier Buchcik
Hi, On Mon, 2005-10-24 at 13:28 +0200, nico wrote: hi, i didn't know that 100 nodes are peanuts. thanks for that point. I get the following times for an example document with 100 nodes and xmllint's default parsing which includes deallocation: real0m0.003s user0m0.002s sys

Re: [xml] speed between XPath SAX xmlReader

2005-10-24 Thread Kasimier Buchcik
Hi, On Mon, 2005-10-24 at 14:26 +0200, nico wrote: hi do you include error check for such result? Le 24 oct. 05, à 14:14, Kasimier Buchcik a écrit : I get the following times for an example document with 100 nodes and xmllint's default parsing which includes deallocation: real

Re: [xml] speed between XPath SAX xmlReader

2005-10-24 Thread Kasimier Buchcik
, 2005-10-24 at 14:26 +0200, nico wrote: hi do you include error check for such result? Le 24 oct. 05, à 14:14, Kasimier Buchcik a écrit : I get the following times

Re: [xml] libxml2 tests

2005-10-19 Thread Kasimier Buchcik
On Tue, 2005-10-18 at 14:22 -0700, Manish Marathe wrote: I ran tests for libxml 2.6.22 I executed three different test scripts 1) runtest (2608 tests) 2) runsuite (1471 tests) [...] There should be Total 32064 tests for runsuite. Try make tests in the xstc subfolder in order to

Re: [xml] Is libxml2 website down?

2005-10-19 Thread Kasimier Buchcik
Hi, On Wed, 2005-10-19 at 10:14 -0700, Jain, Nilesh wrote: I am having difficulty accessing the download and release links, though I am able to access home page. Try http://www.veillard.com/libxml instead. Regards, Kasimier ___ xml mailing list,

Re: [xml] xmllint problems

2005-10-18 Thread Kasimier Buchcik
On Tue, 2005-10-18 at 13:16 +0200, [EMAIL PROTECTED] wrote: When I run xmllint with --valid or --postvalid it does crash when using the XML output of MAME as input (http://www.breaken.de/temp/output.xml). Cannot reproduce the crash on my Debian (sarge) box: [EMAIL

Re: AW: Re: [xml] xmllint problems

2005-10-18 Thread Kasimier Buchcik
Hi, On Tue, 2005-10-18 at 14:43 +0200, [EMAIL PROTECTED] wrote: On Tue, 2005-10-18 at 13:16 +0200, [EMAIL PROTECTED] wrote: When I run xmllint with --valid or --postvalid it does crash when using the XML output of MAME as input (http://www.breaken.de/temp/output.xml). Cannot reproduce

Re: [xml] How to creata one big DOM from Multiple DOMS

2005-10-12 Thread Kasimier Buchcik
On Tue, 2005-10-11 at 13:28 -0400, Daniel Veillard wrote: On Tue, Oct 11, 2005 at 12:16:39PM -0500, Vedantam, Pavan wrote: Hi, I am using Libxml2 to parse the xml documents and build DOMS, I would like to know if there is a provision for linking the DOMS so that all the DOMS are under

Re: [xml] xmlSchemaSAXPlug and xsi:schemaLocation

2005-10-12 Thread Kasimier Buchcik
Hi, On Tue, 2005-10-11 at 17:12 -0400, Daniel Veillard wrote: On Tue, Oct 11, 2005 at 10:02:38PM +0100, Graham Bennett wrote: On Mon, Oct 10, 2005 at 10:30:06AM +0200, Kasimier Buchcik wrote: Create the schema validation context with a NULL for the @schema argument if you want to switch

Re: [xml] XML regression test cases...

2005-10-11 Thread Kasimier Buchcik
Hi, On Tue, 2005-10-11 at 09:52 -0400, Daniel Veillard wrote: On Tue, Oct 11, 2005 at 11:40:54AM +0200, Kasimier Buchcik wrote: Another question related to internal regression test suite (runtest), Are they used to confirm the behavior of public interface or What part of library do

Re: [xml] Encoding UTF-8

2005-10-06 Thread Kasimier Buchcik
Hi, On Thu, 2005-10-06 at 18:57 +0200, Juan David Palomino wrote: Hi to all, i have problems generating a file with encoding UTF-8. I don't know what to do to create the files with encoding UTF-8. Now i create the xml files without any encoding. What function or method set the encoding?

Re: [xml] Encoding UTF-8

2005-10-06 Thread Kasimier Buchcik
Hi, On Thu, 2005-10-06 at 19:44 +0200, Juan David Palomino wrote: OK. But what i must to do to save de xml into a string? Can you tell me how to use xmlSaveFileTo? I 'm not to be able to pass a xmlOutputBufferPtr to a string. Did you already looked at:

Re: [xml] Validation problems with an XML without default namespace

2005-09-30 Thread Kasimier Buchcik
Hi, On Thu, 2005-09-29 at 18:36 +0200, Samuel Díaz García wrote: Dear guys, first sorry for my english, and second, the problem. I have a plain XML in a memory buffer as: E1 /E1 Parsed in a xmlDocPtr without problems. In the other hand I have a XSD file to validate the XML buffer

Re: [xml] xmlSchemaParse function

2005-09-26 Thread Kasimier Buchcik
Hi, On Mon, 2005-09-26 at 02:16 +0200, Luka Por wrote: Hello. Library is great, but from version 2-2.6.20 to version 2-2.6.22 i discover same difference. I using xmlSchemeParse(...) to validate document. In version 2-2.6.20 xmlSchemaParse spends 4 seconds, but now in version 2-2.6.22

Re: [xml] xmlSchemaParse function

2005-09-26 Thread Kasimier Buchcik
Hi, On Mon, 2005-09-26 at 10:30 -0400, Daniel Veillard wrote: On Mon, Sep 26, 2005 at 10:00:27AM -0400, Daniel Veillard wrote: On Mon, Sep 26, 2005 at 02:16:28AM +0200, Luka Por wrote: Hello. Library is great, but from version 2-2.6.20 to version 2-2.6.22 i discover same

Re: [xml] Where can I get the declaration of a non global element in xmlSchema (using libxml2-2.6.22) ?

2005-09-16 Thread Kasimier Buchcik
On Fri, 2005-09-16 at 09:29 +0200, GUY Fabrice wrote: Hi, I use the xmlSchemaBasicItem type as the internal most basic type for all the schema structs. It would probably be good if the accessor functions would take only this type, to be

Re: [xml] Where can I get the declaration of a non global element in xmlSchema (using libxml2-2.6.22) ?

2005-09-16 Thread Kasimier Buchcik
On Fri, 2005-09-16 at 09:29 +0200, GUY Fabrice wrote: [...] Maybe you could start a new tread with a more appropriate title... Sorry, I forgot... yeah, start a new thead if you like. Regards, Kasimier ___ xml mailing list, project page

Re: [xml] Where can I get the declaration of a non global element in xmlSchema (using libxml2-2.6.22) ?

2005-09-15 Thread Kasimier Buchcik
Hi, On Thu, 2005-09-15 at 11:12 +0200, GUY Fabrice wrote: Hi, ...so OK for the deal, I can try to do that, starting with element declarations, then maybe IDC definitions. But I must confess that I have absolutly no idea of the difficulty of this task. Great! I use the xmlSchemaBasicItem

Re: [xml] Question about error reporting when using key / keyref constraints in Schema

2005-08-23 Thread Kasimier Buchcik
Hi, On Thu, 2005-08-18 at 18:58 +0200, GUY Fabrice wrote: But I noticed that for key and unique constraints, there is no more indication about the name of the constraint that failed to validate. For example the following xml file : ?xml version=1.0 encoding=ISO-8859-1 standalone=no?

Re: [xml] memory usage question

2005-08-17 Thread Kasimier Buchcik
Hi, On Wed, 2005-08-17 at 10:08 -0400, Daniel Veillard wrote: On Wed, Aug 17, 2005 at 10:04:08AM -0400, Rob Richards wrote: Daniel Veillard wrote: Ho ho ... if it's really the same document on both side there is something fishy, I can't think of anything leading to this, seems it's

Re: [xml] Question about error reporting when using key / keyref constraints in Schema

2005-08-11 Thread Kasimier Buchcik
Hi, On Thu, 2005-08-11 at 13:14 +0200, GUY Fabrice wrote: Hi, I'm using key / keyref constraints in my schema, and in case of error the behaviour of the report message is not the same with libxml2-2.6.19 and libxml2-2.6.20 : - with the 2.6.19 version, the error is carried by the element

[xml] XML Schema - identity constraint (IDC) bug

2005-08-09 Thread Kasimier Buchcik
Hi, there was a bug [1], which should have hit many real life scenarios when using identity constraints (IDC). Thus I recommend using the fixed xmlschemas.c, revision 1.165, if relying on IDCs. [1] http://bugzilla.gnome.org/show_bug.cgi?id=312957 Greetings, Kasimier

Re: [xml] load() and includes

2005-07-08 Thread Kasimier Buchcik
Hi, On Thu, 2005-07-07 at 12:02 -0500, Trevor Lowing wrote: Question: If I load() an XML schema as an XML document that contains xs:includes, are the includes also loaded into the DOM? In not, as appears to be the case from my attempts, is there any way of doing this? Some XInclude trick

Re: [Fwd: Re: [xml] load() and includes]

2005-07-08 Thread Kasimier Buchcik
Hi, On Sun, 2005-07-10 at 03:32 -0400, Trevor Lowing wrote: since the XML Schemas implementation does it, and the code is there, just read it ! Daniel Sorry to be so thick-skulled but, does the Schemas implementation load all the includes into one big DOM Document? If so, is

Re: [xml] current state of validating against Schemas

2005-07-01 Thread Kasimier Buchcik
Hi, Another missing point: element declarations inside an all model group cannot be used in conjunction with substitution groups yet. This is another limitation of the automaton module. I don't know if such a scenario is existing in the S4S. Regards, Kasimier

Re: [xml] Beginner's question about xPath

2005-07-01 Thread Kasimier Buchcik
Hi, On Thu, 2005-06-30 at 15:52 -0400, Liam R. E. Quin wrote: On Wed, 2005-06-29 at 15:39 -0400, [EMAIL PROTECTED] wrote: I cannot figure out how to use xPath without loading the entire XML into memory. This is an implementation-specific question, and for libxml2 the answer is usually

Re: [xml] current state of validating against Schemas

2005-06-30 Thread Kasimier Buchcik
Hi Frans, On Wed, 2005-06-29 at 22:38 +, Frans Englich wrote: On Monday 27 June 2005 09:04, Kasimier Buchcik wrote: [...] 4. The complex content model cannot be built in some cases [3] [...] A follow up question: how does xmllint's current schema state relate to the Schema

Re: [xml] redicting parts of trees

2005-06-27 Thread Kasimier Buchcik
Hi, On Mon, 2005-06-27 at 09:23 -0400, Rob Richards wrote: Ok, just changing my response now as I just noticed it was committed 2 hours ago. Yes, I was told that it would be easier for someone else to prepare the release if I commit now ;-) We still need a name for the context, unless you are

Re: [xml] redicting parts of trees

2005-06-27 Thread Kasimier Buchcik
Hi, On Mon, 2005-06-27 at 10:44 -0400, Rob Richards wrote: Kasimier Buchcik wrote: The context has just an initial void * _private field, to be able to extend it. Adding fields to it, at the end, won't break ABI compatibility. How do you not break compatibility? For example, A new

Re: [xml] redicting parts of trees

2005-06-27 Thread Kasimier Buchcik
Hi, On Mon, 2005-06-27 at 16:47 +0200, Kasimier Buchcik wrote: Hi, On Mon, 2005-06-27 at 10:44 -0400, Rob Richards wrote: [...] To avoid breaking stuff, shouldn't an additional function be added which returns an initialized context with all fields set to null and be the required way

Re: [xml] Empty element validation problem when extending simple type

2005-06-21 Thread Kasimier Buchcik
Hi, On Mon, 2005-06-20 at 17:56 -0700, Dhyanesh wrote: Hi I am getting a problem in validating xml when extending simple types. [...] The second one extends the simple type myDouble and its validation fails. However if i use the extension base as xs:string or remove the restriction

Re: [xml] XPath and DTD default values

2005-06-20 Thread Kasimier Buchcik
Hi, On Mon, 2005-06-20 at 00:44 +0200, Jonas Holmberg wrote: Hi. I have a question about the XPath implementation. I have tried to get the default attributes from the DTD:s to work with the XPath lookups. I am very new to libxml, so if there is a very well known answer, I'm sorry...

Re: [xml] redicting parts of trees

2005-06-16 Thread Kasimier Buchcik
Hi, On Wed, 2005-05-25 at 18:09 +0200, Kasimier Buchcik wrote: Hi, Martijn Faassen asked about the current status of this issue. My local status was that I added a lot more code than I already posted and was experimenting with different approaches, then started to concentrate on the streaming

Re: [xml] redicting parts of trees

2005-06-16 Thread Kasimier Buchcik
On Thu, 2005-06-16 at 11:53 +0200, Kasimier Buchcik wrote: I'll attach an initial code for a wrapper unlink function. The main I did not. Here it is. Kasimier /* * xmlTreeEnsureXMLDecl: * @doc: the doc * * Ensures that there is an XML namespace declaration on the doc. * * Returns the XML ns

[xml] XML Schema - problem parsing the Schema for Schema

2005-06-15 Thread Kasimier Buchcik
Hi, we adjusted the XS processor to be able to parse the Schema for Schema (S4S) [1], but there remains a problem described in [2]. The S4S is needed e.g. for the XSLT 2.0 schema [3], which imports the S4S. It would be great if someone could spare some resources to analyse/fix the problem. The

Re: [xml] xml schema api

2005-06-13 Thread Kasimier Buchcik
Hi, On Mon, 2005-06-13 at 04:37 -0400, Daniel Veillard wrote: On Sun, Jun 12, 2005 at 05:05:43PM -0700, Yong Chen (yongche) wrote: Thanks Daniel. I just re-subscribed to the list. (I subscribed to the list before, but somehow it didn't work out). What I'm looking for is something

[xml] streaming XML Schema

2005-06-09 Thread Kasimier Buchcik
Hi, the XML Schema processor has been changed to be able to work in streaming mode. No public API has been added yet to use it on streams - but should be available soon. We intend to support SAX2- and XMLReader-driven validation. The XS test suite has been updated to work on the latest tests

Re: [xml] XML Schema 'any' element support

2005-06-08 Thread Kasimier Buchcik
On Wed, 2005-06-08 at 10:24 +0200, Kasimier Buchcik wrote: On Tue, 2005-06-07 at 19:19 +0200, Martijn Faassen wrote: Hi there, I'm getting some validation errors with an XML schema containing the following: any namespace=##other processContents=strict/ The errors

Re: [xml] !ELEMET declarations

2005-05-30 Thread Kasimier Buchcik
Hi, On Mon, 2005-05-30 at 09:45 +0200, Morten W. J. wrote: [...] 2. Is there a way to copule a attribute definition together with a element declaration? That is, i would like to define that element node must have attribute type with a value from a enumeration, and depending on the value

Re: [xml] redicting parts of trees

2005-05-25 Thread Kasimier Buchcik
Hi, On Wed, 2005-05-25 at 18:09 +0200, Kasimier Buchcik wrote: p2 xmlns=urn:test:ZZZ xmlns:default1=urn:test:AAA xmlns:default2=urn:test:BBB/ default1:a / default2:b / /p2 Correction, this should be: p2 xmlns=urn:test:ZZZ xmlns:default1=urn:test:AAA/ default1

Re: [xml] Question about 'union' types in xmlSchemas

2005-05-25 Thread Kasimier Buchcik
Hi, On Wed, 2005-05-25 at 18:16 +0200, GUY Fabrice wrote: Hi, I have this schema : ?xml version=1.0 encoding=ISO-8859-1? xsd:schema xmlns:xsd=http://www.w3.org/2001/XMLSchema; xsd:element name=ELEMENTS xsd:simpleType xsd:union xsd:simpleType

Re: [xml] redicting parts of trees

2005-05-20 Thread Kasimier Buchcik
On Thu, 2005-05-19 at 18:52 -0400, Rob Richards wrote: Rob I noticed that xmlReconciliateNs will break ns-wellformedness in the following case: a1 a2 xmlns:foo=urn:test:mine foo:a3/ /a2 /a if attached to: p xmlns:bar=urn:test:mine/ we get: p xmlns:bar=urn:test:mine a1 a2

Re: [xml] redicting parts of trees

2005-05-20 Thread Kasimier Buchcik
Hi, On Fri, 2005-05-20 at 16:59 +0200, Martijn Faassen wrote: Kasimier Buchcik wrote: [...] Yeah, I read some of the message on your lxml list about your mechanism to keep detached nodes alive if they are referenced by multiple wrapper proxies. We took a sometimes memory-consuming

Re: [xml] redicting parts of trees

2005-05-19 Thread Kasimier Buchcik
Hi, On Mon, 2005-05-16 at 18:12 +0200, [EMAIL PROTECTED] wrote: Hi, Time for a next step. I attached the current sketch of an adopting mechanism. It's not tested - just compiles. It includes an initial on-the-fly reconciliation mechanism which could be adjusted for different purposes per

Re: [xml] redicting parts of trees

2005-05-19 Thread Kasimier Buchcik
Hi, On Thu, 2005-05-19 at 09:03 -0400, Daniel Veillard wrote: On Thu, May 19, 2005 at 01:27:22PM +0200, Kasimier Buchcik wrote: Hi, On Mon, 2005-05-16 at 18:12 +0200, [EMAIL PROTECTED] wrote: Hi, Time for a next step. I attached the current sketch of an adopting mechanism. It's

Re: [xml] redicting parts of trees

2005-05-19 Thread Kasimier Buchcik
Hi, On Thu, 2005-05-19 at 17:16 +0200, Martijn Faassen wrote: Kasimier Buchcik wrote: [snip stuff that goes over his head without a lot of further study] This is just a cheerleading note; I'm really glad you guys are taking this up, as I can already see there are many subtle issues

Re: [xml] redicting parts of trees

2005-05-19 Thread Kasimier Buchcik
Hi, On Thu, 2005-05-19 at 20:37 +0200, Martijn Faassen wrote: Hey, Replying to myself: Martijn Faassen wrote: [snip] But now I wonder: does this only apply to attribute nodes, or also to element nodes which are in a subtree? Testing this.. Ugh, yes, it does. When I move a

Re: [xml] redicting parts of trees

2005-05-19 Thread Kasimier Buchcik
Hi, On Thu, 2005-05-19 at 21:00 +0200, Kasimier Buchcik wrote: [...] An example (in Delphi code): (all vars are interfaces here, not objects) var doc: IDOMDocument; elem: IDOMElement; node: IDOMNode; begin elem := doc.documentElement; // Remove and put on garbage list

Re: [xml] redicting parts of trees

2005-05-19 Thread Kasimier Buchcik
Hi, On Thu, 2005-05-19 at 19:47 +0200, Kasimier Buchcik wrote: Hi, On Thu, 2005-05-19 at 12:43 -0400, Rob Richards wrote: I's not about declaring, not about _storing_. It could be _stored_ on Correction, I'm getting a bit sleepy it seems, this should read: I's not about declaring, it's

Re: [xml] xmlSchema : problem with the 'token' datatype ?

2005-05-11 Thread Kasimier Buchcik
Hi, On Wed, 2005-05-11 at 13:31 +0200, GUY Fabrice wrote: Hi, I have this schema : ?xml version=1.0 encoding=ISO-8859-1? xsd:schema xmlns:xsd=http://www.w3.org/2001/XMLSchema; xsd:element name=element type=xsd:token/ /xsd:schema And for example the xml file : ?xml version=1.0

Re: [xml] xmlParseFile crashes with segmentation fault in Multithreaded Application

2005-04-18 Thread Kasimier Buchcik
Hi, On Mon, 2005-04-18 at 01:20 -0700, Manoj Kumar wrote: Hello everyone, we have a multithreaded application. When we try call the xmlParseFile function from the subthreads the call fails with segmentation fault. However the call succeeds if done from the main thread. Can anybody

[xml] XML Schema memory leak

2005-04-08 Thread Kasimier Buchcik
Hi, there was a memory leak (potentially big) in the XML Schema processor, which occurred in conjunction with identity-constraints and attributes. I recommend using the latest CVS revision (1.129) of xmlschemas.c. Regards, Kasimier ___ xml mailing

Re: [xml] default values in the xsd

2005-04-05 Thread Kasimier Buchcik
Hi, On Tue, 2005-04-05 at 00:19 -0400, G A ONURAL wrote: I am using the default in one of my complex type definitions in my xsd, as shown in the snippet below. How can I get the value of the default when I parse the xml document (written against my schema) ? Assuming that the instance

Re: [xml] [RFC] More error message changes

2005-03-18 Thread Kasimier Buchcik
Hi, Matthew Burgess wrote: Kasimier Buchcik wrote: Matthew Burgess wrote: a) When presented with this, our typical user is unlikely to understand what a 'simple type' or 'facet' are, nor would they be able to change the affected schema even if they did understand it. Hmm, if they don't

Re: [xml] IDREF/IDREFS attribute are not validated in xml Schema or RelaxNG

2005-03-18 Thread Kasimier Buchcik
Hi, GUY Fabrice wrote: Hi, I don't know if it's in the TODO list or if it's a bug, but IDREF (and IDREFS) are not validated using xmlSchema or RelaxNG : if an IDREF attribute has a value which is not carried by an ID attribute, the document still validates. I can provide a test case if you want

  1   2   >