From stan at stormier.net Tue Dec 7 09:47:41 2004 From: stan at stormier.net (Stanislas Ormieres) Date: Tue Dec 7 09:46:44 2004 Subject: [Mod_transform] meta tag created but not wanted, and not ended Message-ID: <1102430861.41108.13.camel@laruiss.org> Hello, I am quite new to mod_transform, and I don't know why it creates a meta tag in the (), especially a withtout /> at the end which make it impossible to parse with mozilla and firefox. movie.xml : The Matrix 136 Sci-Fi and Fantasy Keanu Reeves Laurence Fishburne Carrie Ann Moss 1999 Wachowski Brothers DVD movie.xsl : Movie Catalog Transformed

My Movie Catalog


-- Stanislas Ormi?res 16 rue Pierre Nicole 75005 Paris 01 43 26 88 78 06 82 06 29 91 08 71 72 64 24 From chip at force-elite.com Tue Dec 7 10:14:42 2004 From: chip at force-elite.com (Paul Querna) Date: Tue Dec 7 10:14:44 2004 Subject: [Mod_transform] meta tag created but not wanted, and not ended In-Reply-To: <1102430861.41108.13.camel@laruiss.org> References: <1102430861.41108.13.camel@laruiss.org> Message-ID: <41B5C8E2.9060204@force-elite.com> Stanislas Ormieres wrote: > Hello, I am quite new to mod_transform, and I don't know why it creates > a meta tag in the ( content="text/html; charset=UTF-8">), especially a withtout /> at > the end which make it impossible to parse with mozilla and firefox. > It generates it without the trailing / because libxslt thinks it is in HTML mode. [snip] > movie.xsl : > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> Adding the following should 'fix' it: > > > > Movie Catalog Transformed > > >

My Movie Catalog

>
> >

>
> > >
>
Thanks for using mod_transform :) -Paul From stan at stormier.net Tue Dec 7 10:45:54 2004 From: stan at stormier.net (Stanislas Ormieres) Date: Tue Dec 7 10:44:57 2004 Subject: [Mod_transform] meta tag created but not wanted, and not ended In-Reply-To: <41B5C8E2.9060204@force-elite.com> References: <1102430861.41108.13.camel@laruiss.org> <41B5C8E2.9060204@force-elite.com> Message-ID: <1102434354.41108.24.camel@laruiss.org> Thank you for your quick answer, now it is better... but (I am sorry for this 'but') I get this message from mozilla and firefox : This XML file does not appear to have any style information associated with it. The document tree is shown below. - - Movie Catalog Transformed -

My Movie Catalog


The Matrix

:/ Le Mardi 07 d?cembre 2004 ? 08:14 -0700, Paul Querna a ?crit : > Stanislas Ormieres wrote: > > Hello, I am quite new to mod_transform, and I don't know why it creates > > a meta tag in the ( > content="text/html; charset=UTF-8">), especially a withtout /> at > > the end which make it impossible to parse with mozilla and firefox. > > > > It generates it without the trailing / because libxslt thinks it is in > HTML mode. > > [snip] > > movie.xsl : > > > > > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > Adding the following should 'fix' it: > method="xml" > version = "1.0" > encoding="UTF-8" > omit-xml-declaration="no" > indent="yes" > doctype-public="-//W3C//DTD XHTML 1.1//EN" > doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" > /> > > > > > > > > Movie Catalog Transformed > > > > > >

My Movie Catalog

> >
> > > >

> >
> > > > > >
> >
> > Thanks for using mod_transform :) > > -Paul Actually I have even made a FreeBSD port for it :D But I don't know if it will be committed... -- Stanislas Ormi?res 16 rue Pierre Nicole 75005 Paris 01 43 26 88 78 06 82 06 29 91 08 71 72 64 24 From urkle at outoforder.cc Tue Dec 7 18:57:51 2004 From: urkle at outoforder.cc (Edward Rudd) Date: Tue Dec 7 18:58:58 2004 Subject: [Mod_transform] meta tag created but not wanted, and not ended In-Reply-To: <1102434354.41108.24.camel@laruiss.org> References: <1102430861.41108.13.camel@laruiss.org> <41B5C8E2.9060204@force-elite.com> <1102434354.41108.24.camel@laruiss.org> Message-ID: <1102463870.18002.8.camel@urkle.omega.home> On Tue, 2004-12-07 at 10:45, Stanislas Ormieres wrote: > Thank you for your quick answer, now it is better... but (I am sorry for > this 'but') I get this message from mozilla and firefox : > [snip] > > Adding the following should 'fix' it: > > > method="xml" > > version = "1.0" > > encoding="UTF-8" > > omit-xml-declaration="no" > > indent="yes" > > doctype-public="-//W3C//DTD XHTML 1.1//EN" > > doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" > > /> Add an attribute of media-type="text/html" to the xsl:output tag. *side note* the media-type SHOULD be application/xhtml+xml, however Microsoft IE does not accept that mime type as it should. Only Mozilla/firefox, opera, and safari correctly accept that mime-type. The solution that outoforder.cc is using is not specifying the media-type parameter, and using mod_xhtml_neg with the following configuration AddType text/html .xml XhtmlNegActive On XhtmlNegTypes .xml application/xhtml+xml;charset=UTF-8 text/html;q=0.7 XhtmlNegStarsIgnore 2 -- Edward Rudd Website http://www.outoforder.cc/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.outoforder.cc/pipermail/mod_transform/attachments/20041207/914ca077/attachment.bin