Article View: fr.comp.text.xml
Article #8643substring-after et apply template
From: cib
Date: Sun, 09 Sep 2001 21:23
Date: Sun, 09 Sep 2001 21:23
30 lines
1848 bytes
1848 bytes
Salut, Je veux ins�rer des donn�es dans un paragraphe, et j'utilise donc substring-before et substring-after pour cela. Le probl�me c'est qu'alors aucun template ne peut �tre appliqu� au paragraphe reconstruit. Si je m'y prend mal pour ins�rer des donn�es dans un paragraphe, dites-le moi. Voici mon template. <xsl:template match="div[@id='1']"> <xsl:value-of select="substring-before(., 'num�ro')"/> <font color='#006600'>note une</font> num�ro<xsl:value-of select="substring-after(., 'num�ro')"/> </xsl:template> et mon fichier xml <div id="1"> ceci est le <titre>Salut monde</titre> num�ro 2025 et des bricoles. </div> Comment faire pour que le template "title" soit appliqu�? Merci de vos r�ponses. Cib Bordeaux, xml et gay pride.
Technical Details
Message-ID:
<9ngmla$j9t$1@wanadoo.fr>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!dispose.news.demon.net!demon!colt.net!fr.colt.net!fr.clara.net!heighliner.fr.clara.net!teaser.fr!wanadoo.fr!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,120283f60e0380db,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-09-09 14:23:54 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!dispose.news.demon.net!demon!colt.net!fr.colt.net!fr.clara.net!heighliner.fr.clara.net!teaser.fr!wanadoo.fr!not-for-mail From: "cib" <cibci1@caramail.com> Newsgroups: fr.comp.text.xml Subject: substring-after et apply template Date: Sun, 9 Sep 2001 23:23:11 +0200 Organization: Wanadoo, l'internet avec France Telecom Lines: 32 Message-ID: <9ngmla$j9t$1@wanadoo.fr> NNTP-Posting-Host: ca-ol-bordeaux-8-144.abo.wanadoo.fr X-Trace: wanadoo.fr 1000070634 19773 62.161.111.144 (9 Sep 2001 21:23:54 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 9 Sep 2001 21:23:54 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400