Article View: fr.comp.text.xml
Article #10501Re: [XSL] document('')
From: Tom
Date: Sun, 29 Oct 2000 04:19
Date: Sun, 29 Oct 2000 04:19
23 lines
1837 bytes
1837 bytes
In article <8tfiq9$qhn$1@front1m.grolier.fr>, "Sydney"
<sydney@i-france.com> wrote:
> Dans ma feuille de style XSL, j'ai le code suivant.
>
> ...
> <xsl:param name="session"/>
> ...
> <xsl:variable name="doc"><xsl:value-of
> select="document('answer{$session}.xml')"/></xsl:variable>
> <!-- Le but est que le document answerxxxx.xml soit accessible o� xxxx
> est
> un parametre de la feuille de style XSL. Mais les ' empechent
> l'interpretation des variables $session reste $session-->
>
> Est-ce que vous avez une idee?
Ce n'est pas d� aux apostrophes mais au contexte : on est dans un
�l�ment XSLT, les {...} ne sont pas "interpr�t�es".
cf. XSLT 1.0 Recommandation, section 7.6.2 Attribute Value Templates.
Les {} ne sont �valu�es que dans le cas o� l'attribut est �quivalent �
un <xsl:attribute/> (en gros).
select="document(concat('answer', $session, '.xml'))"
Technical Details
Message-ID:
<ek4gt8.ivn.ln@127.0.0.1>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-01!sn-xit-uk!supernews.com!194.42.224.136.MISMATCH!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!small.fr.clara.net!proxad.net!feeder2.proxad.net!nnrp6.proxad.net.POSTED!debian!ptittomReferences:
<8tfiq9$qhn$1@front1m.grolier.fr>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,66879890a1fee085
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2000-10-28 21:19:56 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-01!sn-xit-uk!supernews.com!194.42.224.136.MISMATCH!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!small.fr.clara.net!proxad.net!feeder2.proxad.net!nnrp6.proxad.net.POSTED!debian!ptittom
From: "Tom" <ptittom@free.fr>
Subject: Re: [XSL] document('')
Newsgroups: fr.comp.text.xml
References: <8tfiq9$qhn$1@front1m.grolier.fr>
User-Agent: Pan/0.9.1 (Unix)
X-No-Productlinks: Yes
Message-ID: <ek4gt8.ivn.ln@127.0.0.1>
Lines: 23
Date: Sun, 29 Oct 2000 04:19:54 GMT
NNTP-Posting-Host: 213.228.43.243
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp6.proxad.net 972793194 213.228.43.243 (Sun, 29 Oct 2000 05:19:54 CET)
NNTP-Posting-Date: Sun, 29 Oct 2000 05:19:54 CET
Organization: Guest of ProXad - France