Daniel Veillard | 8 Jul 16:23
Picon
Favicon
Gravatar

Re: ported libxml2 to uclinux?~~~

On Fri, Jun 29, 2007 at 09:27:50PM +0800, dongaman <at> sina.com wrote:
> hello.
> From here mail.gnome.org/archives/xml/2003-July/msg00018.html , i found somebody had already
ported&nbsp; libxml2  to uclinux.
> My problem is i really need these binary .a files or the makefile's...
> If someone can seed me the files,that will be very thanks .

  the  xml-bindings <at> gnome.org is basically closed at this point, mail should 
rather be sent to xml <at> gnome.org

Daniel

--

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard <at> redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
rupert | 11 Oct 18:18
Picon
Favicon

python xslt wrapper and xalan write

Hi,

I have a stylesheet that uses the xalan write
extension. This runs succesfully and produces
the required file from python. However the
style of the file is xml, despite me setting
<xsl:output method="text"/>. Does anyone know
if it is possible to get text output?

For example ...

mytest.xsl:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="org.apache.xalan.xslt.extensions.Redirect"
   extension-element-prefixes="xalan">

<xsl:output method="text"/>

<xsl:template match="/">

<xsl:value-of select="mytext"/>
<xsl:text>&amp;</xsl:text>

<xalan:write select="'testXalan.out'">
<xsl:value-of select="mytext"/>
<xsl:text>&amp;</xsl:text>
</xalan:write>

(Continue reading)

Robin Oudhuis | 1 Aug 14:02
Picon

information request

Hello,

I'm currently busy developing an XML setup that describes our products, for use in both websites and
pocketpc software. I've been using the free altova tool for setting up the basic xml files and dtd, and was
wondering wether a tool exists that allows for XSLT transforms within the WinCE platform. Is there a build
available for that? The PDA software is written using Microsoft embedded visual C++.

Thanks for any information,

Regards,

Robin Oudhuis
Christian Heimes | 26 Jul 16:47
Picon
Favicon

Unable to build python bindings (libxml2 2.6.20, python 2.3.5, mac os x 10.3.9)

Error with python2.3.5

running build
running build_py
running build_ext
building 'libxml2mod' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp 
-mno-fused-madd -fno-common -DNDEBUG -g -O3 -Wall -Wstrict-prototypes 
-D_REENTRANT=1 -I/usr/include/libxml2 -I/usr/include 
-I/usr/local/include/python2.3 -c types.c -o 
build/temp.darwin-7.9.0-Power_Macintosh-2.3/types.o
In file included from types.c:9:
libxml_wrap.h:124: error: parse error before "xmlErrorPtr"
libxml_wrap.h:124: warning: no semicolon at end of struct or union
libxml_wrap.h:125: warning: type defaults to `int' in declaration of 
`PyError_Object'
libxml_wrap.h:125: warning: data definition has no type or storage class
libxml_wrap.h:245: error: parse error before "error"
libxml_wrap.h:245: warning: function declaration isn't a prototype
types.c:723: error: parse error before "error"
types.c:724: warning: function declaration isn't a prototype
types.c: In function `libxml_xmlErrorPtrWrap':
types.c:730: error: `error' undeclared (first use in this function)
types.c:730: error: (Each undeclared identifier is reported only once
types.c:730: error: for each function it appears in.)
error: command 'gcc' failed with exit status 1

Error with Python 2.4.1

running build
(Continue reading)

Hanh-Missi Tran | 2 May 13:38
Picon

XPointer & string-range with libxml2-python

Hi

I want to evaluate XPointer expressions with libxml2-python. It works 
well when a XPointer selects one or several nodes. However I do not 
succeed in evaluating XPointer that uses the function string-range.

For example, here is my xml file:
<?xml version = "1.0"?>
<ADDRBOOK>
        <ENTRY ID="pa">
                <NAME>Pieter</NAME>
        </ENTRY>
        <ENTRY ID="en">
                <NAME>Emeka</NAME>
        </ENTRY>
</ADDRBOOK>

And here is my code:
import libxml2
doc=libxml2.parseFile("addrbook.xml")
root=doc.children
ctx=root.xpointerNewContext(doc,None)
ctx.xpointerEval('xpointer(string-range(ADDRBOOK/ENTRY[1]/NAME[1],"Pieter"))')

It does not work and it gives me the following error:
Unable to convert XPath object type 7
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/site-packages/libxml2.py", line 6443, in 
xpointerEval
(Continue reading)

Eric.Zurcher | 4 Mar 04:49
Picon
Picon

Delphi bindings now available for XMLSec

Hello all,

I have generated Delphi bindings for the XMLSec library (specifically aimed at providing an interface to
the Win32 libxmlsec DLL distributed by Igor). These bindings are available (along with Delphi bindings
for libxml2, libxlst, and libexslt) at ftp://ftp.zlatkovic.com/pub/libxml/Delphi. I have placed
copies on the CVS repository for libxml2-pas on SourceForge, in the "headers" directory. The CVS
repository also includes a small test Delphi application demonstrating their use, in the
headers/demos/xmlsec-test sub-directory.

I have tested this code only with Delphi 6, but it should work with most other versions of Delphi and Kylix. I
have made no effort to support other versions of Pascal.

I would welcome questions, comments, and feedback from any Delphi developers making use of this material.

Cheers,

Eric Zurcher
CSIRO Livestock Industries
Canberra, Australia
Eric.Zurcher <at> csiro.au
Picon

Problem with building python-extensions when libxml is located in a non-standard location


Hi,

   I just run into a similar problem as reported by Matt Patterson in
August 2004
(http://mail.gnome.org/archives/xml-bindings/2004-August/msg00000.html)

   In my case the issue has been with the includes located in a
nonstandard location, and the C Compiler not finding them,
and I guess there is simple fix for it.

   In my setup the includes are located in "/homes/clemens/opt/include"
and the libs are in "/homes/clemens/opt/lib". It seems the linker does
not have any problems finding the libs after editing "setup.py" and
fixing the "ROOT" variable (after fixing the next issue). However the
compiler does not find the include files:

clemens <at> localhost$ /homes/clemens/opt/apps/python/2.3.5/bin/python
setup.py build
[...]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC -D_REENTRANT=1 -DMERGED_MODULES=1
-I/homes/clemens/opt/include/libxml2 -I/usr/include
-I/homes/clemens/opt/include/libxslt
-I/homes/clemens/opt/apps/python/2.3.5/include/python2.3 -c libxslt.c -o
build/temp.linux-i686-2.3/libxslt.o
libxslt.c:19:28: libexslt/exslt.h: No such file or directory
In file included from libxslt.c:20:
libxslt_wrap.h:2:26: libxslt/xslt.h: No such file or directory
libxslt_wrap.h:3:35: libxslt/xsltInternals.h: No such file or directory
(Continue reading)

Favicon

Perceived Software Quality Survey (PESQUS) for GNOME

Dear GNOME Users and Developers:

We are conducting empirical research on the quality and interface aspects
of various open-source and proprietary software. Therefore, we are
investigating the quality of the GNOME desktop software as perceived by
its users. For this purpose, we have created a short survey.  We would
highly appreciate it if you could follow the link below and fill out this
survey:

http://www.umbc.edu/hase/gnome-pesqus-survey.html

The developers who use GNOME during their daily computer operations can
respond too.

Many thanks for your help. Apologies if you received more than one copy.

HASE
HUMAN ASPECTS of SOFTWARE ENGINEERING
INFORMATION SYSTEMS DEPARTMENT, UMBC
hase <at> umbc.edu

All HASE surveys are reviewed and approved by the Institutional Review
Board of UMBC.
Martin Kirst | 2 Nov 01:14
Picon

python and unicode problem

Hello

I'm coding a tool in python, which uses a lot of unicode strings.
I want to switch to libxml2.

What about the unicode support in libxml2 wrappers for python?

I've tested some pieces of code, but they don't work ...

t='<? xml .... some valid xml stuff with german special characters'
ut = unicode(t,'latin-1')
newdoc = libxml2.parseMemory(ut,len(ut))

Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/lib/python2.3/site-packages/libxml2.py", line 1174, in 
parseMemory
     ret = libxml2mod.xmlParseMemory(buffer, size)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in 
position 107: ordinal not in range(128)

Whats the problem?

Thanks & Bye
  Martin
Clark C. Evans | 12 Oct 05:29
Gravatar

python binding for xsltSetLoaderFunc

Hello.   I've got a stylesheet I'm trying to run both server side
and client side.  On the client side, I use document() with relative
links to fetch other documents on the server.  Unfortunately, when
I use libxslt on the server (via python binding), the document()
fails to resolve, for obvious reasons.  I can't just make the URL
absolute, since cookies and other items are missing.  So, I was
thinking that SetLoaderFunc might be my savior and allow me to
programmatically return sub-documents that I ask for.  Am I dreaming?
If not, I don't see this xsltSetLoaderFunc in the python bindings,
what do I have to do to get this to work?

Alternatively, I was thinking of making these 'sub-documents'
parameters using document() as the default.  In this way, when
I call the stylesheet on the client, it uses document(), but
on the server end, it uses the entity I return.  The problem is
that I don't know how to take the parameter I return and convert
it into a tree that I can query.  Any ideas here?

Thanks so much,

Cheers!

Clark
Matt Patterson | 5 Aug 13:28

Problems building private Python bindings for a private libxml & libxslt

Hello,

At work I've been attempting to build private python bindings (i.e. 
installed somewhere other than /usr/lib/python/site-packages) for a 
private build of both libxml2 and libxslt. I'm working on a Debian box, 
and we have an earlier /usr/lib installed libxml2 which we can't easily 
upgrade because of application dependence, and now need a private build 
to get a project working. While building libxml2 and libxslt in 
/home/matt/ is a fairly simple matter, getting the python bindings 
built and linking to the right libxml2.so is much harder.

Our tactic was to run <setup.py build> to generate the bindings, which 
we could then copy by hand to where we needed them. I had no luck 
initially, but after some patching got that to work

We've had no joy at all with libxslt, and I've no real idea where to 
start.

Getting the libxml2 install to work took a couple of changes:

The first was to change the order in which setup.py looks for the 
libxml2 includes, since the libxml2mod.so setup.py build was creating 
was linked, according to ldd, to the system libxml2:

The original, at line 56 of setup.py

includes_dir = [
"/usr/include",
"/usr/local/include",
"/opt/include",
(Continue reading)


Gmane