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] XHTML output problems Carlo Contavalli
  • From: Carlo Contavalli <ccontavalli@xxxxxxxxxxx>
  • To: users@xxxxxxxxxxxxxxxx
  • Subject: Re: [mod-xslt users] XHTML output problems
  • Date: Fri, 3 Sep 2004 11:08:01 +0200
  • References: <sympa.1094146119.26822.140@ml.mod-xslt2.com>


  • On Thu, Sep 02, 2004 at 07:32:20PM +0200, scream@xxxxxxxx wrote:
    > Hi, this is my first post to mailing lists.
    > I'm coding my homepage using mod-xslt, and i run into one problem:
    > When i set doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN/"
    > doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"; in
    > xsl:output, mod-xslt stops parsing stylesheet at this point.
    >
    > here are links, so you can look yourselves:
    > stylesheet: _http://scream.gotdns.com/hp/inc/site.xsl
    > source xml: _http://scream.gotdns.com/hp/index.xml
    Uhm, I just took a look at it:
    1 - I cannot read the sources for the .xml document,
    since mod-xslt returns me the parsed version
    2 - Parsing seems to occur correctly, beshide the
    output being empty. Take a look at:
    - your error.log, maybe some XPath expression
    is not evaluated correctly
    - your .xsl, verify that it matches something.
    Take into account xmlns or stuff like that
    (if you specify a namespace in the .xml, you
    then need to specify the same namespace in
    the .xsl files)
    3 - The mime type is still xml. You probably need to
    insert in your xsl file something like method="html"
    in xsl:output or, since you want xhtml as output,
    use something like media-type="text/html" always
    in the xsl:output element. Otherwise, browsers
    like ie or Mozilla will try to parse the document
    one more time.

    As a general suggestion, try to use the command line tool
    xsltparse or modxslt-parse. They will output problems on
    stderr, and will not incur into apache problems. If you
    still get no output, there probably is a problem in your .xsl
    file matching the .xml file. Try to post the whole .xml
    file and .xsl file into the mailing list...

    Cheers :),
    Carlo

    --
    GPG Fingerprint: 2383 7B14 4D08 53A4 2C1A CA29 9E98 5431 1A68 6975
    -------------
    *** The previous line contains the naughty word "$&".\n
    if /(ibm|apple|awk)/; # :-)
    -- Larry Wall in the perl man page

      Powered by Sympa