From stdanley at yahoo.com Wed Jun 14 10:10:31 2006
From: stdanley at yahoo.com (Tom Stanley)
Date: Wed, 14 Jun 2006 07:10:31 -0700 (PDT)
Subject: [xslt] needed:set xslt variable in program
Message-ID: <20060614141031.72330.qmail@web30402.mail.mud.yahoo.com>
hello, guys
we plan to use libxml and libxslt in our projects.
what we need are like snippet belows:
We want to use something like xslt template to
produce some xml tree as process's input.
We can change this xml snippet to a xslt template and
use applystylesheet to produce expected output xml
tree.
However, we need to set a variable (named var ) in
program before apply the translation.
Does libxslt have any method to do this ,for example
like xmlXPathRegisterVariable in libxml?
or any other thoughts?
thx
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
From k.buchcik at 4commerce.de Wed Jun 14 14:06:35 2006
From: k.buchcik at 4commerce.de (Buchcik, Kasimier)
Date: Wed, 14 Jun 2006 20:06:35 +0200
Subject: [xslt] needed:set xslt variable in program
Message-ID:
Hi,
> -----Original Message-----
> From: xslt-bounces at gnome.org [mailto:xslt-bounces at gnome.org]
> On Behalf Of Tom Stanley
>
> hello, guys
> we plan to use libxml and libxslt in our projects.
> what we need are like snippet belows:
>
>
>
>
> select=""Data""/>
>
>
>
>
>
> select="string($var/Report/Data[1])"/>
>
>
>
>
> We want to use something like xslt template to
> produce some xml tree as process's input.
> We can change this xml snippet to a xslt template and
> use applystylesheet to produce expected output xml
> tree.
> However, we need to set a variable (named var ) in
> program before apply the translation.
> Does libxslt have any method to do this ,for example
> like xmlXPathRegisterVariable in libxml?
>
> or any other thoughts?
The common solution for this would be to use the document() function:
If you need a more sophisticated mechanism, then you could implement
an extension element/function. Have a look at how e.g. the
EXSLT function node-set() is implemented in Libxslt/Libexslt:
The XPath engine calls exsltNodeSetFunction() (in "libexslt/common.c"),
then xsltFunctionNodeSet() (in "libxslt/extra.c") is called, which
changes a result tree fragment into a node set.
In such an extension function, you could just hand-over a copy of an
internal node tree managed by your application.
Regards,
Kasimier
From Steve.Ball at explain.com.au Wed Jun 14 19:08:29 2006
From: Steve.Ball at explain.com.au (Steve Ball)
Date: Thu, 15 Jun 2006 09:08:29 +1000
Subject: [xslt] needed:set xslt variable in program
In-Reply-To: <20060614141031.72330.qmail@web30402.mail.mud.yahoo.com>
References: <20060614141031.72330.qmail@web30402.mail.mud.yahoo.com>
Message-ID:
Hi Tom,
Why not simply pass in the value as a stylesheet parameter? libxslt
certainly has functions/data structures to pass parameters; RTFM.
HTHs,
Steve Ball
On 15/06/2006, at 12:10 AM, Tom Stanley wrote:
> hello, guys
> we plan to use libxml and libxslt in our projects.
> what we need are like snippet belows:
>
>
>
>
> select=""Data""/>
>
>
>
>
>
> select="string($var/Report/Data[1])"/>
>
>
>
>
> We want to use something like xslt template to
> produce some xml tree as process's input.
> We can change this xml snippet to a xslt template and
> use applystylesheet to produce expected output xml
> tree.
> However, we need to set a variable (named var ) in
> program before apply the translation.
> Does libxslt have any method to do this ,for example
> like xmlXPathRegisterVariable in libxml?
>
> or any other thoughts?
>
> thx
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> xslt at gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt
>
From stdanley at yahoo.com Wed Jun 14 21:56:08 2006
From: stdanley at yahoo.com (Tom Stanley)
Date: Wed, 14 Jun 2006 18:56:08 -0700 (PDT)
Subject: [xslt] needed:set xslt variable in program
In-Reply-To:
Message-ID: <20060615015608.22200.qmail@web30408.mail.mud.yahoo.com>
can we set an xmlNodePtr in memory as a parameter?
--- Steve Ball wrote:
> Hi Tom,
>
> Why not simply pass in the value as a stylesheet
> parameter? libxslt
> certainly has functions/data structures to pass
> parameters; RTFM.
>
> HTHs,
> Steve Ball
>
> On 15/06/2006, at 12:10 AM, Tom Stanley wrote:
>
> > hello, guys
> > we plan to use libxml and libxslt in our
> projects.
> > what we need are like snippet belows:
> >
> >
> >
> >
> > > select=""Data""/>
> >
> >
> > select="0"/>
> >
> >
> > > select="string($var/Report/Data[1])"/>
> >
> >
> >
> >
> > We want to use something like xslt template to
> > produce some xml tree as process's input.
> > We can change this xml snippet to a xslt template
> and
> > use applystylesheet to produce expected output xml
> > tree.
> > However, we need to set a variable (named var ) in
> > program before apply the translation.
> > Does libxslt have any method to do this ,for
> example
> > like xmlXPathRegisterVariable in libxml?
> >
> > or any other thoughts?
> >
> > thx
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > xslt mailing list, project page
> http://xmlsoft.org/XSLT/
> > xslt at gnome.org
> > http://mail.gnome.org/mailman/listinfo/xslt
> >
>
> _______________________________________________
> xslt mailing list, project page
> http://xmlsoft.org/XSLT/
> xslt at gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
From stdanley at yahoo.com Wed Jun 14 22:09:10 2006
From: stdanley at yahoo.com (Tom Stanley)
Date: Wed, 14 Jun 2006 19:09:10 -0700 (PDT)
Subject: [xslt] needed:set xslt variable in program
In-Reply-To:
Message-ID: <20060615020910.80928.qmail@web30409.mail.mud.yahoo.com>
hi,Kasimier
--- "Buchcik, Kasimier"
wrote:
> The common solution for this would be to use the
> document() function:
>
>
>
> select="document('my-report.xml')/Report/Data[1]"/>
>
>
>
this thoughts is good,the only limit is we don't like
to load file from disk,but from an existed xmlNodePtr
from memory
> If you need a more sophisticated mechanism, then you
> could implement
> an extension element/function. Have a look at how
> e.g. the
> EXSLT function node-set() is implemented in
> Libxslt/Libexslt:
> The XPath engine calls exsltNodeSetFunction() (in
> "libexslt/common.c"),
> then xsltFunctionNodeSet() (in "libxslt/extra.c") is
> called, which
> changes a result tree fragment into a node set.
>
> In such an extension function, you could just
> hand-over a copy of an
> internal node tree managed by your application.
>
> select="mf:my-func('my-var-name')/Report/Data[1]"/>
>
we would do some test using this method.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
From veillard at redhat.com Thu Jun 15 04:00:25 2006
From: veillard at redhat.com (Daniel Veillard)
Date: Thu, 15 Jun 2006 04:00:25 -0400
Subject: [xslt] needed:set xslt variable in program
In-Reply-To: <20060615015608.22200.qmail@web30408.mail.mud.yahoo.com>
References:
<20060615015608.22200.qmail@web30408.mail.mud.yahoo.com>
Message-ID: <20060615080025.GI6722@redhat.com>
On Wed, Jun 14, 2006 at 06:56:08PM -0700, Tom Stanley wrote:
> can we set an xmlNodePtr in memory as a parameter?
Not that I know of. What you ask, is not in the standard, and
as Kasimier pointed out the simplest is to define your own extension
function like exslt:node-set and call it.
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard at redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
From Steve.Ball at explain.com.au Thu Jun 15 16:54:36 2006
From: Steve.Ball at explain.com.au (Steve Ball)
Date: Fri, 16 Jun 2006 06:54:36 +1000
Subject: [xslt] needed:set xslt variable in program
In-Reply-To: <20060615015608.22200.qmail@web30408.mail.mud.yahoo.com>
References: <20060615015608.22200.qmail@web30408.mail.mud.yahoo.com>
Message-ID: <41C4B6BE-6C2A-426A-91BC-A8B5E5A48CB1@explain.com.au>
Tom,
Upon re-reading your original posting it would seem that a parameter
is not what you want, and that the document() function or an
extension would be the way to go. Since you have already built these
documents in-memory as xmlDocPtr's, then I'd say an extension
function is needed to access them.
Parameters allow you to pass in an atomic value (a string, a number
or a nodeset). libxslt has the neat feature that you can pass an
XPath and resolve it to a nodeset, but that would consist of nodes
from the source document, not an externally-derived "snippet".
Cheers,
Steve
On 15/06/2006, at 11:56 AM, Tom Stanley wrote:
> can we set an xmlNodePtr in memory as a parameter?
>
> --- Steve Ball wrote:
>
>> Hi Tom,
>>
>> Why not simply pass in the value as a stylesheet
>> parameter? libxslt
>> certainly has functions/data structures to pass
>> parameters; RTFM.
>>
>> HTHs,
>> Steve Ball
>>
>> On 15/06/2006, at 12:10 AM, Tom Stanley wrote:
>>
>>> hello, guys
>>> we plan to use libxml and libxslt in our
>> projects.
>>> what we need are like snippet belows:
>>>
>>>
>>>
>>>
>>> >> select=""Data""/>
>>>
>>>
>>> > select="0"/>
>>>
>>>
>>> >> select="string($var/Report/Data[1])"/>
>>>
>>>
>>>
>>>
>>> We want to use something like xslt template to
>>> produce some xml tree as process's input.
>>> We can change this xml snippet to a xslt template
>> and
>>> use applystylesheet to produce expected output xml
>>> tree.
>>> However, we need to set a variable (named var ) in
>>> program before apply the translation.
>>> Does libxslt have any method to do this ,for
>> example
>>> like xmlXPathRegisterVariable in libxml?
>>>
>>> or any other thoughts?
>>>
>>> thx
>>>
>>>
>>> __________________________________________________
>>> Do You Yahoo!?
>>> Tired of spam? Yahoo! Mail has the best spam
>> protection around
>>> http://mail.yahoo.com
>>> _______________________________________________
>>> xslt mailing list, project page
>> http://xmlsoft.org/XSLT/
>>> xslt at gnome.org
>>> http://mail.gnome.org/mailman/listinfo/xslt
>>>
>>
>> _______________________________________________
>> xslt mailing list, project page
>> http://xmlsoft.org/XSLT/
>> xslt at gnome.org
>> http://mail.gnome.org/mailman/listinfo/xslt
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
From RFC 2396:
"Relative URI references are distinguished from absolute URI in that
they do not begin with a scheme name. Instead, the scheme is
inherited from the base URI,"
So your thing should be uri="./art500/art500.dtd".
Another marginally related question for the experts: If a relative URI is
specified in the catalog, what should it be relative to? To the location of
the catalog, or to the current directory of the current process? When I run
xmllint --valid on something, it uses the directory where it started from as
a base URI for every relative URI it encounters in the catalog. Is that
okay?
Ciao,
Igor
From veillard@redhat.com Thu Jun 1 04:26:12 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id C66743B0119
for ; Thu, 1 Jun 2006 04:26:11 -0400 (EDT)
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 16712-04 for ;
Thu, 1 Jun 2006 04:26:10 -0400 (EDT)
Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31])
by menubar.gnome.org (Postfix) with ESMTP id D1F883B0111
for ; Thu, 1 Jun 2006 04:26:08 -0400 (EDT)
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
k518Q7kI002884; Thu, 1 Jun 2006 04:26:07 -0400
Received: from devserv.devel.redhat.com (devserv.devel.redhat.com
[172.16.58.1])
by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id
k518Q7Vv007070; Thu, 1 Jun 2006 04:26:07 -0400
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
k518Q744017207; Thu, 1 Jun 2006 04:26:07 -0400
Received: (from veillard@localhost)
by devserv.devel.redhat.com (8.12.11.20060308/8.12.11/Submit) id
k518Q7qs017205; Thu, 1 Jun 2006 04:26:07 -0400
Date: Thu, 1 Jun 2006 04:26:07 -0400
From: Daniel Veillard
To: The Gnome XSLT library mailing-list
Subject: Re: [xslt] RE: [xml] does xsltproc caches subexpressions
Message-ID: <20060601082607.GA16734@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.367 tagged_above=-999 required=2 tests=[AWL=0.003,
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.367
X-Spam-Level:
Cc:
X-BeenThere: xslt@gnome.org
X-Mailman-Version: 2.1.5
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: Thu, 01 Jun 2006 08:26:12 -0000
On Tue, May 30, 2006 at 10:36:15PM +0200, Buchcik, Kasimier wrote:
> But you still need to customize xsltproc.c in order to activate the
> XPath
> object cache. It is disabled by default, so we need to make people
> aware that it's there and can be activated if things run slowly.
> Add a call to xmlXPathContextSetObjectCache() in xsltproc.c after
> the creation of the transformation context:
The proper way to do this is probably:
- make a new libxml2 release
- change xsltproc to activate the cache
(or should we do that by default in libxslt)
- release a new version of libxslt depending on the new API
doing it by default in libxslt would avoid aving to change any client code.
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
From k.buchcik@4commerce.de Thu Jun 1 05:55:13 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id 826223B0132
for ; Thu, 1 Jun 2006 05:55:13 -0400 (EDT)
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 24958-10 for ;
Thu, 1 Jun 2006 05:55:12 -0400 (EDT)
Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146])
by menubar.gnome.org (Postfix) with ESMTP id 75C3E3B00EC
for ; Thu, 1 Jun 2006 05:55:12 -0400 (EDT)
Received: from localhost ([127.0.0.1])
by mail.firmenpost.de with esmtp (Exim 4.50)
id 1FljtO-0004oi-IQ; Thu, 01 Jun 2006 11:55:02 +0200
Received: from pegasus.omega.4commerce.de ([10.1.2.11])
by mail.firmenpost.de with esmtp (Exim 4.50)
id 1FljtO-0004oc-2N; Thu, 01 Jun 2006 11:55:02 +0200
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 1 Jun 2006 11:55:10 +0200
Message-ID:
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [xslt] RE: [xml] does xsltproc caches subexpressions
thread-index: AcaFVRIga/85Sd4tRje26G5zYiiSBAAC6J0g
From: "Buchcik, Kasimier"
To: ,
"The Gnome XSLT library mailing-list"
Subject: RE: [xslt] RE: [xml] does xsltproc caches subexpressions
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de
X-SA-Exim-Connect-IP: 127.0.0.1
X-SA-Exim-Mail-From: k.buchcik@4commerce.de
X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false
X-Virus-Scanned: by amavisd-new at gnome.org
X-Spam-Status: No, score=-2.348 tagged_above=-999 required=2
tests=[AWL=-0.038, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_BX=0.077,
TW_IB=0.077]
X-Spam-Score: -2.348
X-Spam-Level:
Cc:
X-BeenThere: xslt@gnome.org
X-Mailman-Version: 2.1.5
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: Thu, 01 Jun 2006 09:55:13 -0000
Hi,=20
> -----Original Message-----
> From: xslt-bounces@gnome.org [mailto:xslt-bounces@gnome.org]=20
> On Behalf Of Daniel Veillard
> On Tue, May 30, 2006 at 10:36:15PM +0200, Buchcik, Kasimier wrote:
> > But you still need to customize xsltproc.c in order to activate the
> > XPath
> > object cache. It is disabled by default, so we need to make people
> > aware that it's there and can be activated if things run slowly.
> > Add a call to xmlXPathContextSetObjectCache() in xsltproc.c after
> > the creation of the transformation context:
>=20
> The proper way to do this is probably:
> - make a new libxml2 release
> - change xsltproc to activate the cache
> (or should we do that by default in libxslt)
> - release a new version of libxslt depending on the new API
>=20
> doing it by default in libxslt would avoid aving to change=20
> any client code.
Great. I wasn't sure this can be easily added to Libxslt, since
then it would depend on the latest Libxml2 code. But if that's OK,
then I would recommend activating it by default in Libxslt, rather
than only in xsltproc.c. The transformations gain so much with the
cache, that I think the people don't mind an additional overhead of
about 40 KB for it (if ever filled to maximum). And they still can
disable the cache before the transformation if really needed.
Regards,
Kasimier
From oliverst@online.de Thu Jun 1 05:42:10 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id 4E1E23B0137
for ; Thu, 1 Jun 2006 05:42:10 -0400 (EDT)
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 23494-01 for ;
Thu, 1 Jun 2006 05:42:06 -0400 (EDT)
Received: from moutng.kundenserver.de (moutng.kundenserver.de
[212.227.126.177])
by menubar.gnome.org (Postfix) with ESMTP id 577603B0D49
for ; Thu, 1 Jun 2006 05:15:49 -0400 (EDT)
Received: from [172.23.4.151] (helo=pustefix151.kundenserver.de)
by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis),
id 0MKxQS-1FljHP44rI-0006po; Thu, 01 Jun 2006 11:15:48 +0200
Message-Id: <26869193.128141149153347898.JavaMail.servlet@kundenserver>
From: oliverst@online.de
To:
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-Binford: 6100 (more power)
X-Mailer: Webmail
X-Originating-From: 5074873
X-Routing: DE
X-Message-Id: <5074873$1149153347897172.23.4.15113082069@pustefix151.kundenserver.de-286350973>
X-Received: from pustefix151.kundenserver.de by 206.253.224.132 with HTTP id
5074873 for [xslt@gnome.org]; Thu, 1 Jun 2006 11:15:47 CEST
Date: Thu, 01 Jun 2006 11:15:47 +0200
X-Virus-Scanned: by amavisd-new at gnome.org
X-Spam-Status: No, score=-1.587 tagged_above=-999 required=2
tests=[AWL=-0.026, BAYES_00=-2.599, NO_REAL_NAME=0.961, TW_IB=0.077]
X-Spam-Score: -1.587
X-Spam-Level:
X-Mailman-Approved-At: Thu, 01 Jun 2006 08:16:55 -0400
Subject: [xslt] valgrind warning in libxslt
X-BeenThere: xslt@gnome.org
X-Mailman-Version: 2.1.5
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: Thu, 01 Jun 2006 09:42:10 -0000
Loading the file at
http://www.breaken.de/temp/trk_trkdata.xsl
with libxslt-1.1.4 (using the official RPM) is causing this valgrind warning:
==5721== Thread 50:
==5721== Conditional jump or move depends on uninitialised value(s)
==5721== at 0x440288E: xmlXPathCompPathExpr (xpath.c:7930)
==5721== by 0x44034EC: xmlXPathCompUnaryExpr (xpath.c:8308)
==5721== by 0x440373E: xmlXPathCompMultiplicativeExpr (xpath.c:8373)
==5721== by 0x440392E: xmlXPathCompAdditiveExpr (xpath.c:8414)
==5721== by 0x4403AAE: xmlXPathCompRelationalExpr (xpath.c:8452)
==5721== by 0x4403C2E: xmlXPathCompEqualityExpr (xpath.c:8494)
==5721== by 0x4403DBE: xmlXPathCompAndExpr (xpath.c:8525)
==5721== by 0x4403F2E: xmlXPathCompileExpr (xpath.c:8551)
==5721== by 0x4402CF8: xmlXPathCompPathExpr (xpath.c:8005)
==5721== by 0x44034EC: xmlXPathCompUnaryExpr (xpath.c:8308)
==5721== by 0x440373E: xmlXPathCompMultiplicativeExpr (xpath.c:8373)
==5721== by 0x440392E: xmlXPathCompAdditiveExpr (xpath.c:8414)
==5721== by 0x4403AAE: xmlXPathCompRelationalExpr (xpath.c:8452)
==5721== by 0x4403C2E: xmlXPathCompEqualityExpr (xpath.c:8494)
==5721== by 0x4403DBE: xmlXPathCompAndExpr (xpath.c:8525)
==5721== by 0x4403F2E: xmlXPathCompileExpr (xpath.c:8551)
==5721== by 0x44078B4: xmlXPathCtxtCompile (xpath.c:11403)
==5721== by 0x45AB279: xsltXPathCompile (xsltutils.c:1864)
==5721== by 0x45BD58F: xsltWhenComp (preproc.c:976)
==5721== by 0x45BDC49: xsltStylePreCompute (preproc.c:1207)
==5721== by 0x45A6949: xsltPrecomputeStylesheet (xslt.c:1203)
==5721== by 0x45A7BB0: xsltParseStylesheetProcess (xslt.c:1955)
==5721== by 0x45A7DE2: xsltParseStylesheetImportedDoc (xslt.c:2051)
==5721== by 0x45A7EA9: xsltParseStylesheetDoc (xslt.c:2080)
==5721== by 0x45A7F5A: xsltParseStylesheetFile (xslt.c:2135)
Unfortunately I couldn't test it with the actual version, because I had some problems linking with them on my system, but I think it should be easy to test for you.
From ensonic@hora-obscura.de Thu Jun 1 14:43:05 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id 651D43B011F
for ; Thu, 1 Jun 2006 14:43:05 -0400 (EDT)
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 27899-08 for ;
Thu, 1 Jun 2006 14:43:03 -0400 (EDT)
Received: from moutng.kundenserver.de (moutng.kundenserver.de
[212.227.126.177])
by menubar.gnome.org (Postfix) with ESMTP id 5C5EF3B0CA3
for ; Thu, 1 Jun 2006 14:43:03 -0400 (EDT)
Received: from [82.165.27.189] (helo=hora-obscura.de)
by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis),
id 0ML29c-1Fls8J06kd-0000dr; Thu, 01 Jun 2006 20:42:59 +0200
Received: from localhost (localhost [127.0.0.1])
by smtp.hora-obscura.de (Postfix) with ESMTP id 4E88D878028;
Thu, 1 Jun 2006 20:42:58 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
(using TLSv1 with cipher RC4-MD5 (128/128 bits))
(No client certificate requested)
by smtp.hora-obscura.de (Postfix) with ESMTP id 7B9AE878022;
Thu, 1 Jun 2006 20:42:53 +0200 (CEST)
Subject: RE: [xslt] RE: [xml] does xsltproc caches subexpressions
From: Stefan Kost
To: "Buchcik, Kasimier"
In-Reply-To:
References:
Content-Type: text/plain
Date: Thu, 01 Jun 2006 21:42:51 +0300
Message-Id: <1149187371.24491.5.camel@fluffy.local>
Mime-Version: 1.0
X-Mailer: Evolution 2.6.1
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by amavisd-new using ClamAV at hora-obscura.de
X-Provags-ID: kundenserver.de abuse@kundenserver.de
login:8eea7ddcf9c0cceb26830fe517b7ade3
X-Virus-Scanned: by amavisd-new at gnome.org
X-Spam-Status: No, score=-2.539 tagged_above=-999 required=2 tests=[AWL=0.060,
BAYES_00=-2.599]
X-Spam-Score: -2.539
X-Spam-Level:
Cc: xslt@gnome.org
X-BeenThere: xslt@gnome.org
X-Mailman-Version: 2.1.5
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: Thu, 01 Jun 2006 18:43:05 -0000
Hi Kasimier,
I've been too keen to see it and just tried it. Please note that in
xsltproc the change need to be to call xmlXPathContextSetCache() and not
xmlXPathContextSetObjectCache(). It seems infact faster and most
noticable is the lower memory usage. And finally the generated documents
look good. So for now I'd love to see this activated by default.
Stefan
Am Dienstag, den 30.05.2006, 22:36 +0200 schrieb Buchcik, Kasimier:
> Hi,
>
> > -----Original Message-----
> > From: Stefan Kost [mailto:ensonic@hora-obscura.de]
>
> [...]
>
> > Am Montag, den 22.05.2006, 12:54 +0200 schrieb Buchcik, Kasimier:
> > > Hi,
>
> [...]
>
> > > The next bottleneck in the row is the template "indexterm" (mode =
> > > "reference")
> > > in "autoidx.xsl":
>
> Next results:
>
>
> 1) The expression "//index[&scope;][1]" was the bottleneck of the
> "indexterm"-template.
>
> We made the following enhancements to the XPath module:
> 2) Added an XPath object cache. This will avoid massive creation/freeing
> of XPath objects. For the generation of the gst-docs 44 million
> objects
> were created; after the cache was in use this dropped to 22 million
> objects. If all slots of the cache are filled to maximum it will
> consume
> about 40 KB additional memory.
>
> 3) Enhanced xmlXPathNodeCollectAndTest(), which is the central function
> for evaluation of steps.
>
> a) We eliminated massive recreation of xmlNodeSet structs; this was a
> big bottleneck when traversing the descendant-or-self axis, since for
> every traversed node a new xmlNodeSet was created; just count all
> nodes
> of any type in the XInclude-processed input document of gst-docs and
> you'll have the number of the structs created for every evaluation of
> this axis.
>
> b) The following comes from the ChangeLog, since I don't want to
> invent another explanation:
> Optimized xmlXPathNodeCollectAndTest() and
> xmlXPathNodeCollectAndTestNth() to evaluate a compound
> traversal of 2 axes when we have a "//foo" expression.
> This is done with a rewrite of the XPath AST in
> xmlXPathRewriteDOSExpression(); I added an additional field
> to xmlXPathStepOp for this (but the field's name should be
> changed). The mechanism: the embracing descendant-or-self
> axis traversal (also optimized to return only nodes which
> can hold elements), will produce context nodes for the
> inner traversal of the child axis. This way we avoid a full
> node-collecting traversal of the descendant-or-self axis.
> Some tests indicate that this can reduce execution time of
> "//foo" to 50%. Together with the XPath object cache this
> all significantly speeds up libxslt.
>
> So the previous most-time-consuming templates were:
>
> number match name mode Calls Tot 100us Avg
>
> 0 indexterm reference 2464 13039183
> 5291
> 1 gentext.template 16047 2219472
> 138
> 2 user.head.content 53 2216486
> 41820
> 3 chunk 191008 1984551
> 10
> 4 * recursive-chunk-filename
> 92686 799234
> 8
>
>
> Current result:
>
> number match name mode Calls Tot 100us Avg
>
> 0 indexterm reference 2464 3425896
> 1390
> 1 chunk 191008 1609874
> 8
> 2 gentext.template 16047 1261323
> 78
> 3 dbhtml-dir 140277 710035
> 5
> 4 * recursive-chunk-filename
> 92686 703808
> 7
> 5 user.head.content 53 600561
> 11331
>
>
> Stefan, If would be great if you could try the current CVS HEAD of
> Libxml2/Libxslt for the gst-docs generation. It would be interesting
> if this fixes the issue even for Ed Catmur and his sparse-memory
> machine.
> But you still need to customize xsltproc.c in order to activate the
> XPath
> object cache. It is disabled by default, so we need to make people
> aware that it's there and can be activated if things run slowly.
> Add a call to xmlXPathContextSetObjectCache() in xsltproc.c after
> the creation of the transformation context:
>
> ctxt = xsltNewTransformContext(cur, doc);
> if (ctxt == NULL)
> return;
> if (ctxt->xpathCtxt)
> xmlXPathContextSetObjectCache(ctxt->xpathCtxt, 1, -1, 0);
>
>
> Regards,
>
> Kasimier
From k.buchcik@4commerce.de Thu Jun 1 14:48:56 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id 4CF1E3B0D82
for ; Thu, 1 Jun 2006 14:48:56 -0400 (EDT)
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 28774-06 for ;
Thu, 1 Jun 2006 14:48:52 -0400 (EDT)
Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146])
by menubar.gnome.org (Postfix) with ESMTP id 716213B011F
for ; Thu, 1 Jun 2006 14:48:52 -0400 (EDT)
Received: from localhost ([127.0.0.1])
by mail.firmenpost.de with esmtp (Exim 4.50)
id 1FlsDo-0005Qe-Nx; Thu, 01 Jun 2006 20:48:40 +0200
Received: from pegasus.omega.4commerce.de ([10.1.2.11])
by mail.firmenpost.de with esmtp (Exim 4.50)
id 1FlsDo-0005QY-7Y; Thu, 01 Jun 2006 20:48:40 +0200
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 1 Jun 2006 20:48:48 +0200
Message-ID:
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [xslt] RE: [xml] does xsltproc caches subexpressions
thread-index: AcaFqzac2haO9B1KR6WN2pPeP6/OpQAAH41Q
From: "Buchcik, Kasimier"
To: "Stefan Kost"
Subject: RE: [xslt] RE: [xml] does xsltproc caches subexpressions
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de
X-SA-Exim-Connect-IP: 127.0.0.1
X-SA-Exim-Mail-From: k.buchcik@4commerce.de
X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false
X-Virus-Scanned: by amavisd-new at gnome.org
X-Spam-Status: No, score=-2.425 tagged_above=-999 required=2 tests=[AWL=0.039,
BAYES_00=-2.599, FORGED_RCVD_HELO=0.135]
X-Spam-Score: -2.425
X-Spam-Level:
Cc: xslt@gnome.org
X-BeenThere: xslt@gnome.org
X-Mailman-Version: 2.1.5
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: Thu, 01 Jun 2006 18:48:56 -0000
Hi,=20
> -----Original Message-----
> From: Stefan Kost [mailto:ensonic@hora-obscura.de]=20
> Hi Kasimier,
>=20
> I've been too keen to see it and just tried it. Please note that in
> xsltproc the change need to be to call=20
> xmlXPathContextSetCache() and not
> xmlXPathContextSetObjectCache(). It seems infact faster and most
> noticable is the lower memory usage. And finally the=20
> generated documents
> look good. So for now I'd love to see this activated by default.
Yes, I changed this to xmlXPathContextSetCache() today, since might
cache other things than XPath objects in the future - so a more
generic name.
It is already activated by default in the CVS HEAD :-)
Regards,
Kasimier
From jirka@kosek.cz Thu Jun 1 17:34:05 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id C354B3B032C
for ; Thu, 1 Jun 2006 17:34:05 -0400 (EDT)
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 08158-06 for ;
Thu, 1 Jun 2006 17:34:04 -0400 (EDT)
Received: from vse.vse.cz (vse.vse.cz [146.102.16.2])
by menubar.gnome.org (Postfix) with ESMTP id 9833C3B0254
for ; Thu, 1 Jun 2006 17:34:03 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
by vse.vse.cz (Postfix) with ESMTP id 0DDF213419
for ; Thu, 1 Jun 2006 23:34:02 +0200 (CEST)
Received: from vse.vse.cz ([127.0.0.1])
by localhost (vse.vse.cz [127.0.0.1]) (amavisd-new,
port 10024) with ESMTP
id 26883-07 for ; Thu, 1 Jun 2006 23:34:01 +0200 (CEST)
Received: from baribal.vse.cz (baribal.vse.cz [146.102.42.7])
by vse.vse.cz (Postfix) with ESMTP id 4F7B813414
for ; Thu, 1 Jun 2006 23:34:01 +0200 (CEST)
Received: from [10.0.0.1] ([84.244.121.146])
by baribal.vse.cz (Lotus Domino Release 6.5.4FP3)
with ESMTP id 2006060123341384-5254 ; Thu, 1 Jun 2006 23:34:13 +0200
Message-ID: <447F5D4A.9010205@kosek.cz>
Date: Thu, 01 Jun 2006 23:34:02 +0200
From: Jirka Kosek
User-Agent: Thunderbird 1.5.0.2 (Windows/20060308)
MIME-Version: 1.0
To: The Gnome XSLT library mailing-list
Subject: Re: [xslt] RE: [xml] does xsltproc caches subexpressions
References:
<1149187371.24491.5.camel@fluffy.local>
In-Reply-To: <1149187371.24491.5.camel@fluffy.local>
X-MIMETrack: Itemize by SMTP Server on baribal/VSE(Release 6.5.4FP3|January 09,
2006) at 01.06.2006 23:34:14,
Serialize by Router on baribal/VSE(Release 6.5.4FP3|January 09, 2006) at
01.06.2006 23:34:14, Serialize complete at 01.06.2006 23:34:14
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature";
micalg=sha1; boundary="------------ms040901070400070104040900"
X-Virus-Scanned: amavisd-new at vse.cz
X-Virus-Scanned: by amavisd-new at gnome.org
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2
tests=[BAYES_00=-2.599]
X-Spam-Score: -2.599
X-Spam-Level:
X-BeenThere: xslt@gnome.org
X-Mailman-Version: 2.1.5
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: Thu, 01 Jun 2006 21:34:05 -0000
This is a cryptographically signed message in MIME format.
--------------ms040901070400070104040900
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: quoted-printable
Stefan Kost wrote:
> I've been too keen to see it and just tried it. Please note that in
> xsltproc the change need to be to call xmlXPathContextSetCache() and no=
t
> xmlXPathContextSetObjectCache(). It seems infact faster and most
> noticable is the lower memory usage. And finally the generated document=
s
> look good. So for now I'd love to see this activated by default.
Does this mean that your problems with DocBook indexing speed in=20
xsltproc are solved now?
Jirka
--=20
------------------------------------------------------------------
Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz
------------------------------------------------------------------
Profesion=E1ln=ED =B9kolen=ED a poradenstv=ED v oblasti technologi=ED =
XML.
Pod=EDvejte se na n=E1=B9 nov=EC spu=B9t=ECn=FD web http://DocBook.=
cz
Podrobn=FD p=F8ehled =B9kolen=ED http://xmlguru.cz/skoleni/
------------------------------------------------------------------
Nejbli=BE=B9=ED term=EDny =B9kolen=ED:
** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 **
** XSLT 23.-26.10.2006 ** XML sch=E9mata 13.-15.11.2006 **
------------------------------------------------------------------
http://xmlguru.cz Blog mostly about XML for English readers
------------------------------------------------------------------
--------------ms040901070400070104040900
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
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RqFYNSJpn+44
KSc2eh3vWT30cUxn9zuPTWzwodJwjqXQW3uP40a4MP4Y61HxIqik/92YfKPOg5KHs5gzcxOf
Epdnu1hjpqIqeFjCKmGhxiW0WMGZDrusRFdnd1k7q1InAAAAAAAA
--------------ms040901070400070104040900--
From veillard@redhat.com Thu Jun 8 04:36:46 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id 9AD833B0EAC
for ; Thu, 8 Jun 2006 04:36:46 -0400 (EDT)
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 19647-03 for ;
Thu, 8 Jun 2006 04:36:45 -0400 (EDT)
Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31])
by menubar.gnome.org (Postfix) with ESMTP id 3A2373B0E22
for ; Thu, 8 Jun 2006 04:36:45 -0400 (EDT)
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
k588aiuL005177 for ; Thu, 8 Jun 2006 04:36:44 -0400
Received: from devserv.devel.redhat.com (devserv.devel.redhat.com
[172.16.58.1])
by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id
k588aipI016971 for ; Thu, 8 Jun 2006 04:36:44 -0400
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
k588aiMd030599 for ; Thu, 8 Jun 2006 04:36:44 -0400
Received: (from veillard@localhost)
by devserv.devel.redhat.com (8.12.11.20060308/8.12.11/Submit) id
k588aiTU030597 for xslt@gnome.org; Thu, 8 Jun 2006 04:36:44 -0400
Date: Thu, 8 Jun 2006 04:36:44 -0400
From: Daniel Veillard
To: xslt@gnome.org
Message-ID: <20060608083644.GE31509@redhat.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.1i
X-Virus-Scanned: by amavisd-new at gnome.org
X-Spam-Status: No, score=-2.367 tagged_above=-999 required=2 tests=[AWL=0.003,
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.367
X-Spam-Level:
Subject: [xslt] Release of libxslt-1.1.17
X-BeenThere: xslt@gnome.org
X-Mailman-Version: 2.1.5
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: Thu, 08 Jun 2006 08:36:46 -0000
The release was actually done 2 days ago you can find it at:
ftp://xmlsoft.org/xml/
http://xmlsoft.org/XSLT/
This release includes just a few bugs and compilation fixes, but the main
interest is the XPath optimizations and refactoring done by Kasimier (note
this requires the latest libxml2 release):
* portability fixes:
- python detection
* bug fixes:
- some regression tests
- attribute/namespaces output (Kasimier Buchcik)
- problem in mixed xsl:value-of and xsl:text uses (Kasimier)
* improvements:
- internal refactoring (Kasimier Buchcik)
- use of the XPath object cache in libxml2-2.6.25 (Kasimier)
Thanks Kasimier for all his works and those who reported bugs or performances
problems,
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
From k.buchcik@4commerce.de Thu Jun 8 05:31:01 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id 085973B0ECF
for ; Thu, 8 Jun 2006 05:31:01 -0400 (EDT)
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 23051-09 for ;
Thu, 8 Jun 2006 05:30:59 -0400 (EDT)
Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146])
by menubar.gnome.org (Postfix) with ESMTP id 53FC83B0ECC
for ; Thu, 8 Jun 2006 05:30:55 -0400 (EDT)
Received: from localhost ([127.0.0.1])
by mail.firmenpost.de with esmtp (Exim 4.50)
id 1FoGqj-0005Qd-SM; Thu, 08 Jun 2006 11:30:45 +0200
Received: from pegasus.omega.4commerce.de ([10.1.2.11])
by mail.firmenpost.de with esmtp (Exim 4.50)
id 1FoGqj-0005QX-Bl; Thu, 08 Jun 2006 11:30:45 +0200
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 8 Jun 2006 11:30:53 +0200
Message-ID:
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [xslt] Release of libxslt-1.1.17
thread-index: AcaK1rYtnOahrgnbQomzDruP3ZwVjwAByFww
From: "Buchcik, Kasimier"
To: ,
"The Gnome XSLT library mailing-list"
Subject: RE: [xslt] Release of libxslt-1.1.17
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de
X-SA-Exim-Connect-IP: 127.0.0.1
X-SA-Exim-Mail-From: k.buchcik@4commerce.de
X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false
X-Virus-Scanned: by amavisd-new at gnome.org
X-Spam-Status: No, score=-2.349 tagged_above=-999 required=2
tests=[AWL=-0.039, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_BX=0.077,
TW_IB=0.077]
X-Spam-Score: -2.349
X-Spam-Level:
Cc:
X-BeenThere: xslt@gnome.org
X-Mailman-Version: 2.1.5
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: Thu, 08 Jun 2006 09:31:01 -0000
Hi,=20
> -----Original Message-----
> From: xslt-bounces@gnome.org [mailto:xslt-bounces@gnome.org]=20
> On Behalf Of Daniel Veillard
> Sent: Thursday, June 08, 2006 10:37 AM
> To: xslt@gnome.org
> Subject: [xslt] Release of libxslt-1.1.17
>=20
> The release was actually done 2 days ago you can find it at:
> ftp://xmlsoft.org/xml/
> http://xmlsoft.org/XSLT/
>=20
> This release includes just a few bugs and compilation fixes,=20
> but the main
> interest is the XPath optimizations and refactoring done by=20
> Kasimier (note
> this requires the latest libxml2 release):
>=20
> * portability fixes:
> - python detection
> * bug fixes:
> - some regression tests
> - attribute/namespaces output (Kasimier Buchcik)
> - problem in mixed xsl:value-of and xsl:text uses (Kasimier)
> * improvements:
> - internal refactoring (Kasimier Buchcik)
> - use of the XPath object cache in libxml2-2.6.25 (Kasimier)
>=20
> Thanks Kasimier for all his works and those who reported=20
> bugs or performances
> problems,
>=20
> Daniel
Also note that most of the refactored code is IFDEFed out; we'll
enable this when it's safe enough and well tested. You can help
here by defining XSLT_REFACTORED in xsltInternals.h and trying to
use it.
Regards,
Kasimier
From rde2@utk.edu Thu Jun 8 14:36:24 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id 721DE3B0F4E
for ; Thu, 8 Jun 2006 14:36:24 -0400 (EDT)
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 28868-02 for ;
Thu, 8 Jun 2006 14:36:20 -0400 (EDT)
Received: from utkfsvs1.utk.tennessee.edu (utkfscb1.utk.tennessee.edu
[160.36.76.192])
by menubar.gnome.org (Postfix) with ESMTP id 7EED83B0FE3
for ; Thu, 8 Jun 2006 14:36:20 -0400 (EDT)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 8 Jun 2006 14:36:19 -0400
Message-ID: <6A5CE13D731DE249BC61CB8C5C474B0A0571D2BE@UTKFSVS1.utk.tennessee.edu>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Position: Experienced XSLT programmer needed
Thread-Index: AcaLKm72i+FDgkFWTOW2xeNI2EzEyw==
From: "Deridder, Jody L"
To:
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: [xslt] Position: Experienced XSLT programmer needed
X-BeenThere: xslt@gnome.org
X-Mailman-Version: 2.1.5
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: Thu, 08 Jun 2006 18:36:24 -0000
UNIVERSITY OF TENNESSEE LIBRARIES
EXEMPT VACANCY
IT Administrator II
=20
=20
Position: IT Administrator II
Appointment Rank: Exempt
Salary: $40,000 minimum
Available: July 1, 2006
=20
=20
The University of Tennessee Library seeks an innovative individual to
join
the Digital Library Center to develop open-source library information
systems in support of digital collections and services. This is an
exciting opportunity to join a rapidly developing program of the
University of Tennessee Libraries . The position will report to the
Coordinator of the Digital Library Center , working closely with other
DLC
staff, the Metadata Librarian, Library Technology Services staff, and
the
Special Collections Library staff.
The IT Administrator II will interact with a wide variety of individuals
in the library and university, working in a Linux environment, providing
software analysis, metadata transformation, and support for digital
library applications. A primary need for this position will be
experience
with XSLT. =20
The Digital Library Center is in a transition towards development of
local
systems based on open source software such as XTF
(http://www.cdlib.org/inside/projects/xtf/). This position would
interact
with counterparts at peer institutions developing similar systems.
Current
systems are based on DLXS (http://www.dlxs.org).
Required Qualifications: Bachelor's degree in Computer Science or
related
field. Professional experience in systems analysis and design plus
several
years of programming experience, including Java EE, XSLT, XML, SQL;
demonstrated familiarity with Unix and networking; experience with web
servers and web technologies; ability to interact professionally with
faculty, librarians and technical staff as well as good customer service
and communication skills.
Preferred Qualifications: Graduate degree in computer science or closely
related field. Experience with digital libraries; working knowledge of
scripting languages such as PERL, PHP, and Javascript; web development
experience; familiarity with metadata standards such as METS/MODS and
experience with metadata transformation.
Environment:
Located along the Tennessee River and near the Great Smoky Mountains
National Park , the metropolitan area offers a beautiful natural
environment in a mild climate with 4 distinct seasons. The cost of
living
is among the nation's most affordable. Knoxville, and nearby Oak Ridge,
support an opera company, symphony, jazz, and an art museum, and serve
as
the medical center for east Tennessee.
The University of Tennessee is the state's flagship institution of
higher
education, offering comprehensive programs of undergraduate, graduate,
and
professional education; research; and public service throughout the
state.
Enrollment in the statewide system is approximately 42,000. Our students
come from every county in Tennessee , every state in the nation, and
many
foreign countries. The university holds the Carnegie
Doctoral/Research-Extensive classification. It is the oldest and largest
public institution of higher education in Tennessee, founded in
Knoxville in 1794, two years before Tennessee became a state.
The University of Tennessee Libraries, with an annual budget of more
than
$13 million, includes the John C. Hodges Main Library; the James D.
Hoskins Library, which includes the Map and Special Collection
Libraries;
the Webster Pendergrass Agriculture and Veterinary Medicine Library; and
the George F. DeVine Music Library. The Social Work Library is located
in
Nashville . Over three hundred persons are employed, including 58
librarians, 10 exempt, 123 non-exempt, and 150 students. UT Libraries is
a
member of the Association of Research Libraries, SOLINET, and the Center
for Research Libraries. The UT Libraries offers a Web-based information
system and access to a variety of electronic information sources.
Additional information about this position and the UT community is
available at http://www.lib.utk.edu/lss/lpp/itadminDLC.html.
=20
Benefits: Annual leave is accrued at the rate of two days per month and
sick leave at the rate of one day per month. Exempt Staff have their
choice of a state retirement plan or ORP. Non-refundable contributions
to
either retirement plan are paid for the employee by the University.
Group
health and life insurance plans are available. Tuition remission is
available for all university employees; partial undergraduate tuition
remission is available to dependent children and spouses of UT
employees.
Review of applications will begin May 29, 2006 and will continue until
the
position is filled. Send cover letter addressing the above
qualifications,
a current resume, and the names, addresses, e-mail addresses, and
telephone numbers of three recent references to: Gail Conner, Manager,
Library Personnel & Procurement, 1015 Volunteer Blvd. , Knoxville , TN
37996-1000 . Application materials may be sent via email attachment to
gconner@utk.edu.
The institution welcomes and honors people of all races, creeds,
cultures
and sexual orientations, and values intellectual curiosity, pursuit of
knowledge, and academic freedom and integrity.
The University of Tennessee does not discriminate on the basis of race,
sex, color, religion, national origin, age, disability or veteran status
in provision of educational programs and services or employment
opportunities and benefits. This policy extends to both employment by
and
admission to the University.
The University does not discriminate on the basis of race, sex, or
disability in the education programs and activities pursuant to the
requirements of Title VI of the Civil Rights Act of 1964, Title IX of
the
Education Amendments of 1972, Section 504 of the Rehabilitation Act of
1973, and the Americans with Disabilities Act (ADA) of 1990.
Inquiries and charges of violation concerning Title VI, Title IX,
Section
504, ADA or the Age Discrimination in Employment Act (ADEA) or any of
the
other above referenced policies should be directed to the Office of
Equity
and Diversity (OED), 1840 Melrose Avenue , Knoxville , TN 37996-3560 ,
telephone (865) 974-2498 (V/TTY available) or 974-2440. Requests for
accommodation of a disability should be directed to the ADA Coordinator
at
the Office of Human Resources Management, 600 Henley Street , Knoxville
,
TN 37996-4125.
From stdanley@yahoo.com Wed Jun 14 10:11:21 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id 86C283B0505
for ; Wed, 14 Jun 2006 10:11:21 -0400 (EDT)
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 30655-09 for ;
Wed, 14 Jun 2006 10:11:17 -0400 (EDT)
Received: from web30402.mail.mud.yahoo.com (web30402.mail.mud.yahoo.com
[68.142.200.105])
by menubar.gnome.org (Postfix) with SMTP id 316D03B0203
for ; Wed, 14 Jun 2006 10:11:17 -0400 (EDT)
Received: (qmail 72332 invoked by uid 60001); 14 Jun 2006 14:10:31 -0000
Message-ID: <20060614141031.72330.qmail@web30402.mail.mud.yahoo.com>
Received: from [221.200.205.80] by web30402.mail.mud.yahoo.com via HTTP;
Wed, 14 Jun 2006 07:10:31 PDT
Date: Wed, 14 Jun 2006 07:10:31 -0700 (PDT)
From: Tom Stanley
To: xslt@gnome.org
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: by amavisd-new at gnome.org
X-Spam-Status: No, score=1.061 tagged_above=-999 required=2
tests=[BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447,
TW_BX=0.077, TW_IB=0.077]
X-Spam-Score: 1.061
X-Spam-Level: *
Subject: [xslt] needed:set xslt variable in program
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: Wed, 14 Jun 2006 14:11:21 -0000
hello, guys
we plan to use libxml and libxslt in our projects.
what we need are like snippet belows:
We want to use something like xslt template to
produce some xml tree as process's input.
We can change this xml snippet to a xslt template and
use applystylesheet to produce expected output xml
tree.
However, we need to set a variable (named var ) in
program before apply the translation.
Does libxslt have any method to do this ,for example
like xmlXPathRegisterVariable in libxml?
or any other thoughts?
thx
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
From k.buchcik@4commerce.de Wed Jun 14 14:07:08 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id 66E473B0079
for ; Wed, 14 Jun 2006 14:07:08 -0400 (EDT)
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 31281-03 for ;
Wed, 14 Jun 2006 14:07:06 -0400 (EDT)
Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146])
by menubar.gnome.org (Postfix) with ESMTP id E00723B000C
for ; Wed, 14 Jun 2006 14:07:05 -0400 (EDT)
Received: from localhost ([127.0.0.1])
by mail.firmenpost.de with esmtp (Exim 4.50)
id 1FqZl6-0004Yy-Tx; Wed, 14 Jun 2006 20:06:28 +0200
Received: from pegasus.omega.4commerce.de ([10.1.2.11])
by mail.firmenpost.de with esmtp (Exim 4.50)
id 1FqZl6-0004Ys-Bp; Wed, 14 Jun 2006 20:06:28 +0200
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Wed, 14 Jun 2006 20:06:35 +0200
Message-ID:
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [xslt] needed:set xslt variable in program
thread-index: AcaPvI/5Y2M7zrStSkCuubaG7hqH0gAHmrwg
From: "Buchcik, Kasimier"
To: "The Gnome XSLT library mailing-list"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de
X-SA-Exim-Connect-IP: 127.0.0.1
X-SA-Exim-Mail-From: k.buchcik@4commerce.de
X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false
X-Virus-Scanned: by amavisd-new at gnome.org
X-Spam-Status: No, score=-2.348 tagged_above=-999 required=2
tests=[AWL=-0.038, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_BX=0.077,
TW_IB=0.077]
X-Spam-Score: -2.348
X-Spam-Level:
Cc: Tom Stanley
Subject: Re: [xslt] needed:set xslt variable in program
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: Wed, 14 Jun 2006 18:07:08 -0000
Hi,=20
> -----Original Message-----
> From: xslt-bounces@gnome.org [mailto:xslt-bounces@gnome.org]=20
> On Behalf Of Tom Stanley
>=20
> hello, guys
> we plan to use libxml and libxslt in our projects.
> what we need are like snippet belows:
>
>
>
>
> select=3D""Data""/>
>
>
>
>
>
> select=3D"string($var/Report/Data[1])"/>
>
>
>
>
> We want to use something like xslt template to
> produce some xml tree as process's input.
> We can change this xml snippet to a xslt template and
> use applystylesheet to produce expected output xml
> tree.
> However, we need to set a variable (named var ) in
> program before apply the translation.=20
> Does libxslt have any method to do this ,for example
> like xmlXPathRegisterVariable in libxml?
>=20
> or any other thoughts?
The common solution for this would be to use the document() function:
=20
If you need a more sophisticated mechanism, then you could implement
an extension element/function. Have a look at how e.g. the
EXSLT function node-set() is implemented in Libxslt/Libexslt:
The XPath engine calls exsltNodeSetFunction() (in "libexslt/common.c"),
then xsltFunctionNodeSet() (in "libxslt/extra.c") is called, which
changes a result tree fragment into a node set.
In such an extension function, you could just hand-over a copy of an
internal node tree managed by your application.
Regards,
Kasimier
From Steve.Ball@explain.com.au Wed Jun 14 19:09:02 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id 58EAC3B02D1
for ; Wed, 14 Jun 2006 19:09:02 -0400 (EDT)
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 13834-06 for ;
Wed, 14 Jun 2006 19:09:00 -0400 (EDT)
Received: from explain.com.au (mail.explain.com.au [203.22.237.222])
by menubar.gnome.org (Postfix) with ESMTP id 5D0B13B02FD
for ; Wed, 14 Jun 2006 19:08:59 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
by explain.com.au (Postfix) with ESMTP id 67A652826DF
for ; Thu, 15 Jun 2006 09:08:14 +1000 (EST)
Received: from explain.com.au ([127.0.0.1])
by localhost (waycool.explain.com.au [127.0.0.1]) (amavisd-new,
port 10024) with ESMTP id 28295-07 for ;
Thu, 15 Jun 2006 09:08:14 +1000 (EST)
Received: from [192.168.0.102] (unknown [192.168.0.102])
by explain.com.au (Postfix) with ESMTP id F29802826D4
for ; Thu, 15 Jun 2006 09:08:13 +1000 (EST)
Mime-Version: 1.0 (Apple Message framework v750)
In-Reply-To: <20060614141031.72330.qmail@web30402.mail.mud.yahoo.com>
References: <20060614141031.72330.qmail@web30402.mail.mud.yahoo.com>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id:
Content-Transfer-Encoding: 7bit
From: Steve Ball
Date: Thu, 15 Jun 2006 09:08:29 +1000
To: The Gnome XSLT library mailing-list
X-Mailer: Apple Mail (2.750)
X-Virus-Scanned: by amavisd-new at gnome.org
X-Spam-Status: No, score=-2.084 tagged_above=-999 required=2 tests=[AWL=0.361,
BAYES_00=-2.599, TW_BX=0.077, TW_IB=0.077]
X-Spam-Score: -2.084
X-Spam-Level:
Subject: Re: [xslt] needed:set xslt variable in program
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: Wed, 14 Jun 2006 23:09:02 -0000
Hi Tom,
Why not simply pass in the value as a stylesheet parameter? libxslt
certainly has functions/data structures to pass parameters; RTFM.
HTHs,
Steve Ball
On 15/06/2006, at 12:10 AM, Tom Stanley wrote:
> hello, guys
> we plan to use libxml and libxslt in our projects.
> what we need are like snippet belows:
>
>
>
>
> select=""Data""/>
>
>
>
>
>
> select="string($var/Report/Data[1])"/>
>
>
>
>
> We want to use something like xslt template to
> produce some xml tree as process's input.
> We can change this xml snippet to a xslt template and
> use applystylesheet to produce expected output xml
> tree.
> However, we need to set a variable (named var ) in
> program before apply the translation.
> Does libxslt have any method to do this ,for example
> like xmlXPathRegisterVariable in libxml?
>
> or any other thoughts?
>
> thx
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> xslt@gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt
>
From stdanley@yahoo.com Wed Jun 14 21:56:14 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id 1BD423B0101
for ; Wed, 14 Jun 2006 21:56:14 -0400 (EDT)
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 04367-10 for ;
Wed, 14 Jun 2006 21:56:13 -0400 (EDT)
Received: from web30408.mail.mud.yahoo.com (web30408.mail.mud.yahoo.com
[68.142.200.111])
by menubar.gnome.org (Postfix) with SMTP id EA52A3B00A0
for ; Wed, 14 Jun 2006 21:56:12 -0400 (EDT)
Received: (qmail 22202 invoked by uid 60001); 15 Jun 2006 01:56:08 -0000
Message-ID: <20060615015608.22200.qmail@web30408.mail.mud.yahoo.com>
Received: from [221.200.205.41] by web30408.mail.mud.yahoo.com via HTTP;
Wed, 14 Jun 2006 18:56:08 PDT
Date: Wed, 14 Jun 2006 18:56:08 -0700 (PDT)
From: Tom Stanley
To: The Gnome XSLT library mailing-list
In-Reply-To:
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: by amavisd-new at gnome.org
X-Spam-Status: No, score=-1.371 tagged_above=-999 required=2
tests=[AWL=-0.573, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2,
DNS_FROM_RFC_WHOIS=1.447, TW_BX=0.077, TW_IB=0.077]
X-Spam-Score: -1.371
X-Spam-Level:
Subject: Re: [xslt] needed:set xslt variable in program
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: Thu, 15 Jun 2006 01:56:14 -0000
can we set an xmlNodePtr in memory as a parameter?
--- Steve Ball wrote:
> Hi Tom,
>
> Why not simply pass in the value as a stylesheet
> parameter? libxslt
> certainly has functions/data structures to pass
> parameters; RTFM.
>
> HTHs,
> Steve Ball
>
> On 15/06/2006, at 12:10 AM, Tom Stanley wrote:
>
> > hello, guys
> > we plan to use libxml and libxslt in our
> projects.
> > what we need are like snippet belows:
> >
> >
> >
> >
> > > select=""Data""/>
> >
> >
> > select="0"/>
> >
> >
> > > select="string($var/Report/Data[1])"/>
> >
> >
> >
> >
> > We want to use something like xslt template to
> > produce some xml tree as process's input.
> > We can change this xml snippet to a xslt template
> and
> > use applystylesheet to produce expected output xml
> > tree.
> > However, we need to set a variable (named var ) in
> > program before apply the translation.
> > Does libxslt have any method to do this ,for
> example
> > like xmlXPathRegisterVariable in libxml?
> >
> > or any other thoughts?
> >
> > thx
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > xslt mailing list, project page
> http://xmlsoft.org/XSLT/
> > xslt@gnome.org
> > http://mail.gnome.org/mailman/listinfo/xslt
> >
>
> _______________________________________________
> xslt mailing list, project page
> http://xmlsoft.org/XSLT/
> xslt@gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
From stdanley@yahoo.com Wed Jun 14 22:09:48 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id 33E083B0253
for ; Wed, 14 Jun 2006 22:09:48 -0400 (EDT)
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 05250-07 for ;
Wed, 14 Jun 2006 22:09:46 -0400 (EDT)
Received: from web30409.mail.mud.yahoo.com (web30409.mail.mud.yahoo.com
[68.142.200.112])
by menubar.gnome.org (Postfix) with SMTP id 2C9513B00F3
for ; Wed, 14 Jun 2006 22:09:46 -0400 (EDT)
Received: (qmail 80930 invoked by uid 60001); 15 Jun 2006 02:09:10 -0000
Message-ID: <20060615020910.80928.qmail@web30409.mail.mud.yahoo.com>
Received: from [221.200.205.41] by web30409.mail.mud.yahoo.com via HTTP;
Wed, 14 Jun 2006 19:09:10 PDT
Date: Wed, 14 Jun 2006 19:09:10 -0700 (PDT)
From: Tom Stanley
To: The Gnome XSLT library mailing-list
In-Reply-To:
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: by amavisd-new at gnome.org
X-Spam-Status: No, score=-1.514 tagged_above=-999 required=2
tests=[AWL=-0.562, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2,
DNS_FROM_RFC_WHOIS=1.447]
X-Spam-Score: -1.514
X-Spam-Level:
Subject: Re: [xslt] needed:set xslt variable in program
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: Thu, 15 Jun 2006 02:09:48 -0000
hi,Kasimier
--- "Buchcik, Kasimier"
wrote:
> The common solution for this would be to use the
> document() function:
>
>
>
> select="document('my-report.xml')/Report/Data[1]"/>
>
>
>
this thoughts is good,the only limit is we don't like
to load file from disk,but from an existed xmlNodePtr
from memory
> If you need a more sophisticated mechanism, then you
> could implement
> an extension element/function. Have a look at how
> e.g. the
> EXSLT function node-set() is implemented in
> Libxslt/Libexslt:
> The XPath engine calls exsltNodeSetFunction() (in
> "libexslt/common.c"),
> then xsltFunctionNodeSet() (in "libxslt/extra.c") is
> called, which
> changes a result tree fragment into a node set.
>
> In such an extension function, you could just
> hand-over a copy of an
> internal node tree managed by your application.
>
> select="mf:my-func('my-var-name')/Report/Data[1]"/>
>
we would do some test using this method.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
From veillard@redhat.com Thu Jun 15 04:00:31 2006
Return-Path:
X-Original-To: xslt@gnome.org
Delivered-To: xslt@gnome.org
Received: from localhost (unknown [127.0.0.1])
by menubar.gnome.org (Postfix) with ESMTP id 407DE3B01A0
for ; Thu, 15 Jun 2006 04:00:31 -0400 (EDT)
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 20955-06 for ;
Thu, 15 Jun 2006 04:00:29 -0400 (EDT)
Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31])
by menubar.gnome.org (Postfix) with ESMTP id D91343B02AE
for ; Thu, 15 Jun 2006 04:00:28 -0400 (EDT)
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
k5F80SQj025987 for ; Thu, 15 Jun 2006 04:00:28 -0400
Received: from devserv.devel.redhat.com (devserv.devel.redhat.com
[172.16.58.1])
by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id
k5F80PxZ013127 for ; Thu, 15 Jun 2006 04:00:28 -0400
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
k5F80PEY007824 for ; Thu, 15 Jun 2006 04:00:25 -0400
Received: (from veillard@localhost)
by devserv.devel.redhat.com (8.12.11.20060308/8.12.11/Submit) id
k5F80P3N007822 for xslt@gnome.org; Thu, 15 Jun 2006 04:00:25 -0400
Date: Thu, 15 Jun 2006 04:00:25 -0400
From: Daniel Veillard
To: The Gnome XSLT library mailing-list
Message-ID: <20060615080025.GI6722@redhat.com>
References:
<20060615015608.22200.qmail@web30408.mail.mud.yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20060615015608.22200.qmail@web30408.mail.mud.yahoo.com>
User-Agent: Mutt/1.4.1i
X-Virus-Scanned: by amavisd-new at gnome.org
X-Spam-Status: No, score=-2.367 tagged_above=-999 required=2 tests=[AWL=0.003,
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.367
X-Spam-Level:
Subject: Re: [xslt] needed:set xslt variable in program
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: ,