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] Parsing problems Ryan C . Spaulding
  • From: Ryan C.Spaulding <rspaulding@xxxxxxxxxxxx>
  • To: Carlo Contavalli <ccontavalli@xxxxxxxxxxx>
  • Cc: users@xxxxxxxxxxxxxxxx, "Ryan C. Spaulding" <rspaulding@xxxxxxxxxxxx>
  • Subject: Re: [mod-xslt users] Parsing problems
  • Date: Mon, 16 Aug 2004 09:36:54 -0700
  • References: <76767A65-ECAE-11D8-98A0-000A95DBC476@mail.arc.nasa.gov> <20040814213109.GA5953@commedia.it>


  • I would have to agree that it seems like it is trying to parse the document a second time which is causing the error. The "<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">" is being put in by mod-xslt not me...

    Below is the error log (nothing before the error that could be helpful):

    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: /var/www/html/xml/winetest.xml:5:
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: error:
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: Opening and ending tag mismatch: meta line 3 and head
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: </head>
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: ^
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: /var/www/html/xml/winetest.xml:7:
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: error:
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: Opening and ending tag mismatch: head line 2 and html
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: </html>
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: ^
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: /var/www/html/xml/winetest.xml:14:
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: error:
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: Premature end of data in tag html line 1
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt:
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: ^
    [Mon Aug 16 09:24:09 2004] [error] [client 129.99.134.17] mod_xslt: fatal - failed loading file: /var/www/html/xml/winetest.xml


    Here is my httpd.conf :

    <Directory /var/www/html/xml>
    AddOutputFilterByType mod-xslt text/xml
    AddOutputFilter mod-xslt .xml
    SetOutputFilter mod-xslt
    XSLTSetStylesheet text/xml test.xsl
    </Directory>

    The problem with the </xsl:template> on two lines was a paste error my actual file is fine.

    Also the 500 error page is xml compliant.

    Thank you,

    Ryan


    On Aug 14, 2004, at 2:31 PM, Carlo Contavalli wrote:

    On Thu, Aug 12, 2004 at 03:25:06PM -0700, Ryan C. Spaulding wrote:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Hello World</title>
    </head>
    <body><h1>Hello World</h1></body>
    </html>
    uhm ... looks strange to me... the parser used by the command line
    tool and by the apache code are exactly the same (same library :).

    [Thu Aug 12 15:18:10 2004] [error] [client 129.99.134.] mod_xslt:
    /var/www/html/xml/winetest.xml:5:
    [Thu Aug 12 15:18:10 2004] [error] [client 129.99.134.] mod_xslt: error:
    [Thu Aug 12 15:18:10 2004] [error] [client 129.99.134.] mod_xslt:
    Opening and ending tag mismatch: meta line 3 and head
    Uhm... it seems like the code is parsed twice.. I mean, the first
    time it is parsed and the html is generated, than it is parsed again
    and the error is outputted, since the <meta tag is not valid .xml.

    I just tryed your page on my installation, corrected the problem
    highlited earlyer in other messages, and it worked for me (TM).

    Is that possible it is an apache2 error page or something alike?
    Have you changed them? Just guessint, but could that be some problem
    like a ``403 forbidden'' page being parsed by mod-xslt?

    Could you paste your apache2 configuration? Does your access.log
    says anything before the 500 error page? Thanks :)

    Cheers,
    Carlo

    --
    GPG Fingerprint: 2383 7B14 4D08 53A4 2C1A CA29 9E98 5431 1A68 6975
    -------------
    The most important early product on the way to developing a good product
    is an imperfect version.



      Powered by Sympa