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

  previous   Chronological            previous   Thread       

Re: Can't use a subfolder in the local:///XSL path Robajz
  • From: Robajz <robajz-public@xxxxxxxxxxx>
  • To: users@xxxxxxxxxxxxxxxx
  • Subject: Re: Can't use a subfolder in the local:///XSL path
  • Date: Sun, 29 Jun 2008 21:26:11 +0100
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type:references :x-google-sender-auth; bh=EmJQjMWXg9QxYPFm7cmX/0ve9ks1/zzahx2GWpSAdCI=; b=w1lu/XRFbkYfGRzYj831LSD5wWMHnE2t7pse3qD9Va/+G17r93K02yzSdg/R4U0YS7 hAeh2eM8unsWsVJpY/tb8o7GMuxVKFPF7a26GYbo10murqgmBqQideHZDjPiYPHXhhHG A20N/Q25muqg/uiI/WEgyAvGXYiGcHSV2v/FU=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=H/YT/+jCOT+SCy0UHmYlEeSNGupirdv7720Ygvt+px+BXjlMzvyVgUwWSyQD3hw/C7 xTwx8BQk9kY/5qiKD8cGKAH5zNHJlcusxCWdUtm952flkOhnfJMZHgOe8lafHIxSxHm6 /IwjIc+UzNRhn3uRJju0OY4znxE7tNI2816XI=
  • References: <f7a1dd7e0806291240v5f5c3d62r87e96d750a1ee7ac@mail.gmail.com> <f7a1dd7e0806291250l36f4f3b6ya5a4bcb25700921e@mail.gmail.com>


  • Hi once again,

    Ok I think I have something here.

    I have the virtual host configured as you see in the attached
    my.apache.vhost file
    There is the style.xsl in /var/www/d2.cz-d3/httpdocs/ and in
    /var/www/d2.cz-d3/httpdocs/teststyle/
    The test.xml is in /var/www/d2.cz-d3/httpdocs/ too.

    When I have the html doctype and the local:///teststyle/style.xsl, the
    apache child seg-faults.

    Why is that?

    If I only remove the doctype or only change the xsl path to
    local:///style.xsl I get what's excpected:

    <?xml version="1.0" encoding="utf-8"?>
    <yourxml xmlns="http://www.w3.org/1999/xhtml"/><!--
    -* Generated by mod-xslt 1.3.9; http://www.mod-xslt2.com/
    -* Copyright (C) 2002,2003 Carlo Contavalli - <ccontavalli at masobit.net>
    -* derived from work by Philipp Dunkel and others
    (http://www.mod-xslt2.com/main/credits.xml)
    -* Thanks to http://www.masobit.net/ for paying me while working on mod-xslt
    -* and for providing resources to the project. -->


    My server signature for completenes:

    Apache/2.2.3 (Debian)
    DAV/2
    SVN/1.4.2
    mod_python/3.2.10
    Python/2.4.4
    mod-xslt/1.3.9
    PHP/4.4.4-8+etch6
    mod_ssl/2.2.3
    OpenSSL/0.9.8c
    mod_perl/2.0.2
    Perl/v5.8.8
    Server at www.d3.d2.cz
    Port 80

    Regards, Robert.

    2008/6/29 Robajz <robajz-public@xxxxxxxxxxx>:
    > Hi,
    >
    > When I use this:
    > <?modxslt-stylesheet href="local:///looknfeel/style.xsl"
    > type="text/xsl" charset="utf-8"?>
    >
    > I get this error in the apache error log and the site doesn't respond:
    > [Sun Jun 29 19:15:59 2008] [notice] child pid 24568 exit signal
    > Segmentation fault (11)
    >
    > I have no troubles using this:
    > <?modxslt-stylesheet href="local:///style.xsl" type="text/xsl"
    > charset="utf-8"?>
    >
    > The XSL files referenced are completely identical.
    >
    > I wonder what is the problem having the stylesheet in a directory...
    > Any idea what to look at? I will try to make a simplistic website
    > configuration and reproduce it and post it. Right now the configs and
    > XSL I have are rather complex involving URL rewrites and PHP...
    >
    > Thank you and regards, Robert.
    >
    > --
    > Robert ÅevÄÃk (Robajz)
    > robajz@xxxxxxxxxxx
    > http://robajz.info
    > ICQ: 155643210
    >
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0"
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
       xmlns="http://www.w3.org/1999/xhtml";
     >
      <xsl:output
    	method="xml"
    	version="1.0"
    	encoding="utf-8"
    	omit-xml-declaration="no"
    	cdata-section-elements="none"
    	indent="no"
    	/>
    
      <xsl:template match="/">
        <yourxml />
      </xsl:template>
    </xsl:stylesheet>
    
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
    <?modxslt-stylesheet href="local:///teststyle/style.xsl" type="text/xsl" charset="utf-8"?>
    <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="cs-CZ" lang="cs-CZ">
      <head>
        <title>Title</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      </head>
      <body>
        <h1>Caption</h1>
        <p>
          Text...
        </p>
      </body>
    </html>

    Attachment: my.apache.vhost
    Description: Binary data


      Powered by Sympa