Re: Transformation xml->xsl->xhtml

"Yann LE ROUX" <[email protected]>
Newsgroups gmane.text.xml.french.tech
Message-ID <00fe01c6ec75$02e66460$2a00790a@Yann>
J'ai rajouter cet attribut. En sortie disparait <?xml version="1.0"
encoding="ISO-8859-1"?> mais pas le doctype !!!
----- Original Message -----
From: "Eric van der Vlist" <[email protected]>
To: <[email protected]>
Sent: Tuesday, October 10, 2006 4:03 PM
Subject: [xml-tech] Re: Transformation xml->xsl->xhtml


> Le mardi 10 octobre 2006 à 15:51 +0200, Yann LE ROUX a écrit :
> > Bonjour,
> > Je publie le contenu de mes pages avec une transformation xml-> xsl.
> > En sortie je veux avoir ma page au format xhtml.
> > Cette transformation (ce contenu) va être imbriqué dans un template
> > Smarty (template php). En entête de mon template smarty j'ai mon
> > doctype :
> >
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> >
> > Quand je valide ma page avec le validator w3c, on me dit que ma page
> > est incorrect car au mileu de cette page (contenu de ma brève réalisé
> > à partir d'une transformation xml->xsl) , est présent cette ligne :
> >
> > <?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE script PUBLIC
> > "-//W3C//DTD XHTML 1.0 Transitional//EN" "%20%
> > 20http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> >
> > Pour que mon document soit validé il faudrait que cette ligne
> > disparaisse dans ma sortie, tout en ayant du xhtml en sortie ?
> > Quelqu'un aurait une idée ?
> Dans votre transformation XSLT, il faut lui dire de ne pas insérer la
> déclaration ni les doctypes :
>
> <xsl:output method="xml"  omit-xml-declaration="yes"/>
>
> Cordialement,
>
> Eric van der Vlist
>
> --
> GPG-PGP: 2A528005
> Carnet web :
>            http://eric.van-der-vlist.com/blog?t=category&a=Fran%C3%A7ais
> ------------------------------------------------------------------------
> Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
> (ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
> (W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
> ------------------------------------------------------------------------
>
>
> -- Attached file included as plaintext by Ecartis --
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (GNU/Linux)
>
> iD8DBQBFK6g+Dvn+ZCpSgAURAozcAJ9z6HIr5X5fn/+iMf3WvZYHwOfubQCghjof
> +AoOU9dJ4pP0u06ZUreMEBw=
> =9wzv
> -----END PGP SIGNATURE-----
>
>
> --
> Devenez redacteur <XML>fr et contribuez au developpement du
> xml francophone (http://xmlfr.org/infos/redacteurs/) !
>
> Liste de diffusion "[email protected]" (http://xmlfr.org).
>
> Cette liste est a votre disposition pour discuter en francais de
> tout sujet technique lie a XML.
>
> Pour resilier votre abonnement, envoyez un message contenant
> la commande "unsubscribe" a [email protected]
> (mailto:[email protected]?Subject=unsubscribe)
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.