🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: conversion xhtml vers xbel par xslt

#434
From: Une Bév ue
Date: Mon, 19 Mar 2007 09:05
50 lines
2795 bytes
Pierrick Brihaye <pierrick.brihaye@free.fr> wrote:

> > 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

merci, c'est bien ce que je pensais, je me suis fait avoir par un
comportement par d�faut.

donc au lieu de :
<xsl:template match="/h:html/h:body">

si je commence par :

<xsl:template match="*|/">
  <xsl:apply-templates select="/h:html/h:body"/>
[...]
  <xsl:template match="h:html/h:body">

l�, j'�limine bien tout ce qu'il y a entre html et body (le head +
title)

> 
> > 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*.

oui, ok pour toto � lla place de h, j'aurais du choisir xhtml
d'ailleurs, plus explicite, amha.

bon � la m�me page, je trouve :

<xsl:namespace-alias stylesheet-prefix="h" result-prefix=""/>


est suffisant ?

bon, je fais l'essai.
Technical Details
Message-ID: <1hv7v3v.vvyjv01ari8kuN%unbewusst.sein@wortanschahung.com.invalid>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.germany.com!news.motzarella.org!talisker.lacave.net!lacave.net!unbewusst.sein
References: <1hv6us5.1vhzc9cxeqxqN%unbewusst.sein@wortanschahung.com.invalid> <45fdaa9b$0$31205$426a34cc@news.free.fr> <1hv7ha9.cpanui1g6ear2N%unbewusst.sein@wortanschahung.com.invalid> <45fe3240$0$27176$426a74cc@news.free.fr>

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!news2.google.com!news.germany.com!news.motzarella.org!talisker.lacave.net!lacave.net!unbewusst.sein
From: unbewusst.sein@wortanschahung.com.invalid (Une Bévue)
Newsgroups: fr.comp.text.xml
Subject: Re: conversion xhtml vers xbel par xslt
Date: Mon, 19 Mar 2007 10:05:16 +0100
Organization: Service de news de lacave.net
Lines: 50
Message-ID: <1hv7v3v.vvyjv01ari8kuN%unbewusst.sein@wortanschahung.com.invalid>
References: <1hv6us5.1vhzc9cxeqxqN%unbewusst.sein@wortanschahung.com.invalid> <45fdaa9b$0$31205$426a34cc@news.free.fr> <1hv7ha9.cpanui1g6ear2N%unbewusst.sein@wortanschahung.com.invalid> <45fe3240$0$27176$426a74cc@news.free.fr>
NNTP-Posting-Host: nor75-8-81-57-96-20.fbx.proxad.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: talisker.lacave.net 1174295116 91114 81.57.96.20 (19 Mar 2007 09:05:16 GMT)
X-Complaints-To: abuse@lacave.net
NNTP-Posting-Date: Mon, 19 Mar 2007 09:05:16 +0000 (UTC)
User-Agent: MacSOUP/F-2.8 (Mac OS X version 10.4.9 (PPC))