Login 
 
 Pref   Your subscriptions   Home   Help 
users@ml.mod-xslt2.com
mod-xslt2 - Users Mailing List
   
 
List info
 
 
 
Subscribe
 
 
Unsubscribe
 
 
Archive
 
 
Post
 



Advanced search
2004 01 02 03 04 05 06 07 08 09 10 11 12
2005 01 02 03 04 05 06 07 08 09 10 11 12
2006 01 02 03 04 05 06 07 08 09 10 11 12
2007 01 02 03 04 05 06 07 08 09 10 11 12
2008 01 02 03 04 05 06 07 08 09 10 11 12
2010 01 02 03 04 05 06 07 08 09 10 11 12
2011 01 02 03 04 05 06 07 08 09 10 11 12

  previous   Chronological   next       previous   Thread   next  

Re: [mod-xslt users] xml - xslt -> html, no xhtml? Carlo Contavalli
  • From: Carlo Contavalli <ccontavalli@xxxxxxxxxxx>
  • To: users@xxxxxxxxxxxxxxxx
  • Subject: Re: [mod-xslt users] xml - xslt -> html, no xhtml?
  • Date: Thu, 14 Apr 2005 11:13:54 +0200
  • References: <sympa.1113469342.4219.123@ml.mod-xslt2.com>


  • On Thu, Apr 14, 2005 at 11:05:16AM +0200, ggerard@xxxxxxxxxxx wrote:
    > I have my xml and xsl pages in correct xml, and i was expecting to obtain
    > after the xslt correct html, this is xhtml, but instead of it i am getting
    > not closed tags, etc etc.
    > For example, if in xsl i have <br />, in html output i get <br>.
    >
    > Is there any option to manage it? Is something i am doing wrong? Or
    > mod_xslt is supposed to work as it?
    uhm .. courious :) well... xhtml should be valid xml. So, I'd
    try two things:
    1 - putting the correct doctype in the .xsl file (if you
    haven't already done so)
    2 - changing the ``html'' in xml, but telling .xsl to omit
    the xml declaration

    By default, in my documents, I have something like:

    <xsl:output method="html"
    omit-xml-declaration="yes"
    encoding="ISO-8859-1"
    indent="yes"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />

    Try changing the method, and the doctype-public, as indicated
    above..

    Hope it helps,
    Cheers,
    Carlo

    --
    GPG Fingerprint: 2383 7B14 4D08 53A4 2C1A CA29 9E98 5431 1A68 6975
    -------------
    The only thing cheaper than hardware is talk.

      Powered by Sympa