🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #9123

Re: XSLT-Valeur maximum

#9123
From: Fr�d�ric Brunt
Date: Fri, 01 Jun 2001 09:16
55 lines
2986 bytes
"Thomas Broyer" <ptittom+news@free.fr> a �crit dans le message news:
2637104.LvFx2qVVIh@ltgt.net...
> In <D6uR6.2813$kO5.4640837@nnrp1.proxad.net>, Fr�d�ric Bruneteau wrote:
>
> > Voici mon fichier XML:
> >
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> > <table>
> >    <line date="11/2000" download="10"/>
> >    <line date="12/2000" download="50"/>
> >    <line date="01/2001" download="30"/>
> >    <line date="02/2001" download="100"/>
> >    <line date="03/2001" download="25"/>
> >    <line date="04/2001" download="5"/>
> > </table>
> >
> > Je d�sire tracer un graphe avec des barres (format SVG)
> > et je veux r�cup�rer dans ma feuille XSL
> > la valeur maximum de l'attribut download
> > pour adapter l'�chelle de mon graphe.
> > Vous avez une id�e ???
>
> Va voir EXSLT <http://exslt.org>
> Il existe une impl�mentation de �math:max� en template XSLT
> <http://exslt.org/math/functions/max/math.max.template.xsl>
>
> Tom.

Merci pour ces infos tr�s int�ressantes.

Ces templates (max, min) m'oblige � utiliser un des 2 processeurs XSLT:
Fourthought Inc. (version 0.11.1) ou SAXON 6.3 from Michael Kay (version
6.3)
alors que j'utilise Xalan qui me sort bien s�r une erreur pour le Use Case
1:

$java org.apache.xalan.xslt.Process -IN math.max.data.1.xml -XSL
math.max.1.xsl -OUT math.max.result.1.xml
========= Parsing file:C:/jbproject/svgtojpeg/src/math.max.1.xsl ==========
Parse of file:C:/jbproject/svgtojpeg/src/math.max.1.xsl took 940
milliseconds
========= Parsing file:C:/jbproject/svgtojpeg/src/math.max.data.1.xml
==========
Parse of file:C:/jbproject/svgtojpeg/src/math.max.data.1.xml took 50
milliseconds
=============================
Transforming...
Error! com/ibm/bsf/BSFManager
Xalan: was not successful.
XSLProcessor: done

Je vais chercher d'autres solutions (appel d'une fonction java, plusieurs
feuilles de styles...).

Merci.
Technical Details
Message-ID: <W3JR6.3108$PG1.5067910@nnrp5.proxad.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!freenix!gandi!gandi.net!proxad.net!feeder2-1.proxad.net!nnrp5.proxad.net.POSTED!not-for-mail
References: <D6uR6.2813$kO5.4640837@nnrp1.proxad.net> <2637104.LvFx2qVVIh@ltgt.net>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,52278ddd9a84291d
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-06-01 02:16:38 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!freenix!gandi!gandi.net!proxad.net!feeder2-1.proxad.net!nnrp5.proxad.net.POSTED!not-for-mail
From: "Fr�d�ric Brunt" <fredericb@in-fusio.com>
Newsgroups: fr.comp.text.xml
References: <D6uR6.2813$kO5.4640837@nnrp1.proxad.net> <2637104.LvFx2qVVIh@ltgt.net>
Subject: Re: XSLT-Valeur maximum
Lines: 58
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <W3JR6.3108$PG1.5067910@nnrp5.proxad.net>
Date: Fri, 01 Jun 2001 09:16:38 GMT
NNTP-Posting-Host: 213.11.10.91
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp5.proxad.net 991386998 213.11.10.91 (Fri, 01 Jun 2001 11:16:38 CEST)
NNTP-Posting-Date: Fri, 01 Jun 2001 11:16:38 CEST
Organization: Guest of ProXad - France