Re: [xml] Proposal to move mutation of HTML boolean attribute values out of the parser

2010-03-15 Thread Daniel Veillard
to process HTML without potentially breaking behavior in some browsers. Currently this transformation is implemented in HTMLparser.c in the static function htmlParseAttribute, based on htmlIsBooleanAttr(name) . Daniel Veillard explains that some downstream tools expect this transformation

Re: [xml] Resetting ctxt-errNo

2010-03-15 Thread Daniel Veillard
= XML_ERR_OK; I just fixed xmlCtxtResetLastError() so it does that ! thanks for raising the issue, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library

Re: [xml] the oasis-xml-catalog PI

2010-03-12 Thread Daniel Veillard
XInclude, Relax-NG, XSD validation do not look for it. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] Build failure on Sparc solaris using gcc and binutils

2010-03-10 Thread Daniel Veillard
to the various auto tools. Oh and I added the necessary stuff to have m4 files in the m4 subdir as most projects do. The only annoyance is that I now get quite a few warning at autogen.sh time which I'm not sure to fully understand :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit

Re: [xml] htmlCheckEncoding doesn't update input-end after shrink

2010-03-10 Thread Daniel Veillard
-- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ ___ xml mailing list, project page http

Re: [xml] Build failure on Sparc solaris using gcc and binutils

2010-03-09 Thread Daniel Veillard
On Fri, Oct 23, 2009 at 12:09:19AM +0300, Roumen Petrov wrote: Daniel Veillard wrote: On Thu, Oct 22, 2009 at 12:26:27AM +0300, Roumen Petrov wrote: Matthias Jung wrote: [SNIP] My suggestion as long -M ld option is not clear ;-) VERSION_SCRIPT_FLAGS= $($LD --help 21 | grep -- --version

Re: [xml] document URI?

2010-03-08 Thread Daniel Veillard
in the documentation? yeah, doc-URL Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ ___ xml

Re: [xml] Problem parsing MSWord HTML

2010-02-22 Thread Daniel Veillard
is this? Because you are using an HTML parser to parse what looks like XHTML i.e. XML version of HTML with what looks like MS extensions. You could try to use the XML parser instead , Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com

Re: [xml] Non recursive html parser

2010-02-17 Thread Daniel Veillard
if it fails to allocate some memory. That one sounds fine, right ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] Additional text nodes for '\n' in documents with DTD

2010-02-16 Thread Daniel Veillard
parser to not create these text nodes? You can't. They are in the input, they must be in the output, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization

Re: [xml] tree xmlNode.line

2010-02-11 Thread Daniel Veillard
, so if the problem shows up at parsing time then, you can use that value. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] Using Xpath with default namespace and null prefix

2010-02-10 Thread Daniel Veillard
only libxml2 and not any of libxslt nor libexslt xmlXPathRegisterNs is only used if you use the --shell option and use setns command to registed a namespace for XPath evaluation. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind

Re: [xml] Clone the reader?

2010-02-10 Thread Daniel Veillard
see how you're gonna be able to desambiguate between options for example xsd:float and xsd:double ... That schemas makes no sense to me... Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http

Re: [xml] xmlEncodeSpecialChars vs xmlEncodeEntitiesReentrant

2010-02-10 Thread Daniel Veillard
On Wed, Feb 10, 2010 at 07:39:03PM +0300, Nikolay Sivov wrote: On 2/10/2010 19:12, Daniel Veillard wrote: On Wed, Feb 10, 2010 at 06:15:38PM +0300, Nikolay Sivov wrote: Both calls have a header comment about their reentrance capability. Is it a comment bug? Does reentrant in this case mean

Re: [xml] Using Xpath with default namespace and null prefix

2010-02-08 Thread Daniel Veillard
-- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ ___ xml mailing list, project page http

Re: [xml] Using Xpath with default namespace and null prefix

2010-02-08 Thread Daniel Veillard
On Mon, Feb 08, 2010 at 01:14:22PM +0100, Iñaki Baz Castillo wrote: El Lunes, 8 de Febrero de 2010, Daniel Veillard escribió: [...] Does it mean that Xpath 2.0 allows the behavior I meant (present in RFC 4825)? I don't know, I doubt it. Is it planned libxml2 to implement Xpath 2.0? I

Re: [xml] Using Xpath with default namespace and null prefix

2010-02-08 Thread Daniel Veillard
On Mon, Feb 08, 2010 at 02:03:06PM +0100, Daniel Veillard wrote: On Mon, Feb 08, 2010 at 01:14:22PM +0100, Iñaki Baz Castillo wrote: RFC 4825 is a pain as it reuses Xpath 1.0 with some restrictions and additions (as the application default namespace which allows the Xpath deviation I

Re: [xml] encoding support with xmlParseInNodeContext

2010-02-04 Thread Daniel Veillard
an in context parsing, i.e. parsing as if the fragment was coming from that document. The encoding switch is a bit harder than what you hoped for, but it's not that hard, the patch enclosed seems to do it for me, please have a try. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http

Re: [xml] DTD validation whitespace removal

2010-02-04 Thread Daniel Veillard
used for formatting are an integral part of the XML document content and users should rather learn XML and do the right thing than tweak the parser to become non conformant. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search

Re: [xml] encoding support with xmlParseInNodeContext

2010-02-04 Thread Daniel Veillard
On Thu, Feb 04, 2010 at 09:24:27AM -0800, Aaron Patterson wrote: On Thu, Feb 4, 2010 at 12:53 AM, Daniel Veillard veill...@redhat.com wrote: On Wed, Feb 03, 2010 at 08:34:09PM -0800, Aaron Patterson wrote: I can't seem to pass an encoding to xmlParseInNodeContext.  This is problematic when

Re: [xml] DTD validation whitespace removal

2010-02-04 Thread Daniel Veillard
On Thu, Feb 04, 2010 at 09:31:11AM -0800, John Clements wrote: On Feb 4, 2010, at 7:09 AM, Daniel Veillard wrote: On Thu, Feb 04, 2010 at 08:53:42AM -0500, Piotr Sipika wrote: John, Try parsing the document using: xmlReadFile(URI, encoding, options) with options set

Re: [xml] Opening same xml file in two threads at a time using xmlReadfile/xmlParseFile

2010-02-03 Thread Daniel Veillard
, and it does around 20 simultaneous parses of the same resource, all this 500 times in a loop. This is ipart of the make check tests Something else is breaking in your case, but you can use that code to test on your system and fix your code appropriately. Daniel -- Daniel Veillard | libxml Gnome

Re: [xml] xmlPreviousElementSibling mistake

2010-02-03 Thread Daniel Veillard
node = node-prev; Ah, right, good catch ! fix pushed, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] [xslt] HTML vs. XHTML: different output when including a file with \r\n [WAS: xmllint vs. xsltproc: different output when including a file with \r\n]

2010-02-01 Thread Daniel Veillard
ask for something to be in an XML tree then libxml2 will do whatever is needed to have this if you reparse the serialized tree. If a parser choke on #13; in an XML document, it's not a compliant XML parser the problem is on the receiving end. Not a bug. Daniel -- Daniel Veillard | libxml

Re: [xml] [xslt] HTML vs. XHTML: different output when including a file with \r\n [WAS: xmllint vs. xsltproc: different output when including a file with \r\n]

2010-02-01 Thread Daniel Veillard
On Mon, Feb 01, 2010 at 08:28:56PM +, Martin (gzlist) wrote: On 01/02/2010, Daniel Veillard veill...@redhat.com wrote: Not a bug. I don't know the XInclude spec, but reading the bug report: https://bugzilla.gnome.org/show_bug.cgi?id=608333 When a text file is included

Re: [xml] xinclude on same resource - xpointer=element(c2/1) fails

2010-01-29 Thread Daniel Veillard
for that. Also your second and 3rd espressions are wrong, element(c2/1) will look for an element named c2 not for an element with an ID of c2. use id() or @id constructs. There are examples in the source tree under test/XPath/xptr/ Daniel -- Daniel Veillard | libxml Gnome XML XSLT

Re: [xml] Trying to make sense of testsuite errors with libxml2 2.7.6

2010-01-29 Thread Daniel Veillard
On Fri, Jan 22, 2010 at 08:28:26AM -0500, Rob Richards wrote: Daniel Veillard wrote: On Fri, Jan 22, 2010 at 12:37:10PM +0100, Martin B. wrote: C:\AccuRev\trappel\Testprojects\libxml2-2.7.6 C:\AccuRev\trappel\Testprojects\libxml2-2.7.6xmllint --relaxng test/relaxng/tutorA.rng ./test/relaxng

Re: [xml] Trying to make sense of testsuite errors with libxml2 2.7.6

2010-01-29 Thread Daniel Veillard
On Fri, Jan 22, 2010 at 06:53:42AM -0500, Rob Richards wrote: Daniel Veillard wrote: Instead of running the test suite by running the runtest binary try to run it at the make level, but not sure if it works on Windows see Relaxtests target in Makefile.am, it does the same but with make

Re: [xml] gzdirect() doesn't work in zlib 1.3.5.5 (at least) (was Re: libxml violates the zlib interface and crashes)

2010-01-29 Thread Daniel Veillard
release before the next stable zlib one, right ? Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] Trying to make sense of testsuite errors with libxml2 2.7.6

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 06:24:27AM -0500, Rob Richards wrote: Daniel Veillard wrote: On Fri, Jan 22, 2010 at 06:53:42AM -0500, Rob Richards wrote: Daniel Veillard wrote: Instead of running the test suite by running the runtest binary try to run it at the make level, but not sure if it works

Re: [xml] patch: copying unlinked namespaced node

2010-01-29 Thread Daniel Veillard
; ret-ns = xmlNewNs(root, ns-href, ns-prefix); + } else { + ret-ns = xmlNewReconciliedNs(doc, ret, node-ns); } } else { /* Okay, ACK thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan

Re: [xml] xinclude on same resource - xpointer=element(c2/1) fails

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 12:48:06PM +0100, Piotr Bański wrote: Hi Daniel, A minor xptr/element()-spec-related point: On 2010-01-29 11:45, Daniel Veillard wrote: On Fri, Jan 29, 2010 at 12:26:41AM +0100, c3459823592...@arcor.de wrote: Hi, I'm using xinclude with xpointer element

Re: [xml] gzdirect() doesn't work in zlib 1.3.5.5 (at least) (was Re: libxml violates the zlib interface and crashes)

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 09:16:35AM -0800, Mark Adler wrote: On Jan 29, 2010, at 3:25 AM, Daniel Veillard wrote: We should however synchronize so that I push a new libxml2 release before the next stable zlib one, right ? Daniel, Right. Also there's no problem with pushing it now

Re: [xml] gzdirect() doesn't work in zlib 1.3.5.5 (at least) (was Re: libxml violates the zlib interface and crashes)

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 09:41:54AM -0800, Mark Adler wrote: On Jan 29, 2010, at 9:58 AM, Daniel Veillard wrote: The problem with pushing a new libxml2 is that it takes quite a bit of time on my side, and I don't have much, so please synchronize, Daniel, I'll let you know when 1.2.4

Re: [xml] Strange behavior with xmlParseInNodeContext and HTML documents

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 12:10:58PM +0100, Daniel Veillard wrote: On Fri, Jan 29, 2010 at 12:16:40AM -0800, Aaron Patterson wrote: Hi, I'm trying to use xmlParseInNodeContext along with an HTML document. It seems to be exhibiting strange behavior, but I'm not sure. It seems that when

Re: [xml] gzdirect() doesn't work in zlib 1.3.5.5 (at least) (was Re: libxml violates the zlib interface and crashes)

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 11:08:23AM -0800, Mark Adler wrote: On Jan 29, 2010, at 11:37 AM, Daniel Veillard wrote: Probably something to write in release notes or something, even if it's really libxml2 fault, people upgrading to 1.2.4 need to be aware they need to upgrade libxml2 first

Re: [xml] Trying to make sense of testsuite errors with libxml2 2.7.6

2010-01-22 Thread Daniel Veillard
On Fri, Jan 22, 2010 at 12:37:10PM +0100, Martin B. wrote: Daniel Veillard wrote: On Thu, Jan 21, 2010 at 02:09:35PM +0100, Martin B. wrote: Hi all! I've downloaded ftp://xmlsoft.org/libxml2/libxml2-2.7.6.tar.gz and compiled it with Visual Studio 2005 without warnings. File ./test

Re: [xml] HTMLparse.c has missing commas

2010-01-20 Thread Daniel Veillard
and elements like iframeinput in html_inline array. Thanks, Ah, right, well hidden bug, I just had to change the patch a bit since PCDATA is an empty set, it would not compile otherwise, commited and pushed, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http

Re: [xml] Patch: Correct variable type to unsigned

2010-01-19 Thread Daniel Veillard
On Sat, Jan 16, 2010 at 10:38:14PM +0300, Nikolay Sivov wrote: Spotted this in compile warnings. Makes sense, pushed ! thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http

Re: [xml] Access internal xmlParserInputBuffer data

2010-01-19 Thread Daniel Veillard
give insurance over such tweaking, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] RelaxNG bug?

2010-01-19 Thread Daniel Veillard
seems very unusual, since nobody stepped on it ... until now ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] libxml violates the zlib interface and crashes

2010-01-19 Thread Daniel Veillard
for raising the issue and for the patch ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] xmlCleanupParser() question / patch

2010-01-19 Thread Daniel Veillard
On Tue, Jan 19, 2010 at 03:40:30PM +0100, Martin B. wrote: Daniel Veillard wrote: On Thu, Jan 14, 2010 at 02:59:50AM +0100, Aron Szabo wrote: Hi! If I use the library in a threaded program and call xmlCleanupParser() I can't reinitialize it. So here's what happens: 1

Re: [xml] xmlCleanupParser() question / patch

2010-01-19 Thread Daniel Veillard
immediately :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ ___ xml mailing list

Re: [xml] xmlCleanupParser() question / patch

2010-01-19 Thread Daniel Veillard
On Tue, Jan 19, 2010 at 04:38:24PM +0100, Martin B. wrote: Daniel Veillard wrote: Best thing would be if xmlCleanupParser() would be removed completely, no? That is impossible, for ABI compatibility, Ah OK. In that case the best thing would be to have the function in the ABI but get

Re: [xml] best way of converting xmlChar* to char*

2009-12-25 Thread Daniel Veillard
in UTF-8 encoding then a cast *is* the proper way. If it's not that will depend on your encoding and no generic function can do it one way or another, except an encoding conversion function like iconv. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan

Re: [xml] Deleting unused internal entities

2009-12-25 Thread Daniel Veillard
for the f parameter? Hum, that should not be needed as the value put in the hash table is the entity node. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization

Re: [xml] Disabling default entities

2009-12-21 Thread Daniel Veillard
entities? no Or, any other way to accomplish the task? Try CDATA sections, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http

Re: [xml] Segmentation fault

2009-12-21 Thread Daniel Veillard
been raised but that's normal. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] reading MRML file with XML2... how to access text in nodes?

2009-12-10 Thread Daniel Veillard
this: http://xmlsoft.org/FAQ.html#Developer item 4 on a text node the textual content is available from the -content field, surprizing isn't it ? Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net

Re: [xml] Unexpected behavior with XML_PARSE_NOBLANKS

2009-12-10 Thread Daniel Veillard
On Wed, Dec 09, 2009 at 08:36:59AM -0800, Aaron Patterson wrote: On Wed, Dec 9, 2009 at 7:54 AM, Daniel Veillard veill...@redhat.com wrote: On Sat, Dec 05, 2009 at 11:03:26AM -0800, Aaron Patterson wrote: Hey everyone, It looks like sometimes there is unexpected behavior when parsing

Re: [xml] Comments droped when inside tag

2009-12-09 Thread Daniel Veillard
paphio:~/tmp - oh and the extra space at the end of your xmlns definition makes your data not XHTML ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization

Re: [xml] Unexpected behavior with XML_PARSE_NOBLANKS

2009-12-09 Thread Daniel Veillard
If libxml2 detected a non-blank text node at the same level it will keep all further text nodes, assuming a mixed content element. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com

Re: [xml] Unique + Key/Keyref

2009-12-09 Thread Daniel Veillard
try to reproduce the problem with a minimal example 2/ come up with a patch , either might help fixing your troubles We have a number of test case using key/keyref in the libxml2 testsuite so this should be a supported feature. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http

Re: [xml] How to get default value attribute defined in xsd ? [libxml2-2.7.6]

2009-12-02 Thread Daniel Veillard
? I don't think that works with the Reader. Just when validating a existing full document, then those will be added. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com

Re: [xml] LibXML2 digitally signed?

2009-11-17 Thread Daniel Veillard
your question. I'm not a lawyer Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] RelaxNG schema and entities file: namespace warning : Namespace default prefix was not found

2009-11-17 Thread Daniel Veillard
the namespace declaration in ten entity, yes. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] xmllint: validating a document that doesn't specify a DTD

2009-11-17 Thread Daniel Veillard
On Tue, Nov 17, 2009 at 05:03:41PM +0100, Murray Cumming wrote: On Tue, 2009-11-17 at 14:24 +0100, Daniel Veillard wrote: On Tue, Nov 17, 2009 at 01:33:44PM +0100, Murray Cumming wrote: Should I be able to validate an XML document (such as a .glade file) that has no DOCTYPE line

Re: [xml] relative uri

2009-10-21 Thread Daniel Veillard
, thanks, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ ___ xml mailing list

Re: [xml] queer usage of install-sh

2009-10-21 Thread Daniel Veillard
in xmlinc_HEADERS, and auto* does the magic of calling install or install.sh . Maybe install.sh need to be refreshed Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com

Re: [xml] queer usage of install-sh

2009-10-21 Thread Daniel Veillard
On Thu, Oct 22, 2009 at 12:10:29AM +0300, Roumen Petrov wrote: Hi All, Hi Roumen, - I have a pending patch from you, I need to review it, I know :-) - Daniel Veillard wrote: this call to install.sh is generated ! See include/libxml/Makefile.am the source just lists the header

Re: [xml] libxml - core dump with xmlParseFile on a 50 Mo XML file

2009-10-19 Thread Daniel Veillard
and archived at will, please get rid of this or stop posting ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] Build failure on Sparc solaris using gcc and binutils

2009-10-19 Thread Daniel Veillard
no knowledge about configure scripts except of using them ;-) I hope someone with a Sun setup can look and propose a configure fix. I'm sure it's doable, but I don't have this platform around. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com

Re: [xml] Schema caching

2009-10-19 Thread Daniel Veillard
it seems you didn't looked at the API, schema compilation and use are clearly distinct operations. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library

Re: [xml] [PATCH] Memory leak in xmlXPathEvalExpression()

2009-10-13 Thread Daniel Veillard
On Tue, Oct 13, 2009 at 12:57:05PM +0100, Martin (gzlist) wrote: On 12/10/2009, Daniel Veillard veill...@redhat.com wrote: Thanks for the patch applied, I just had to fix the expected error mesages set in the python test Gah, thanks for catching that. I have now finally got the libxml2

Re: [xml] html parsing incomplete - bug?

2009-10-13 Thread Daniel Veillard
HTML5 will become a Last Call draft or something then I think it will make sense to try to update the parser to use the same recovery tricks. Note that the 0 in content may have cut the input at the Python-C interface layer. But sure libxml2 internals don't like 0 in content. Daniel -- Daniel

Re: [xml] Avoiding emediate close of elements

2009-10-12 Thread Daniel Veillard
equivalent so you're generating XML for a client which doesn't use an XML parser for handling it (with the exception of Microsoft XMLReader API which distinguish the two but really should not), Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com

Re: [xml] Possible bug in globals.c

2009-10-12 Thread Daniel Veillard
unbelieveable how much breackage happened around the thread code recently, thanks for raising this ! Applied, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization

Re: [xml] [PATCH] Memory leak in xmlXPathEvalExpression()

2009-10-12 Thread Daniel Veillard
with some fuzz testing to see if there are any more of these lurking around. Well yes that would be a good idea, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com

Re: [xml] Listing possible valid attributes

2009-10-06 Thread Daniel Veillard
description for the element - walk the list of struct _xmlElement returned called attributes IIRC the list use the -next link to get to the next attribute on that node (nexth is used internally for the attribute hash table of the full DTD). Daniel -- Daniel Veillard | libxml Gnome

Re: [xml] xmlRemoveProp and xmlUnsetProp not remoning element

2009-10-06 Thread Daniel Veillard
would be appreciated. I can't follow your code, but I checked the function code and this looks okay, I would suggest tracing though a debugger to understand what's going on in your case. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com

Re: [xml] [PATCH] Fix yet another --with-threads bug: using pipe instead of logical OR

2009-10-06 Thread Daniel Veillard
as it should to be instead of '|' (pipe). A ! That's the reason ! I found a couple of suspicious warnings about this but could not spot a problem on that line :( Damn that's a nasty thing ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan

[xml] Release of libxml2-2.7.6

2009-10-06 Thread Daniel Veillard
the problem. Available at ftp://xmlsoft.org/libxml2/ So this is a bug fix only release: Bug Fixes: - Restore thread support in default configuration (Andrew W. Nosenko), - URI with no path parsing problem (Daniel Veillard), - Minor patch for conditional defines in threads.c (Eric Zurcher

Re: [xml] Minor patch for conditional defines in threads.c

2009-09-30 Thread Daniel Veillard
see, we are using #elif defined HAVE_WIN32_THREADS everywhere else in that module and others, so I'm keeping the same. I also checked wehad no other bare #elif in the code. Can you check git head with your patch now that you have git setup :-) Daniel -- Daniel Veillard | libxml Gnome XML

Re: [xml] Target string size after transcoding

2009-09-25 Thread Daniel Veillard
you've finished processing. and with current computer arch this is especially inefficient (the cache is teh key to speed). Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com

Re: [xml] [PATCH] Restore behavior of --with-threads without argument as enable threads

2009-09-24 Thread Daniel Veillard
found that patch, yes that looks right, applied, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] libxml2 regression on entities

2009-09-24 Thread Daniel Veillard
-- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ ___ xml mailing list, project page http

Re: [xml] Target string size after transcoding

2009-09-24 Thread Daniel Veillard
); it certainly returned the number of bytes in the output, outlen and inlen are also output parameter in addition to the returned value. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http

Re: [xml] Patch: link python module with python library

2009-09-24 Thread Daniel Veillard
On Thu, Sep 17, 2009 at 07:15:31PM +0200, Frederic Crozat wrote: Le samedi 12 septembre 2009 à 18:04 +0200, Daniel Veillard a écrit : On Fri, Sep 11, 2009 at 05:00:29PM +0200, Frederic Crozat wrote: Hi all, starting with Mandriva 2009.0, we are building all our librairies

[xml] Release of libxml2-2.7.5

2009-09-24 Thread Daniel Veillard
) - 595792 fixing a RelaxNG bug introduced in 2.7.4 (Daniel Veillard) - Fix a Relaxng bug raised by libvirt test suite (Daniel Veillard) - Fix a parsing problem with little data at startup (Daniel Veillard) - link python module with python library (Frederic Crozat) - 594874 Forgot an fclose in xmllint

Re: [xml] external subsets and HTML parsing

2009-09-17 Thread Daniel Veillard
for libxml2, plus that's daunting ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] Potential problem with 2.7.4

2009-09-15 Thread Daniel Veillard
On Tue, Sep 15, 2009 at 07:57:17PM +0200, Mike Hommey wrote: On Tue, Sep 15, 2009 at 07:43:54PM +0200, Daniel Veillard wrote: Some application don't deliver sufficient data at start of parsing conflicting with the fix I made for https://bugzilla.gnome.org/show_bug.cgi?id=566012

Re: [xml] Potential problem with 2.7.4

2009-09-15 Thread Daniel Veillard
On Tue, Sep 15, 2009 at 07:53:18PM +0200, Mike Hommey wrote: On Tue, Sep 15, 2009 at 07:43:54PM +0200, Daniel Veillard wrote: Some application don't deliver sufficient data at start of parsing conflicting with the fix I made for https://bugzilla.gnome.org/show_bug.cgi?id=566012

Re: [xml] Potential problem with 2.7.4

2009-09-15 Thread Daniel Veillard
work for things like reading from a file, but one should use the existing APIs and inkscape extension should just do that (the core inkscape parsing routine actually feed the parser properly). Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com

Re: [xml] Potential problem with 2.7.4

2009-09-15 Thread Daniel Veillard
prefer a parse failure to a silent corruption. I know it doesn't look so nice, but it works well enough. I may have to rethink this encoding guess and use a replay fallback if we really hit problems but I doubt it. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http

Re: [xml] RegEx Regression Tests

2009-09-12 Thread Daniel Veillard
checked the output result/regexp/ranges is fine it won't change and the tests compares the output directly. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization

Re: [xml] Release of libxml2-2.7.4

2009-09-11 Thread Daniel Veillard
On Fri, Sep 11, 2009 at 01:00:16PM +0200, Stefan Behnel wrote: Daniel Veillard wrote: Better late than never, but an awful lot of pending bug got fixed. Still no major improvement except adding symbol versioning to libxml2 shared libs, which is fairy important for long term maintainance

[xml] Release of libxml2-2.7.4

2009-09-10 Thread Daniel Veillard
.syms automated checkings (Daniel Veillard) - Add symbol versioning to libxml2 shared libs (Daniel Veillard) Documentation: - 544910 typo: renciliateNs (Leonid Evdokimov) - Add VxWorks to list of OSes (Daniel Veillard) - Regenerate the documentation and update for git (Daniel Veillard) - 560524

Re: [xml] [PATCH] Fix xsltExtModuleFunctionLookup() / xsltExtModuleRegisterDynamic() deadlock.

2009-09-08 Thread Daniel Veillard
a chance, thanks again ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] windows support(.net or classic.asp)

2009-09-08 Thread Daniel Veillard
has already been asked. I don't think mono uses libxml2 for its XML stack, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] clang reports a few problems in libxml2

2009-09-07 Thread Daniel Veillard
commited to git ! The reports are pretty good except for the amount of duplication and the size of the HTML generated :-) so thanks again for running the test, I think you can now safely clean that tree up ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org

Re: [xml] Can I read namespace URIs as regular attributes?

2009-09-07 Thread Daniel Veillard
for will break in weird ways when the input is not as expected. In a nutshell Don't Do That ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http

Re: [xml] [PATCH] Compile failure using libxml/globals.h from latest GIT head

2009-09-07 Thread Daniel Veillard
-- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ ___ xml mailing list, project page http

Re: [xml] ignore undefined namespaces during parsing

2009-09-05 Thread Daniel Veillard
error handler and skip errors and warnings coming with the XML_FROM_NAMESPACE domain. I suggest to use the xmlRead* parsing functions (or the reader) and the xmlSaveTo* for processing since you're converting to libxml2 it's better to use the new set of entry points. Daniel -- Daniel Veillard

Re: [xml] Weird xmlTextReaderRead(

2009-09-05 Thread Daniel Veillard
to guess what might be wrong in your case. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] Use of method SAX of the library LibXml2

2009-09-05 Thread Daniel Veillard
Reader interface http://xmlsoft.org/xmlreader.html#Walking which is way simpler for data extractrion tasks like you seems to need. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http

Re: [xml] Support for embedded Schematron in XSDs

2009-09-05 Thread Daniel Veillard
in libxml2 might work for you but I have no garantee it's really good enough, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org

Re: [xml] How to omit the ?xml..? header?

2009-09-05 Thread Daniel Veillard
option when creating the saving context, that should do it. Note that it's dangerous if you happen to save in an encoding different from UTF-8. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net

Re: [xml] Bug when dumping meta tag nodes with the xmlSaveToIO api

2009-09-05 Thread Daniel Veillard
in releases up to 2.7.3, but fixed in git and hence in the upcoming release. Thanks for the report, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization

Re: [xml] Can I read namespace URIs as regular attributes?

2009-09-05 Thread Daniel Veillard
) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ ___ xml mailing list, project page

<    1   2   3   4   5   6   7   8   9   10   >