Article View: fr.comp.text.xml
Article #8680Re: Auriez-vous une idée ?
From: Thomas Broyer
Date: Thu, 30 Aug 2001 10:28
Date: Thu, 30 Aug 2001 10:28
31 lines
2092 bytes
2092 bytes
In <wy3d6a2dyt.fsf@polya.u-strasbg.fr>, Alain Ketterlin wrote:
> <xsl:template match="term">
> <xsl:variable name="d" select="version[lang($dst)]"/>
> <xsl:variable name="a" select="version[lang('x-all')]"/>
<xsl:variable name="trad" select="version[lang($dst) or lang('x-all')]"/>
> <!-- Tom a raison, bien sur -->
Bof, je fais que rammasser les miettes... ;o)
> <xsl:choose>
> <xsl:when test="$d">
> <xsl:value-of select="$d"/>
> </xsl:when>
> <xsl:when test="$a">
> <xsl:value-of select="$a"/>
> </xsl:when>
Du coup :
<xsl:when test="$trad">
<xsl:value-of select="$trad"/>
</xsl:when>
Au passage, je crois que j'irai un pas plus loin en mettant la phrase
compl�te (avec arborescence) dans le dico et un unique <term> dans la
feuille de style :
<p><term id="from_dessert1"/></p>
Tom.
Technical Details
Message-ID:
<2272612.VoOGUtdWV9@ltgt.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2-1.proxad.net!nnrp3.proxad.net.POSTED!not-for-mailReferences:
<ve2j7.37$Xc.39976@nnrp6.proxad.net> <903j7.3$a%.145549@nnrp6.proxad.net> <wywv3n0zgs.fsf@polya.u-strasbg.fr> <3o7j7.596$hQ1.252999@nnrp1.proxad.net> <wy3d6a2dyt.fsf@polya.u-strasbg.fr>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,716861d7494f1dd8 X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-08-30 03:28:51 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2-1.proxad.net!nnrp3.proxad.net.POSTED!not-for-mail Message-ID: <2272612.VoOGUtdWV9@ltgt.net> From: Thomas Broyer <ptittom+news@free.fr> Subject: Re: Auriez-vous une idée ? Newsgroups: fr.comp.text.xml Mail-Copies-To: nobody References: <ve2j7.37$Xc.39976@nnrp6.proxad.net> <903j7.3$a%.145549@nnrp6.proxad.net> <wywv3n0zgs.fsf@polya.u-strasbg.fr> <3o7j7.596$hQ1.252999@nnrp1.proxad.net> <wy3d6a2dyt.fsf@polya.u-strasbg.fr> Lines: 31 Organization: </> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Date: Thu, 30 Aug 2001 10:28:50 GMT NNTP-Posting-Host: 193.251.185.64 X-Complaints-To: abuse@proxad.net X-Trace: nnrp3.proxad.net 999167330 193.251.185.64 (Thu, 30 Aug 2001 12:28:50 CEST) NNTP-Posting-Date: Thu, 30 Aug 2001 12:28:50 CEST