🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: conversion xhtml vers xbel par xslt

#433
From: Pierrick Brihaye
Date: Mon, 19 Mar 2007 06:48
32 lines
2500 bytes
Une B�vue a �crit :

>> Si l'entr�e contient du texte et que la XSL copie les noeuds texte - ce
>> qui est le comportement par d�faut -, c'est normal.
> 
> si j'ai bien compris ma feuille xsl  recopie effectivement le texte
> compris dans la balise title (donc avant le body) alors que celle-ci ne
> s'int�resse qu'� ce qu'il y a dans body :
> <xsl:template match="/h:html/h:body">
>     <xbel version="0.3">
> 
> la question est donc comment �viter ce comportement par d�faut.

Comprendre ce que font les mod�les implicites est une bonne base de d�part :
http://www.w3.org/TR/xslt#built-in-rule

> ben pour transformer mon document xhtml en xbel (xml) quelqu'un m'avait
> conseill� ici d'ajouter cette d�claration dans la feuille :
> 
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>      xmlns:h="http://www.w3.org/1999/xhtml">
> ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--------
> 
> cette d�claration est (serait) inutile voie nuisible ?

Non, elle est totalement indispensable (mais bon, on peut avoir "toto" � 
la place de "h" si l'on veut) afin de traiter le document transform� qui 
est dans ce namespace. Je parlais bien de l'exclusion de ce pr�fixe dans 
le *r�sultat*.

p.b.
Technical Details
Message-ID: <45fe3240$0$27176$426a74cc@news.free.fr>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed.icl.net!proxad.net!cleanfeed2-a.proxad.net!nnrp12-2.free.fr!not-for-mail
References: <1hv6us5.1vhzc9cxeqxqN%unbewusst.sein@wortanschahung.com.invalid> <45fdaa9b$0$31205$426a34cc@news.free.fr> <1hv7ha9.cpanui1g6ear2N%unbewusst.sein@wortanschahung.com.invalid>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114f60,3d46bf013526a284
X-Google-Attributes: gid114f60,public
X-Google-Language: FRENCH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed.icl.net!proxad.net!cleanfeed2-a.proxad.net!nnrp12-2.free.fr!not-for-mail
Date: Mon, 19 Mar 2007 07:48:32 +0100
From: Pierrick Brihaye <pierrick.brihaye@free.fr>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
Newsgroups: fr.comp.text.xml
Subject: Re: conversion xhtml vers xbel par xslt
References: <1hv6us5.1vhzc9cxeqxqN%unbewusst.sein@wortanschahung.com.invalid> <45fdaa9b$0$31205$426a34cc@news.free.fr> <1hv7ha9.cpanui1g6ear2N%unbewusst.sein@wortanschahung.com.invalid>
In-Reply-To: <1hv7ha9.cpanui1g6ear2N%unbewusst.sein@wortanschahung.com.invalid>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 35
Message-ID: <45fe3240$0$27176$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 19 Mar 2007 07:48:33 MET
NNTP-Posting-Host: 82.236.174.106
X-Trace: 1174286913 news-3.free.fr 27176 82.236.174.106:1046
X-Complaints-To: abuse@proxad.net