Article View: fr.comp.text.xml
Article #228XSL processing nodes
From: Mickaël Wolff
Date: Mon, 06 Jul 2009 09:04
Date: Mon, 06 Jul 2009 09:04
30 lines
1957 bytes
1957 bytes
Bonjour,
J'ai un fichier XHTML2 que je souhaite transformer en un équivelent
HTML4 ou XHTML1.1. Dans le fichier d'origine, j'ai une instruction de
traitement XML xml-stylesheet. Je souhaiterais exploiter cette
instruction de traitement XML pour créer un l'élément link dans le
document (X)HTML.
Le problème est que les processing instructions ne sont pas traitées
comme des éléments. C'est logique, mais du coup, les « attributs » ne
sont parsés. Le contenu du nœud est considéré comme du texte.
La conséquence est que je ne peux pas intégrer le contenu à un
élément link.
<xsl:template match='processing-instruction()'>
<link><!-- comment intègre-t-on la valeur ? --></link>
<!-- ceci affiche la liste des « attributs » -->
<xsl:value-of select='.' />
</xsl:template>
Avez-vous une solution ?
Merci !
--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org
Seeking for a position <http://lupusmic.org/pro/>
Technical Details
Message-ID:
<4a51be0f$0$287$426a74cc@news.free.fr>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!cleanfeed2-a.proxad.net!nnrp7-1.free.fr!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 8a75585569,503f59ded6a67092,start X-Google-Attributes: gid8a75585569,public,usenet X-Google-NewGroupId: yes X-Google-Language: FRENCH,UTF8 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!cleanfeed2-a.proxad.net!nnrp7-1.free.fr!not-for-mail Date: Mon, 06 Jul 2009 11:04:27 +0200 From: Mickaël Wolff <mickael.wolff@laposte.net> Reply-To: mickael.wolff@laposte.net User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 Newsgroups: fr.comp.text.xml Subject: XSL processing nodes Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 30 Message-ID: <4a51be0f$0$287$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 06 Jul 2009 11:04:15 MEST NNTP-Posting-Host: 78.233.168.158 X-Trace: 1246871055 news-2.free.fr 287 78.233.168.158:40881 X-Complaints-To: abuse@proxad.net