From wbrack@mmm.com.hk Fri Dec 1 10:36:41 2006 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C926F3B018C for ; Fri, 1 Dec 2006 10:36:41 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18196-10 for ; Fri, 1 Dec 2006 10:36:35 -0500 (EST) Received: from delightful.com.hk (adsl-63-204-84-206.dsl.sktn01.pacbell.net [63.204.84.206]) by menubar.gnome.org (Postfix) with ESMTP id 9D8A63B00BE for ; Fri, 1 Dec 2006 10:36:34 -0500 (EST) Received: from delightful.com.hk (localhost [127.0.0.1]) by delightful.com.hk (8.13.7/8.13.7) with ESMTP id kB1FUYiZ019873; Fri, 1 Dec 2006 07:30:34 -0800 Received: from 219.79.86.221 (SquirrelMail authenticated user wbrack) by delightful.com.hk with HTTP; Fri, 1 Dec 2006 07:30:34 -0800 (PST) Message-ID: <60800.219.79.86.221.1164987034.squirrel@delightful.com.hk> In-Reply-To: <456ECF7C.4000801@uos.de> References: <456ECF7C.4000801@uos.de> Date: Fri, 1 Dec 2006 07:30:34 -0800 (PST) From: "William M. Brack" To: "The Gnome XSLT library mailing-list" User-Agent: SquirrelMail/1.4.6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.348 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_IB=0.077] X-Spam-Score: -2.348 X-Spam-Level: Subject: Re: [xslt] variable/param bug in libxslt 1.1.18 and 1.1.19? X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2006 15:36:42 -0000 Hi, Martin Gieseking wrote: > Hello, > > after installing the latest libxslt package some of my stylesheets > produce unexpected error messages > in conjunction with EXSLT-functions and its parameters. Version 1.1.17 > doesn't show these errors. Is > this a known bug or am I missing anything? > > Here is a sample stylesheet and an xml file that cause the following > messages after calling > xsltproc test.xsl test.xml: > > runtime error: file test.xsl line 10 element variable > Variable 'table' has not been declared. > xmlXPathCompiledEval: evaluation failed > runtime error: file test.xsl line 15 element param > Failed to evaluate the expression of variable 'tr'. It certainly looks to me like an error - could you please put it into bugzilla so it doesn't get overlooked? > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:exsl="http://exslt.org/common" > xmlns:func="http://exslt.org/functions" > xmlns:math="http://exslt.org/math" > xmlns:mg="mg" > extension-element-prefixes="exsl func"> > > > > > > > > > > > > > > > > > > > > >
a
>
> > -- > Martin Bill From gnome-xslt@m.gmane.org Sun Dec 3 18:00:15 2006 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 687533B0091 for ; Sun, 3 Dec 2006 18:00:15 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03020-08 for ; Sun, 3 Dec 2006 18:00:12 -0500 (EST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 809C23B008D for ; Sun, 3 Dec 2006 18:00:03 -0500 (EST) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Gr0JW-00074x-5q for xslt@gnome.org; Mon, 04 Dec 2006 00:00:02 +0100 Received: from d83-190-167-143.cust.tele2.it ([83.190.167.143]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Dec 2006 00:00:02 +0100 Received: from f18m_cpp217828 by d83-190-167-143.cust.tele2.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Dec 2006 00:00:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: xslt@gnome.org From: Francesco Montorsi Date: Sun, 03 Dec 2006 21:43:32 +0100 Lines: 39 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: d83-190-167-143.cust.tele2.it User-Agent: Mozilla Thunderbird 1.5.0.8 (Windows/20061025) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.156 tagged_above=-999 required=2 tests=[AWL=1.000, BAYES_00=-2.599, FROM_HAS_ULINE_NUMS=0.291, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077] X-Spam-Score: -1.156 X-Spam-Level: Subject: [xslt] [win32] xsltproc won't load XSL which are on different volumes X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2006 23:00:15 -0000 Hi all, I think I've found a bug in xsltproc. If I launch (from MSDOS prompt) the following command from "W:\wxWPM\docs": xsltproc --path c:\docbook\xhtml --nonet --xinclude -o user/ html.xsl manual.docbook I get: I/O error : Attempt to load network entity http://docbook.sourceforge.net/releas e/xsl/current/xhtml/chunk.xsl warning: failed to load external entity "http://docbook.sourceforge.net/release/ xsl/current/xhtml/chunk.xsl" compilation error: file html.xsl line 9 element import xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/x html/chunk.xsl if I copy entirely the wxWPM folder to the harddisk C: and launch the same command from "C:\wxWPM\docs" I get the first two warnings but then xsltproc succeed. I'd guess that xsltproc is unable to use the paths which I specify through --path if they're on volumes different from the one where I launch the command... or do I miss something? Should I submit a bugzilla entry? Thanks, Francesco PS: C:\wxWPM\docs>xsltproc --version Using libxml 20627CVS2877, libxslt 10117CVS1069 and libexslt 813CVS1069 xsltproc was compiled against libxml 20626, libxslt 10117 and libexslt 813 libxslt 10117 was compiled against libxml 20626 libexslt 813 was compiled against libxml 20626 From rrichards@ctindustries.net Mon Dec 4 13:34:40 2006 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0F18D3B00DE for ; Mon, 4 Dec 2006 13:34:40 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31669-08 for ; Mon, 4 Dec 2006 13:34:36 -0500 (EST) Received: from ctindustries.net (unknown [216.117.147.250]) by menubar.gnome.org (Postfix) with ESMTP id 820233B00E0 for ; Mon, 4 Dec 2006 13:34:35 -0500 (EST) Received: from [127.0.0.1] (dsta-aa203.pivot.net [66.186.171.203]) (authenticated bits=0) by ctindustries.net (8.12.8/8.12.8) with ESMTP id kB4IU7MH023048 for ; Mon, 4 Dec 2006 13:30:08 -0500 Message-ID: <45746B61.1030804@ctindustries.net> Date: Mon, 04 Dec 2006 13:39:29 -0500 From: Rob Richards User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: xslt@gnome.org Content-Type: multipart/mixed; boundary="------------090608060802080302050606" X-Antivirus: avast! (VPS 0653-2, 12/04/2006), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.325 tagged_above=-999 required=2 tests=[AWL=-1.140, BAYES_40=-0.185] X-Spam-Score: -1.325 X-Spam-Level: Subject: [xslt] behavior change in xsltParseStylesheetImportedDoc X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2006 18:34:40 -0000 This is a multi-part message in MIME format. --------------090608060802080302050606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I'm not sure if this was intended or not, but there is a behavior change within xsltParseStylesheetImportedDoc from the code refactoring. In the old code section of the function, the return value from xsltParseStylesheetProcess is never tested and if it returned NULL, xsltParseStylesheetImportedDoc no longer returns NULL but rather a xsltStylesheetPtr. For instance if an empty doc were passed to xsltParseStylesheetImportedDoc NULL used to be returned returned. Can someone let me know if this behavior change was by design otherwise attached is a patch to make it behave the old way. Rob --------------090608060802080302050606 Content-Type: text/plain; name="xslt.c.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xslt.c.diff.txt" Index: xslt.c =================================================================== RCS file: /cvs/gnome/libxslt/libxslt/xslt.c,v retrieving revision 1.136 diff -c -r1.136 xslt.c *** xslt.c 26 Oct 2006 13:32:22 -0000 1.136 --- xslt.c 4 Dec 2006 18:31:04 -0000 *************** *** 6565,6571 **** * Old behaviour. */ retStyle->doc = doc; ! xsltParseStylesheetProcess(retStyle, doc); if (retStyle != NULL) { if (retStyle->errors != 0) { retStyle->doc = NULL; --- 6565,6575 ---- * Old behaviour. */ retStyle->doc = doc; ! if (xsltParseStylesheetProcess(retStyle, doc) == NULL) { ! retStyle->doc = NULL; ! xsltFreeStylesheet(retStyle); ! retStyle = NULL; ! } if (retStyle != NULL) { if (retStyle->errors != 0) { retStyle->doc = NULL; --------------090608060802080302050606-- From veillard@redhat.com Mon Dec 4 17:22:26 2006 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 610563B00A9 for ; Mon, 4 Dec 2006 17:22:26 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14845-05 for ; Mon, 4 Dec 2006 17:22:22 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 9B9F43B00D5 for ; Mon, 4 Dec 2006 17:22:21 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id kB4MMLPH017560 for ; Mon, 4 Dec 2006 17:22:21 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id kB4MMKOD005844 for ; Mon, 4 Dec 2006 17:22:20 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id kB4MMKT4016371 for ; Mon, 4 Dec 2006 17:22:20 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11.20060308/8.12.11/Submit) id kB4MMKiZ016369 for xslt@gnome.org; Mon, 4 Dec 2006 17:22:20 -0500 Date: Mon, 4 Dec 2006 17:22:20 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Message-ID: <20061204222220.GB21475@redhat.com> References: <45746B61.1030804@ctindustries.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45746B61.1030804@ctindustries.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.362 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077] X-Spam-Score: -2.362 X-Spam-Level: Subject: Re: [xslt] behavior change in xsltParseStylesheetImportedDoc X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2006 22:22:26 -0000 On Mon, Dec 04, 2006 at 01:39:29PM -0500, Rob Richards wrote: > I'm not sure if this was intended or not, but there is a behavior change > within xsltParseStylesheetImportedDoc from the code refactoring. > > In the old code section of the function, the return value from > xsltParseStylesheetProcess is never tested and if it returned NULL, > xsltParseStylesheetImportedDoc no longer returns NULL but rather a > xsltStylesheetPtr. For instance if an empty doc were passed to > xsltParseStylesheetImportedDoc NULL used to be returned returned. > > Can someone let me know if this behavior change was by design otherwise > attached is a patch to make it behave the old way. I'm not sure anyone except Kasimier would really know the answer to the first question, but I think one can legitimely argue about keeping the same behaviour, so I would tend to accept this patch. But since I'm not 100% sure could you bugzilla this for reference ? I will apply the patch, but a bug with the explanation would be nice for tracking, thanks in advance, Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From simon_flannery@yahoo.com.au Mon Dec 4 22:51:45 2006 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 304423B0090 for ; Mon, 4 Dec 2006 22:51:45 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32043-10 for ; Mon, 4 Dec 2006 22:51:42 -0500 (EST) Received: from web58211.mail.re3.yahoo.com (web58211.mail.re3.yahoo.com [68.142.236.149]) by menubar.gnome.org (Postfix) with SMTP id 483B33B0018 for ; Mon, 4 Dec 2006 22:51:42 -0500 (EST) Received: (qmail 39736 invoked by uid 60001); 5 Dec 2006 03:51:42 -0000 Message-ID: <20061205035141.39734.qmail@web58211.mail.re3.yahoo.com> Received: from [202.7.176.133] by web58211.mail.re3.yahoo.com via HTTP; Mon, 04 Dec 2006 19:51:41 PST Date: Mon, 4 Dec 2006 19:51:41 -0800 (PST) From: Simon Flannery To: xslt@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.399 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.399 X-Spam-Level: Subject: [xslt] Simple sample? X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 03:51:45 -0000 Hi,=0A=0AI have a silly, but important question. I have coded myself a simp= lest of samples yet it triggers an illlegal operation (or some other error)= . I'm using winXP SP2 w/ 1GB RAM etc... and MS VC++ 6.0 and here was my sou= rce code. While it compiles just fine, it crashes when I run it.=0A=0A#incl= ude =0A#include =0A#include =0A#include =0A#include =0A#include =0A#include =0A#include =0A#include =0A#include =0A#i= nclude =0A#include =0A=0Aextern i= nt xmlLoadExtDtdDefaultValue;=0A=0Aint main()=0A{=0A const char* params[1= 6 + 1];=0A size_t nbparams =3D 0;=0A params[nbparams] =3D NULL;=0A xmlSub= stituteEntitiesDefault(1);=0A xmlLoadExtDtdDefaultValue =3D 1;=0A xsltStyle= sheetPtr cur =3D xsltParseStylesheetFile((const xmlChar*) "employees.xsl");= =0A xmlDocPtr doc =3D xmlParseFile("employees.xml");=0A xmlDocPtr res =3D= xsltApplyStylesheet(cur, doc, params);=0A // FILE* p =3D fopen("out.html"= , "w");=0A xsltSaveResultToFile(stdout, res, cur); // <<<<= =0A=0A =0A =0A =0A =0A = =0A =0A = =0A =0A =0A =0A = =0A =0A =0A =0A
Department=0A IDTitleName
= =0A =0A =0A
=0A =0A =0A =0A =0A =0A c0c0c0=0A =0A =0A = cccccc=0A =0A =0A =0A =0A =0A =0A = =0A =0A = =0A =0A =0A = , =0A =0A =0A=0A=0Aand=0A=0A=0A= =0A =0A 101=0A John= =0A Coake=0A President= =0A 1997-11-12=0A 324021=0A Administration=0A 8=0A =0A...=0A=0A=0AI'm hoping I've= just made a silly mistake and someone here can point it out to me.=0A=0ATh= anks in advance,=0A=0ASimon=0A=0ASend instant messages to your online frien= ds http://au.messenger.yahoo.com From igor@zlatkovic.com Tue Dec 5 14:28:33 2006 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A57B93B01A0 for ; Tue, 5 Dec 2006 14:28:33 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16154-01 for ; Tue, 5 Dec 2006 14:28:30 -0500 (EST) Received: from mail.zlatkovic.com (spell.zlatkovic.com [62.75.159.112]) by menubar.gnome.org (Postfix) with ESMTP id B7C943B012D for ; Tue, 5 Dec 2006 14:28:29 -0500 (EST) Received: from [192.168.2.82] (port-195-158-180-64.dynamic.qsc.de [195.158.180.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Igor Zlatkovic", Issuer "zlatkovic.com CA" (verified OK)) by mail.zlatkovic.com (Postfix) with ESMTP id D38DC1C7489C for ; Tue, 5 Dec 2006 20:28:25 +0100 (CET) Message-ID: <4575C85B.3060403@zlatkovic.com> Date: Tue, 05 Dec 2006 20:28:27 +0100 From: Igor Zlatkovic User-Agent: Thunderbird 1.5.0.8 (X11/20061115) MIME-Version: 1.0 To: The Gnome XSLT library mailing-list References: <20061205035141.39734.qmail@web58211.mail.re3.yahoo.com> In-Reply-To: <20061205035141.39734.qmail@web58211.mail.re3.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.637 tagged_above=-999 required=2 tests=[AWL=-0.896, BAYES_20=-0.74, SPF_PASS=-0.001] X-Spam-Score: -1.637 X-Spam-Level: Subject: Re: [xslt] Simple sample? X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 19:28:33 -0000 Simon Flannery wrote: > xsltSaveResultToFile(stdout, res, cur); // <<<< X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9D22C3B0071 for ; Mon, 11 Dec 2006 04:49:38 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05755-09 for ; Mon, 11 Dec 2006 04:49:34 -0500 (EST) Received: from smtp-auth.serv.Uni-Osnabrueck.DE (a20n04eth0.rz.Uni-Osnabrueck.DE [131.173.17.163]) by menubar.gnome.org (Postfix) with ESMTP id C78353B006C for ; Mon, 11 Dec 2006 04:49:33 -0500 (EST) Received: from [131.173.75.24] (rhum.virtuos.Uni-Osnabrueck.DE [131.173.75.24]) (authenticated bits=0) by smtp-auth.serv.Uni-Osnabrueck.DE (8.13.1/8.13.1) with ESMTP id kBB9nJrj029885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 11 Dec 2006 10:49:24 +0100 Message-ID: <457D299F.9070409@uos.de> Date: Mon, 11 Dec 2006 10:49:19 +0100 From: Martin Gieseking User-Agent: Thunderbird 1.5.0.7 (X11/20060909) MIME-Version: 1.0 To: xslt@gnome.org References: <456ECF7C.4000801@uos.de> <60800.219.79.86.221.1164987034.squirrel@delightful.com.hk> In-Reply-To: <60800.219.79.86.221.1164987034.squirrel@delightful.com.hk> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.1.279297, Antispam-Engine: 2.4.0.264935, Antispam-Data: 2006.12.11.13933 (Univ. Osnabrueck) X-PMX-Spam: Gauge=IIIIIII, Probability=7%, Report=__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0 X-PMX-Spam-Level: IIIIIII X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.033 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, TW_IB=0.077] X-Spam-Score: -1.033 X-Spam-Level: Subject: Re: [xslt] variable/param bug in libxslt 1.1.18 and 1.1.19? X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2006 09:49:38 -0000 Bill, thanks for your bugfix (http://bugzilla.gnome.org/show_bug.cgi?id=381319). The current CVS version now works trouble-free with my stylesheets. Thanks again, Martin From gnome-xslt@m.gmane.org Mon Dec 11 05:55:31 2006 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CE6D23B008D for ; Mon, 11 Dec 2006 05:55:31 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09185-09 for ; Mon, 11 Dec 2006 05:55:27 -0500 (EST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 6616E3B0078 for ; Mon, 11 Dec 2006 05:55:25 -0500 (EST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GtioL-0006Ms-J3 for xslt@gnome.org; Mon, 11 Dec 2006 11:55:05 +0100 Received: from d83-190-243-168.cust.tele2.it ([83.190.243.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Dec 2006 11:55:05 +0100 Received: from f18m_cpp217828 by d83-190-243-168.cust.tele2.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Dec 2006 11:55:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: xslt@gnome.org From: Francesco Montorsi Date: Mon, 11 Dec 2006 11:54:13 +0100 Lines: 48 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: d83-190-243-168.cust.tele2.it User-Agent: Mozilla Thunderbird 1.5.0.8 (X11/20061115) In-Reply-To: Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.49 tagged_above=-999 required=2 tests=[AWL=0.667, BAYES_00=-2.599, FROM_HAS_ULINE_NUMS=0.291, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077] X-Spam-Score: -1.49 X-Spam-Level: Subject: Re: [xslt] [win32] xsltproc won't load XSL which are on different volumes X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2006 10:55:32 -0000 Hi, Little ping about this thread. If this is not the place for such report I can submit a bugzilla entry... Francesco Francesco Montorsi ha scritto: > Hi all, > > I think I've found a bug in xsltproc. > If I launch (from MSDOS prompt) the following command from "W:\wxWPM\docs": > > xsltproc --path c:\docbook\xhtml --nonet --xinclude -o user/ html.xsl manual.docbook > > I get: > > I/O error : Attempt to load network entity http://docbook.sourceforge.net/releas > e/xsl/current/xhtml/chunk.xsl > warning: failed to load external entity "http://docbook.sourceforge.net/release/ > xsl/current/xhtml/chunk.xsl" > compilation error: file html.xsl line 9 element import > xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/x > html/chunk.xsl > > if I copy entirely the wxWPM folder to the harddisk C: and launch the same > command from "C:\wxWPM\docs" I get the first two warnings but then xsltproc succeed. > > I'd guess that xsltproc is unable to use the paths which I specify through > --path if they're on volumes different from the one where I launch the > command... or do I miss something? > > Should I submit a bugzilla entry? > > Thanks, > Francesco > > > > > PS: > > C:\wxWPM\docs>xsltproc --version > Using libxml 20627CVS2877, libxslt 10117CVS1069 and libexslt 813CVS1069 > xsltproc was compiled against libxml 20626, libxslt 10117 and libexslt 813 > libxslt 10117 was compiled against libxml 20626 > libexslt 813 was compiled against libxml 20626 From veillard@redhat.com Mon Dec 11 06:14:09 2006 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DECE13B00F7 for ; Mon, 11 Dec 2006 06:14:08 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10425-01 for ; Mon, 11 Dec 2006 06:14:06 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 2A3963B00AB for ; Mon, 11 Dec 2006 06:14:06 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id kBBBE58C003172 for ; Mon, 11 Dec 2006 06:14:05 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id kBBBE0H2000709 for ; Mon, 11 Dec 2006 06:14:00 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id kBBBE0Ov004959 for ; Mon, 11 Dec 2006 06:14:00 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11.20060308/8.12.11/Submit) id kBBBE0Sp004957 for xslt@gnome.org; Mon, 11 Dec 2006 06:14:00 -0500 Date: Mon, 11 Dec 2006 06:14:00 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Message-ID: <20061211111400.GF1754@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.362 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077] X-Spam-Score: -2.362 X-Spam-Level: Subject: Re: [xslt] [win32] xsltproc won't load XSL which are on different volumes X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2006 11:14:09 -0000 On Mon, Dec 11, 2006 at 11:54:13AM +0100, Francesco Montorsi wrote: > Hi, > > Little ping about this thread. If this is not the place for such > report I can submit a bugzilla entry... The problem is that it's windows specific. I can't work on it, if you put it in bugzilla it will be even more hidden from the Windows aware people. What you need is someone on Windows trying to reproduce your problem and debug it. Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From ronburk@hightechinfo.com Mon Dec 11 15:25:03 2006 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 68E0B3B00A3 for ; Mon, 11 Dec 2006 15:25:03 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12247-02 for ; Mon, 11 Dec 2006 15:25:00 -0500 (EST) Received: from hightechinfo.com (mail.hightechinfo.com [209.189.197.99]) by menubar.gnome.org (Postfix) with ESMTP id 08ED53B007E for ; Mon, 11 Dec 2006 15:25:00 -0500 (EST) Received: from [209.189.197.106] (rondual.hightechinfo.com [209.189.197.106]) by hightechinfo.com (Postfix) with ESMTP id D81F73F for ; Mon, 11 Dec 2006 12:24:58 -0800 (PST) Message-ID: <457DBE80.80001@hightechinfo.com> Date: Mon, 11 Dec 2006 12:24:32 -0800 From: Ron Burk User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: The Gnome XSLT library mailing-list References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.001 tagged_above=-999 required=2 tests=[BAYES_50=0.001] X-Spam-Score: 0.001 X-Spam-Level: Subject: Re: [xslt] [win32] xsltproc won't load XSL which are on different volumes X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2006 20:25:03 -0000 >> If I launch (from MSDOS prompt) the following command from "W:\wxWPM\docs": If you can supply a small example that includes the files involved, I would be happy to see if I can repro it. From bkc@murkworks.com Tue Dec 12 15:06:16 2006 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 40BD63B0018 for ; Tue, 12 Dec 2006 15:06:16 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30595-06 for ; Tue, 12 Dec 2006 15:06:10 -0500 (EST) Received: from marimba.murkworks.com (marimba.murkworks.com [128.153.43.30]) by menubar.gnome.org (Postfix) with ESMTP id F1C263B008C for ; Tue, 12 Dec 2006 15:06:09 -0500 (EST) Received: from [10.20.0.21] (phoenix.murkworks.com [128.153.43.13]) by marimba.murkworks.com (8.13.1/8.13.1) with ESMTP id kBCK68La023284 for ; Tue, 12 Dec 2006 15:06:08 -0500 From: "Brad Clements" Organization: MurkWorks Inc To: xslt@gnome.org Date: Tue, 12 Dec 2006 15:06:08 -0500 MIME-Version: 1.0 Message-ID: <457EC560.7271.48544567@bkc.murkworks.com> Priority: normal X-mailer: Pegasus Mail for Windows (4.31-RC1) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.3.2 (marimba.murkworks.com [128.153.43.30]); Tue, 12 Dec 2006 15:06:08 -0500 (EST) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.447 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077] X-Spam-Score: -2.447 X-Spam-Level: Subject: [xslt] get libxslt version via python? debugging transform X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2006 20:06:16 -0000 Hi, Sometime in the past 4 months I've upgraded my python bindings to libxml2 and libxslt. Today I discover that one of my stylesheets is not working. Yet it does work with xsltproc and xml starlet. Because I'm using an altinstall of python on my RHEL4 Linux system, I use libxml2-python-2.6.21 to create the bindings. rpm -q reports libxml2-2.6.27-1 libxslt-1.1.18-1 After running python2.4 setup.py install -f, I run python2.4 and import libxml2. But I can't really be sure which version is being used from within python. Global constants like LIBXML_VERSION_STRING don't seem to exist in the python binding. 1. How can I be sure, from which Python, which version of libxml2 and libxslt is being used? 2. I am using libxslt from with Python to do a transform. This used to work, I don't believe my stylesheet has changed (much), but what really confuses me is that the transform works with xsltproc [bkc@server3 tal2xslt]$ xsltproc --version Using libxml 20627, libxslt 10118 and libexslt 813 xsltproc was compiled against libxml 20627, libxslt 10118 and libexslt 813 libxslt 10118 was compiled against libxml 20627 libexslt 813 was compiled against libxml 20627 and xml starlet (which uses a really old libxslt) Basically I am getting an error calling where The error is runtime error: file /home/bkc/src/eclipse/main24/tal2xslt/tal2xslt/xsl/tal2xslt.xsl line 401 element copy-of Attribute nodes must be added before any child nodes to an element. I understand what the error means, but debugging this is really difficult. It'd be a lot easier if I could find out which was being executed, or even if I knew the current output element name. Or if I could see what had been serialized up to this point. Any suggestions on how to debug this? Any idea why it works with xsltproc, but not via Python? I am thinking a version difference but I can't be sure which libxslt version I'm using from Python.. Thanks for any suggestions! -- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com AOL-IM or SKYPE: BKClements From veillard@redhat.com Wed Dec 13 05:50:22 2006 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BE05F3B0246 for ; Wed, 13 Dec 2006 05:50:22 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10957-07 for ; Wed, 13 Dec 2006 05:50:19 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 471CB3B00A8 for ; Wed, 13 Dec 2006 05:48:47 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id kBDAmkHa020061 for ; Wed, 13 Dec 2006 05:48:46 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id kBDAmkra022136 for ; Wed, 13 Dec 2006 05:48:46 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id kBDAmkQN012195 for ; Wed, 13 Dec 2006 05:48:46 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11.20060308/8.12.11/Submit) id kBDAmkYo012193 for xslt@gnome.org; Wed, 13 Dec 2006 05:48:46 -0500 Date: Wed, 13 Dec 2006 05:48:46 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Message-ID: <20061213104845.GB5028@redhat.com> References: <457EC560.7271.48544567@bkc.murkworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <457EC560.7271.48544567@bkc.murkworks.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.362 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077] X-Spam-Score: -2.362 X-Spam-Level: Subject: Re: [xslt] get libxslt version via python? debugging transform X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Dec 2006 10:50:22 -0000 On Tue, Dec 12, 2006 at 03:06:08PM -0500, Brad Clements wrote: > Hi, > > Sometime in the past 4 months I've upgraded my python bindings to libxml2 and > libxslt. Today I discover that one of my stylesheets is not working. Yet it does > work with xsltproc and xml starlet. > > Because I'm using an altinstall of python on my RHEL4 Linux system, I use > > libxml2-python-2.6.21 > > to create the bindings. > > rpm -q reports > > libxml2-2.6.27-1 > libxslt-1.1.18-1 I don't see how you can expect to have libxml2-python-2.6.21 and libxml2-2.6.27-1 RPMs installed simultaneously without troubles. Sorry that seems to be too much of a hack, that subsequent problems sounds somehow impossible to debug. Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From simon_flannery@yahoo.com.au Sun Dec 17 21:19:53 2006 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1BEDD3B02F6 for ; Sun, 17 Dec 2006 21:19:53 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24295-01 for ; Sun, 17 Dec 2006 21:19:50 -0500 (EST) Received: from web58203.mail.re3.yahoo.com (web58203.mail.re3.yahoo.com [68.142.236.141]) by menubar.gnome.org (Postfix) with SMTP id AFDDD3B032C for ; Sun, 17 Dec 2006 21:19:49 -0500 (EST) Received: (qmail 91507 invoked by uid 60001); 18 Dec 2006 02:19:49 -0000 Message-ID: <20061218021949.91505.qmail@web58203.mail.re3.yahoo.com> Received: from [202.7.176.133] by web58203.mail.re3.yahoo.com via HTTP; Sun, 17 Dec 2006 18:19:49 PST Date: Sun, 17 Dec 2006 18:19:49 -0800 (PST) From: Simon Flannery To: The Gnome XSLT library mailing-list MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.015 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: 0.015 X-Spam-Level: Subject: Re: [xslt] Simple sample? X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2006 02:19:53 -0000 Ok, I'm using MS VC++ 6, which option do I need to set to use "msvcrt.dll"?= ??=0A=0A----- Original Message ----=0AFrom: Igor Zlatkovic =0ATo: The Gnome XSLT library mailing-list =0ASent: Wed= nesday, 6 December, 2006 6:28:27 AM=0ASubject: Re: [xslt] Simple sample?=0A= =0A=0ASimon Flannery wrote:=0A> xsltSaveResultToFile(stdout, res, cur); //= <<<< X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F5AC3B0085 for ; Tue, 19 Dec 2006 18:27:16 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08759-08 for ; Tue, 19 Dec 2006 18:27:13 -0500 (EST) Received: from marimba.murkworks.com (marimba.murkworks.com [128.153.43.30]) by menubar.gnome.org (Postfix) with ESMTP id 4F49D3B0090 for ; Tue, 19 Dec 2006 18:27:13 -0500 (EST) Received: from [10.20.0.21] (phoenix.murkworks.com [128.153.43.13]) by marimba.murkworks.com (8.13.1/8.13.1) with ESMTP id kBJNRBZ8004824 for ; Tue, 19 Dec 2006 18:27:12 -0500 From: "Brad Clements" Organization: MurkWorks Inc To: The Gnome XSLT library mailing-list Date: Tue, 19 Dec 2006 18:27:11 -0500 MIME-Version: 1.0 Message-ID: <45882EFF.4278.9A2A3F@bkc.murkworks.com> Priority: normal In-reply-to: <20061213104845.GB5028@redhat.com> References: <457EC560.7271.48544567@bkc.murkworks.com> X-mailer: Pegasus Mail for Windows (4.31-RC1) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.3.2 (marimba.murkworks.com [128.153.43.30]); Tue, 19 Dec 2006 18:27:12 -0500 (EST) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.447 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077] X-Spam-Score: -2.447 X-Spam-Level: Subject: Re: [xslt] get libxslt version via python? debugging transform X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 23:27:16 -0000 On 13 Dec 2006 at 5:48, Daniel Veillard wrote: > I don't see how you can expect to have libxml2-python-2.6.21 and > libxml2-2.6.27-1 RPMs installed simultaneously without troubles. Sorry > that seems to be too much of a hack, that subsequent problems sounds > somehow impossible to debug. Sorry for the delay in responding, it's been a tough week. Also, I'm sorry my original post was not clear. Let me break it up into two questions. 1. when using python bindings for libxml2 and libxslt, how can I find out from python which libxml2 and libxslt version is being used? I thought I might find a module global like LIBXML_VERSION_STRING, but I can't find anything like that. 2. I have an .xslt stylesheet that functions correctly under some versions of libxslt, but not others. It works using this xsltproc: Using libxml 20627, libxslt 10118 and libexslt 813 xsltproc was compiled against libxml 20627, libxslt 10118 and libexslt 813 libxslt 10118 was compiled against libxml 20627 libexslt 813 was compiled against libxml 20627 It also works with xmlstarlet 1.0 (which I know uses an old statically linked libxslt) The rpms I have installed are: libxml2-2.6.27-1 libxslt-1.1.18-1 libxml2-python-2.6.27-1 libxslt-python-1.1.18-1 Now the twist. Because I am using an alternate install for Python 2.4 on my system, I cannot use libxslt-python RPM because that only adds libxslt support to the system python. The way I handle this is I download: ftp://xmlsoft.org/libxslt/python/libxml2-python-2.6.21.tar.gz and run setup.py against my alternate python. I assume that links against the current RPM version of libxslt (that is, 1.1.18-1) However when I use libxslt2 from my alternate python install, the transform fails unexpectedly with: element copy-of Attribute nodes must be added before any child nodes to an element. This stylesheet used to work some months ago, but I don't know exactly what has changed on my system since then. To debug, I have added lots of xsl:message elements to my stylesheet, and I am still perplexed as to why my stylesheet would fail, but only when transformed from the alternate python install. So to debug this more, I want to be certain which version of libxslt is being used by the alternate python install (hence question #1) Once I know that, I can look through bugzilla to see if there were any known issues related to the version I am using. Thanks! -- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com AOL-IM or SKYPE: BKClements From veillard@redhat.com Wed Dec 20 07:44:10 2006 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6C5F43B014C for ; Wed, 20 Dec 2006 07:44:10 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13798-09 for ; Wed, 20 Dec 2006 07:44:07 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 82B793B01C4 for ; Wed, 20 Dec 2006 07:44:07 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id kBKCi6CA019774 for ; Wed, 20 Dec 2006 07:44:06 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id kBKCi6sM031107 for ; Wed, 20 Dec 2006 07:44:06 -0500 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id kBKCi658009934 for ; Wed, 20 Dec 2006 07:44:06 -0500 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11.20060308/8.12.11/Submit) id kBKCi6pm009932 for xslt@gnome.org; Wed, 20 Dec 2006 07:44:06 -0500 Date: Wed, 20 Dec 2006 07:44:06 -0500 From: Daniel Veillard To: The Gnome XSLT library mailing-list Message-ID: <20061220124406.GL5838@redhat.com> References: <457EC560.7271.48544567@bkc.murkworks.com> <45882EFF.4278.9A2A3F@bkc.murkworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45882EFF.4278.9A2A3F@bkc.murkworks.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.362 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077] X-Spam-Score: -2.362 X-Spam-Level: Subject: Re: [xslt] get libxslt version via python? debugging transform X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.8 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2006 12:44:10 -0000 On Tue, Dec 19, 2006 at 06:27:11PM -0500, Brad Clements wrote: > On 13 Dec 2006 at 5:48, Daniel Veillard wrote: > > > I don't see how you can expect to have libxml2-python-2.6.21 and > > libxml2-2.6.27-1 RPMs installed simultaneously without troubles. Sorry > > that seems to be too much of a hack, that subsequent problems sounds > > somehow impossible to debug. > > Sorry for the delay in responding, it's been a tough week. > > Also, I'm sorry my original post was not clear. Let me break it up into two > questions. > > 1. when using python bindings for libxml2 and libxslt, how can I find out from > python which libxml2 and libxslt version is being used? > > I thought I might find a module global like LIBXML_VERSION_STRING, but I > can't find anything like that. Right, it seems to be missing, that's available at the C level though > 2. I have an .xslt stylesheet that functions correctly under some versions of libxslt, > but not others. > > It works using this xsltproc: > > Using libxml 20627, libxslt 10118 and libexslt 813 > xsltproc was compiled against libxml 20627, libxslt 10118 and libexslt 813 > libxslt 10118 was compiled against libxml 20627 > libexslt 813 was compiled against libxml 20627 > > > It also works with xmlstarlet 1.0 (which I know uses an old statically linked libxslt) > > The rpms I have installed are: > > libxml2-2.6.27-1 > libxslt-1.1.18-1 > libxml2-python-2.6.27-1 > libxslt-python-1.1.18-1 > > > Now the twist. Because I am using an alternate install for Python 2.4 on my > system, I cannot use libxslt-python RPM because that only adds libxslt support to > the system python. > > The way I handle this is I download: > > ftp://xmlsoft.org/libxslt/python/libxml2-python-2.6.21.tar.gz > > and run setup.py against my alternate python. > > I assume that links against the current RPM version of libxslt (that is, 1.1.18-1) > > > However when I use libxslt2 from my alternate python install, the transform fails > unexpectedly with: > > element copy-of > Attribute nodes must be added before any child nodes to an element. Your stylesheet seems to work with the new version, not with the old one (I don't see why you're using the old version in your alternate). Probably the result of bug fixes available only in the new version. Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/