Installing on CentOS

213 views
Skip to first unread message

Carlo Contavalli

unread,
Oct 17, 2011, 12:51:21 AM10/17/11
to mod-...@googlegroups.com
If anyone is interested, I just added a new page on the wiki on how to
install mod-xslt on CentOS:

https://github.com/ccontavalli/mod-xslt/wiki/Installing-on-CentOS

Also, I've updated a few more pages on http://www.mod-xslt2.com/ which
were still pointing to the old mailing list and tla archives.

Carlo

Message has been deleted

Carlo Contavalli

unread,
Mar 26, 2013, 6:15:40 PM3/26/13
to mod-...@googlegroups.com
Did you sort out this problem, btw? If you follow steps outlined in
manual, it should copy the .so module and all that's necessary in the
directory pointed out by the apache config scripts. You just need to
make sure those can be found easily or are passed to configure
correctly.

Carlo

On Wed, Mar 6, 2013 at 3:33 PM, Sphinx <li...@fullsack.com> wrote:
> Awesome but even following them carefully those instructions do not seem to
> create a mod_xslt.so and make install does not make one appear in the apache
> server's module directory and I don't see any directives in the Makefiles
> produced to make that happen either. What exactly is that supposed to do?
> Install the linkable libraries so you can use them in C? How do I build a
> mod_xslt.so module that apache 2 can use or is it named something else?
> --
> You received this message because you are subscribed to the Google Groups
> "mod-xslt" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mod-xslt+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Sphinx

unread,
Apr 7, 2013, 8:47:20 PM4/7/13
to mod-...@googlegroups.com
Followed the new wiki instructions I thought to the letter on the rpm path, all seemed to work ok, installed, up and running
 
Apache/2.2.15 (Unix) DAV/2 mod-xslt/1.4.2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations

Created conf file, directory and the test files but getting unexpected error, uncommented debug and errors_log says:

[Mon Apr 08 10:21:45 2013] [warn] mod-xslt: debug(level=00000140,mask=0000fffe,pid=9489,tid=140586333419488): loading: /var/www/html/xml/test.xml
[Mon Apr 08 10:21:45 2013] [warn] mod-xslt: debug(level=00000044,mask=0000fffe,pid=9489,tid=140586333419488): decoding URL arguments: (null)
[Mon Apr 08 10:21:45 2013] [warn] mod-xslt: debug(level=00008010,mask=0000fffe,pid=9489,tid=140586333419488): parsing document: /var/www/html/xml/test.xml aka http://localhost.localdomain:80/xml/test.xml
[Mon Apr 08 10:21:45 2013] [warn] mod-xslt: debug(level=00008014,mask=0000fffe,pid=9489,tid=140586333419488): xml_parse/xmlCreateMemoryParserCtxt -- replacing entities: 00000001
[Mon Apr 08 10:21:45 2013] [warn] mod-xslt: debug(level=00000010,mask=0000fffe,pid=9489,tid=140586333419488): processing instruction "xml-stylesheet", attributes |type="text/xsl" href="test.xsl" media="all"|
[Mon Apr 08 10:21:45 2013] [warn] mod-xslt: debug(level=00008010,mask=0000fffe,pid=9489,tid=140586333419488): adjusting url for stylesheet: test.xsl
[Mon Apr 08 10:21:45 2013] [warn] mod-xslt: debug(level=00000010,mask=0000fffe,pid=9489,tid=140586333419488): loading stylesheet: test.xsl
[Mon Apr 08 10:21:45 2013] [warn] mod-xslt: debug(level=00000014,mask=0000fffe,pid=9489,tid=140586333419488): stylesheet - base: /var/www/html/xml/test.xml, name (server): (null), path: test.xsl
[Mon Apr 08 10:21:45 2013] [warn] mod-xslt: debug(level=00008010,mask=0000fffe,pid=9489,tid=140586333419488): parsing stylesheet: /var/www/html/xml/test.xsl
[Mon Apr 08 10:21:45 2013] [warn] mod-xslt: debug(level=00008014,mask=0000fffe,pid=9489,tid=140586333419488): load_entity/xmlCreateMemoryParserCtxt -- replacing entities: 00000001
[Mon Apr 08 10:21:45 2013] [warn] mod-xslt: debug(level=00008104,mask=0000fffe,pid=9489,tid=140586333419488): parsing document: /var/www/html/xml/test.xml
[Mon Apr 08 10:21:45 2013] [warn] mod-xslt: debug(level=00008014,mask=0000fffe,pid=9489,tid=140586333419488): /var/www/html/xml/test.xml: <modxslt:value-of called
[Mon Apr 08 10:21:45 2013] [notice] child pid 9489 exit signal Segmentation fault (11)

Older laptop I dug out just to test this, has about 592 pkgs out of date, updating all it's packages and will be trying fresh.
Linux localhost.localdomain 2.6.32-279.19.1.el6.x86_64 #1 SMP Wed Dec 19 07:05:20 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
got to read the docs, did not recognise much of test.xsl

Carlo Contavalli

unread,
Apr 9, 2013, 2:30:09 PM4/9/13
to mod-...@googlegroups.com
"Segmentation fault" looks bad. Let me try to reproduce the issue, and
see if I can see it as well.

Carlo

Sphinx

unread,
Apr 12, 2013, 4:45:57 PM4/12/13
to mod-...@googlegroups.com
Trying to get a few more clues here today, still 11's but after preparing a couple simpler files was wondering:

[Fri Apr 12 13:36:45 2013] [error] [client 127.0.0.1] mod-xslt: fatal - no <?xml-stylesheet or <?modxslt-stylesheet found in /var/www/html/xml/boob.xml

Do you think that should be fatal? Would think returning the unprocessed xml straight up would be much more civilized. Then you could mix un-styled and styled docs in the same directory.

Carlo Contavalli

unread,
Apr 23, 2013, 9:58:16 PM4/23/13
to mod-...@googlegroups.com
I think I managed to reproduce the issue, below what a stack trace
looks like on my system [1].
Will try to submit fix asap, so we can verify this is really the problem.

Thanks!
Carlo


[1]:
(gdb) bt
#0 0x00007f102f74b1a0 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f102c74cd11 in mxslt_yy_str_dereference () from
/usr/lib/libmodxslt1.so.1
#2 0x00007f102c74ce69 in mxslt_yy_str_parse () from /usr/lib/libmodxslt1.so.1
#3 0x00007f102c7493e7 in mxslt_doc_parse_pi () from /usr/lib/libmodxslt1.so.1
#4 0x00007f102c95ec9f in mxslt_ap2_file_parse () from
/usr/lib/apache2/modules/mod_xslt.so
#5 0x00007f102c95ddde in ?? () from /usr/lib/apache2/modules/mod_xslt.so
#6 0x00007f10304c7ffb in ?? ()
#7 0x00007f10304d2b60 in ap_run_handler ()
#8 0x00007f10304d2fab in ap_invoke_handler ()
#9 0x00007f10304e3088 in ap_process_request ()
#10 0x00007f10304dff48 in ?? ()
#11 0x00007f10304d9520 in ap_run_process_connection ()
#12 0x00007f10304e7cb9 in ?? ()
#13 0x00007f10304e838e in ?? ()
#14 0x00007f10304e8b42 in ap_mpm_run ()
#15 0x00007f10304bd832 in main ()

Carlo Contavalli

unread,
Apr 24, 2013, 12:13:59 AM4/24/13
to mod-...@googlegroups.com
this (set) of errors has to do with 64 bit system and old code, that
has some bad assumptions about pointers and integers. I've submitted a
first fix to github, more to come in the next few hours.

Carlo

Carlo Contavalli

unread,
Apr 24, 2013, 12:52:37 AM4/24/13
to mod-...@googlegroups.com
On Tue, Apr 23, 2013 at 9:13 PM, Carlo Contavalli <ccont...@gmail.com> wrote:
> this (set) of errors has to do with 64 bit system and old code, that
> has some bad assumptions about pointers and integers. I've submitted a
> first fix to github, more to come in the next few hours.

Ok, there are still some suspicious conversions, but at least the code
builds now and all crashes / errors I found are gone. It'd be great if
you could try and confirm :)!

Thanks,
Carlo

Sphinx

unread,
Apr 28, 2013, 3:00:44 PM4/28/13
to mod-...@googlegroups.com
Sorry, fell off there for a bit, took on an ailing cognos system and was completely overwhelmed for a few. I'll test it tonite for sure.

Sphinx

unread,
Apr 29, 2013, 10:24:00 PM4/29/13
to mod-...@googlegroups.com
Still resets and signal 11, downloaded the 1.4.2.tar.gz from https://github.com/ccontavalli/mod-xslt/tags, passed to rpmbuild -ta, loaded rpms for modxslt and modxslt-apache, segfaulted, loaded devel and debug but no change, is correct source?:

[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00008014,mask=0000fffe,pid=7856,tid=140285794883552): load_entity/xmlCreateMemoryParserCtxt -- replacing entities: 00000001
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00008104,mask=0000fffe,pid=7856,tid=140285794883552): parsing document: /var/www/html/xml/test.xml
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00008014,mask=0000fffe,pid=7856,tid=140285794883552): /var/www/html/xml/test.xml: <modxslt:value-of called
[Mon Apr 29 19:10:13 2013] [notice] child pid 7856 exit signal Segmentation fault (11)
[Mon Apr 29 19:18:23 2013] [notice] caught SIGTERM, shutting down
[Mon Apr 29 19:18:24 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 29 19:18:24 2013] [warn] module proxy_ajp_module is already loaded, skipping
[Mon Apr 29 19:18:24 2013] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 29 19:18:24 2013] [notice] Digest: done
[Mon Apr 29 19:18:25 2013] [notice] Apache/2.2.15 (Unix) DAV/2 mod-xslt/1.4.2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
----------------
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00000140,mask=0000fffe,pid=7856,tid=140285794883552): loading: /var/www/html/xml/test.xml
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00000044,mask=0000fffe,pid=7856,tid=140285794883552): decoding URL arguments: (null)
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00008010,mask=0000fffe,pid=7856,tid=140285794883552): parsing document: /var/www/html/xml/test.xml aka http://localhost.localdomain:80/xml/test.xml
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00008014,mask=0000fffe,pid=7856,tid=140285794883552): xml_parse/xmlCreateMemoryParserCtxt -- replacing entities: 00000001
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00000010,mask=0000fffe,pid=7856,tid=140285794883552): processing instruction "xml-stylesheet", attributes |type="text/xsl" href="test.xsl" media="all"|
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00008010,mask=0000fffe,pid=7856,tid=140285794883552): adjusting url for stylesheet: test.xsl
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00000010,mask=0000fffe,pid=7856,tid=140285794883552): loading stylesheet: test.xsl
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00000014,mask=0000fffe,pid=7856,tid=140285794883552): stylesheet - base: /var/www/html/xml/test.xml, name (server): (null), path: test.xsl
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00008010,mask=0000fffe,pid=7856,tid=140285794883552): parsing stylesheet: /var/www/html/xml/test.xsl
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00008014,mask=0000fffe,pid=7856,tid=140285794883552): load_entity/xmlCreateMemoryParserCtxt -- replacing entities: 00000001
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00008104,mask=0000fffe,pid=7856,tid=140285794883552): parsing document: /var/www/html/xml/test.xml
[Mon Apr 29 19:10:13 2013] [warn] mod-xslt: debug(level=00008014,mask=0000fffe,pid=7856,tid=140285794883552): /var/www/html/xml/test.xml: <modxslt:value-of called
[Mon Apr 29 19:10:13 2013] [notice] child pid 7856 exit signal Segmentation fault (11)


On Tuesday, 23 April 2013 21:52:37 UTC-7, Carlo wrote:

Sphinx

unread,
Apr 29, 2013, 10:50:31 PM4/29/13
to mod-...@googlegroups.com
My test.xml file:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="test.xsl" media="all"?>
<tag>
This is a very very simple xml document.
</tag>

test.xsl:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" extension-element-prefixes="yaslt"
                          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                          xmlns:yaslt="http://www.mod-xslt2.com/ns/1.0">
<xsl:output method="html" omit-xml-declaration="yes" indent="yes" encoding="UTF8" />
<xsl:strip-space elements="*" />
<xsl:template match="/">
<html>
<head>
  <title>mod-xslt is working!</title>
</head>
<body>
  <h1>mod-xslt is working!</h1>
  Compile time constants:
  <ul>
    <li>mod-xslt version: <b><xsl:value-of select="$modxslt-name" /> - <xsl:value-of select="$modxslt-version" /></b></li>
    <li>mod-xslt namespace: <b><xsl:value-of select="$modxslt-namespace" /></b></li>
    <li>mod-xslt handler: <b><xsl:value-of select="$modxslt-handler" /></b></li>
    <li>mod-xslt conf-libpcre: <b><xsl:value-of select="$modxslt-conf-libpcre" /></b></li>
    <li>mod-xslt conf-exslt: <b><xsl:value-of select="$modxslt-conf-exslt" /></b></li>
    <li>mod-xslt conf-extensions: <b><xsl:value-of select="$modxslt-conf-extensions" /></b></li>
    <li>mod-xslt conf-libxmlthreads: <b><xsl:value-of select="$modxslt-conf-libxmlthreads" /></b></li>
    <li>mod-xslt conf-libxslthack: <b><xsl:value-of select="$modxslt-conf-libxslthack" /></b></li>
    <li>mod-xslt conf-fallbackwrap: <b><xsl:value-of select="$modxslt-conf-fallbackwrap" /></b></li>
    <li>mod-xslt conf-thread: <b><xsl:value-of select="$modxslt-conf-thread" /></b></li>
    <li>mod-xslt conf-xinclude: <b><xsl:value-of select="$modxslt-conf-xinclude" /></b></li>
  </ul>
  mod-xslt extensions:
  <ul>
    <li>User-Agent header:
      <b><yaslt:value-of select="$HEADER[User-Agent])"><xsl:fallback><font color="red">NOT WORKING!</font></xsl:fallback></yaslt:value-of></b>
    </li>
    <li>Get parameter (id, try to get this page with ?id=testidorsomething):
      <b><yaslt:value-of select="$GET[id])"><xsl:fallback><b><font color="red">NOT WORKING!</font></b></xsl:fallback></yaslt:value-of></b>
    </li>
  </ul>
  Text in .xml file (boldified):
  <b><xsl:apply-templates/></b>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

boob.xml:
<?xml version="1.0"?>
<portfolio>
<name>The Bull Pit</name>
<stock>
<symbol>KO</symbol>
<companyname>Coca-Cola</companyname>
<quantity>500</quantity>
<lasttradedprice>14.00</lasttradedprice>
</stock>
</portfolio>

boob.xsl
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:value-of select="portfolio/name" />
Stock(s):
Company Name: <xsl:value-of select="portfolio/stock/companyname" />
Symbol: <xsl:value-of select="portfolio/stock/symbol" />
Quantity: <xsl:value-of select="portfolio/stock/quantity" />
Last Traded Price: <xsl:value-of select="portfolio/stock/lasttradedprice" />
</xsl:template>
</xsl:stylesheet>

/etc/httpd/conf.d/modxslt.conf:
LoadModule mxslt_module modules/mod_xslt.so
<Directory /var/www/html/xml>
# Filter all files in this directory through mod-xslt.
SetOutputFilter mod-xslt
# Uncomment this line to enable mod-xslt debugging.
XSLTDebug all
</Directory>

Sphinx

unread,
Apr 29, 2013, 10:52:37 PM4/29/13
to mod-...@googlegroups.com
Wait, missing something here.

Sphinx

unread,
Apr 30, 2013, 11:31:25 AM4/30/13
to mod-...@googlegroups.com
There  was no linkage between boob.xml and boob.xsl so I changed the top of boob.xml to:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="boob.xsl" media="all"?>
and now I get the message:

XML Parsing Error: syntax error
Location: http://localhost.localdomain/xml/boob.xml
Line Number 2, Column 1:The Bull Pit
^

Something still not quite right here. Tidy -xml finds no fault with the docs, test.xml/test.xsl still signal 11 segfault.

Sphinx

unread,
May 1, 2013, 12:41:52 PM5/1/13
to mod-...@googlegroups.com
[root@localhost xml]# apachectl -V
Server version: Apache/2.2.15 (Unix)
Server built:   Feb 22 2013 11:19:58
Server's Module Magic Number: 20051115:25
Server loaded:  APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
[root@localhost xml]#

Sphinx

unread,
May 1, 2013, 2:27:38 PM5/1/13
to mod-...@googlegroups.com
Tried the simplest I could think of:

duh.xsl
----------

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">
<xsl:value-of select="what"/>
</xsl:template>
</xsl:stylesheet>

duh.xml
----------
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="duh.xsl"?>
<page>
<what>chicken butt</what>
</page>

And get the browser fetches a result of:
XML Parsing Error: no element found
Location: http://localhost.localdomain/xml/duh.xml
Line Number 1, Column 1:

^

Very curious, error message make no sense to me. No blank lines or anything there.

Carlo Contavalli

unread,
May 3, 2013, 11:36:25 AM5/3/13
to mod-...@googlegroups.com
If you could try the version in in git in head, that'd be great. I've
made a few more fixes, I am planning to cut a version 1.4.3 either
this weekend or next with updated docs and all those fixes, but need a
bit more testing first.

The easiest way to try rpmbuild with version from head is probably to
do something like:

$ git clone https://github.com/ccontavalli/mod-xslt.git ./mod-xslt-1.4.2/
$ tar -cvzf ./mod-xslt-1.4.2.tar.gz ./mod-xslt-1.4.2

Carlo

Carlo Contavalli

unread,
May 3, 2013, 11:40:42 AM5/3/13
to mod-...@googlegroups.com
uhm .. weird. Two things:

1) can you try running xmllint against the file? or modxslt-parse from
the command line? those are good tools to check that the file is
valid.

2) is it possible that the file has wrong privileges? if you disable
mod-xslt, can you see the .xml file in your browser? I need to double
check, but I have vague memories of SetOutputFilter causing also error
pages (like 404, or 500) to be passed down to mod-xslt, which would
then report an error. This is likely undesirable, but I can see cases
where one would want even error pages in .xml, so there should
probably be a parameter disabled by default.

Carlo
Message has been deleted

Sphinx

unread,
May 3, 2013, 3:51:58 PM5/3/13
to mod-...@googlegroups.com
Not having an output method in the XSL, something to do with my local web server on this no name laptop having no Servername set and useCanonical set to On, changed to 127.0.0.1 and seems to be working, sort of, getting some of the expected results anyway and saw some new odd behavior:

My files are:

duh.xml
--------------

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="duh.xsl"?>
<page>
<what>chicken butt</what>
</page>

duh.xsl
--------------

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" omit-xml-declaration="yes" indent="yes" encoding="UTF8" />
<xsl:template match="page">
<xsl:value-of select="what"/>
</xsl:template>
</xsl:stylesheet>

This works:
http://127.0.0.1/xml/duh.xml?
and prints the words, "chicken butt" in the  browser.

This does not work:
http://127.0.0.1/xml/duh.xml
and prints an app server looking error message of:


XML Parsing Error: syntax error
Location: http://127.0.0.1/xml/duh.xml

Line Number 2, Column 1:

chicken butt
^

This is all with 1.4.2 tags, will not be able to try out HEAD branch until late tonight. Making progress :)

Sphinx

unread,
May 3, 2013, 4:46:53 PM5/3/13
to mod-...@googlegroups.com
Seems to be working either way now. Something about the way test.xml/test.xsl blows up leaves it in an odd state, crashed yet still running?

Sphinx

unread,
May 3, 2013, 10:08:08 PM5/3/13
to mod-...@googlegroups.com
Haha it's brilliant! Something still a bit off in the $get id thing, bummer, always wished for that in cocoon, never worked. Tried it with ?id=allsortsastuff, no luck but all the <$modxslt stuff works, simple examples work as advertised, Error comes after closing tag, bad form that. You were right about the permissions, /var/www was owned root:root, /var/www/xml by apache:apache. Be converting sites and further testing all week. Thanks for your efforts dude, it's PFM and star of my next LUG meeting B-)

[code]
<html>
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF8">

<title>mod-xslt is working!</title>
</head>
<body>
<h1>mod-xslt is working!</h1>
  Compile time constants:
  <ul>
<li>mod-xslt version: <b>mod-xslt - 1.4.2</b>
</li>
<li>mod-xslt namespace: <b>http://www.modxslt.org/ns/1.0</b>
</li>
<li>mod-xslt handler: <b>mod-xslt</b>
</li>
<li>mod-xslt conf-libpcre: <b>true</b>
</li>
<li>mod-xslt conf-exslt: <b>true</b>
</li>
<li>mod-xslt conf-extensions: <b>false</b>
</li>
<li>mod-xslt conf-libxmlthreads: <b>true</b>
</li>
<li>mod-xslt conf-libxslthack: <b>false</b>
</li>
<li>mod-xslt conf-fallbackwrap: <b>false</b>
</li>
<li>mod-xslt conf-thread: <b>pthread</b>
</li>
<li>mod-xslt conf-xinclude: <b>true</b>

</li>
</ul>
  mod-xslt extensions:
  <ul>
<li>
User-Agent header:
      <b></b>
</li>
<li>Get parameter (id, try to get this page with ?id=testidorsomething):
      <b></b>

</li>
</ul>
  Text in .xml file (boldified):
  <b>
This is a very very simple xml document.
</b>
</body>
</html><font color="red">NOT WORKING!</font><b><font color="red">NOT WORKING!</font></b>
[/code]

Sphinx

unread,
May 3, 2013, 10:19:39 PM5/3/13
to mod-...@googlegroups.com
That was from:
tar -cvzf ./mod-xslt-1.4.2.tar.gz ./mod-xslt-1.4.2
rpmbuild -ta ./mod-xslt-1.4.2.tar.gz
cd rpmbuild/RPMS/x86_64/
rpm -ivh mod-xslt-1.4.2-1.x86_64.rpm mod-xslt-apache-1.4.2-1.x86_64.rpm

[Fri May 03 18:50:40 2013] [notice] Apache/2.2.15 (Unix) DAV/2 mod-xslt/1.4.2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations

and /var/www/html/xml was owned by apache.

Sphinx

unread,
May 3, 2013, 10:23:24 PM5/3/13
to mod-...@googlegroups.com
Seemed to have changed the namespace in test.xsl, could that have something to do with it.

Sphinx

unread,
May 3, 2013, 10:50:04 PM5/3/13
to mod-...@googlegroups.com
Seems to know id in errlog:
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00000140,mask=0000fffe,pid=3447,tid=140214710892512): loading: /var/www/html/xml/test.xml
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00000140,mask=0000fffe,pid=3447,tid=140214710892512): loading: /var/www/html/xml/test.xml
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00000044,mask=0000fffe,pid=3447,tid=140214710892512): decoding URL arguments: id=what
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00000044,mask=0000fffe,pid=3447,tid=140214710892512): decoding URL arguments: id=what
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00000204,mask=0000fffe,pid=3447,tid=140214710892512): url parser - setting to value: GET[id] = "what"
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00000204,mask=0000fffe,pid=3447,tid=140214710892512): url parser - setting to value: GET[id] = "what"
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00008010,mask=0000fffe,pid=3447,tid=140214710892512): parsing document: /var/www/html/xml/test.xml aka http://localhost.localdomain:80/xml/test.xml
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00008014,mask=0000fffe,pid=3447,tid=140214710892512): xml_parse/xmlCreateMemoryParserCtxt -- replacing entities: 00000001
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00008010,mask=0000fffe,pid=3447,tid=140214710892512): parsing document: /var/www/html/xml/test.xml aka http://localhost.localdomain:80/xml/test.xml
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00008014,mask=0000fffe,pid=3447,tid=140214710892512): xml_parse/xmlCreateMemoryParserCtxt -- replacing entities: 00000001
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00000010,mask=0000fffe,pid=3447,tid=140214710892512): processing instruction "xml-stylesheet", attributes |type="text/xsl" href="testorig.xsl" media="all"|
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00008010,mask=0000fffe,pid=3447,tid=140214710892512): adjusting url for stylesheet: testorig.xsl
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00000010,mask=0000fffe,pid=3447,tid=140214710892512): loading stylesheet: testorig.xsl
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00000014,mask=0000fffe,pid=3447,tid=140214710892512): stylesheet - base: /var/www/html/xml/test.xml, name (server): (null), path: testorig.xsl
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00008010,mask=0000fffe,pid=3447,tid=140214710892512): parsing stylesheet: /var/www/html/xml/testorig.xsl
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00008014,mask=0000fffe,pid=3447,tid=140214710892512): load_entity/xmlCreateMemoryParserCtxt -- replacing entities: 00000001
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00000010,mask=0000fffe,pid=3447,tid=140214710892512): processing instruction "xml-stylesheet", attributes |type="text/xsl" href="testorig.xsl" media="all"|
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00008010,mask=0000fffe,pid=3447,tid=140214710892512): adjusting url for stylesheet: testorig.xsl
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00000010,mask=0000fffe,pid=3447,tid=140214710892512): loading stylesheet: testorig.xsl
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00000014,mask=0000fffe,pid=3447,tid=140214710892512): stylesheet - base: /var/www/html/xml/test.xml, name (server): (null), path: testorig.xsl
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00008010,mask=0000fffe,pid=3447,tid=140214710892512): parsing stylesheet: /var/www/html/xml/testorig.xsl
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00008014,mask=0000fffe,pid=3447,tid=140214710892512): load_entity/xmlCreateMemoryParserCtxt -- replacing entities: 00000001
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00008104,mask=0000fffe,pid=3447,tid=140214710892512): parsing document: /var/www/html/xml/test.xml
[Fri May 03 19:44:06 2013] [warn] mod-xslt: debug(level=00008104,mask=0000fffe,pid=3447,tid=140214710892512): parsing document: /var/www/html/xml/test.xml

Sphinx

unread,
May 4, 2013, 5:22:58 PM5/4/13
to mod-...@googlegroups.com
I don't seem to have any extensions.

Carlo Contavalli

unread,
May 7, 2013, 11:38:03 AM5/7/13
to mod-...@googlegroups.com
Weird, I have tried reproducing this, but no luck so far. Version in
head (upcoming 1.4.3), seems to be much better, btw.
I should just cut a new version, I am updating the scripts to do so as
some of the docs on the site are also old.

Carlo

Carlo Contavalli

unread,
May 7, 2013, 11:51:50 AM5/7/13
to mod-...@googlegroups.com
Hello,

yes! you are right. A few things that have changed:
- in the namespace, you now have to use "www.modxslt.org" instead of
"www.mod-xslt2.com", I will update head shortly to support both for a
while, to allow for transition.
- the wiki had cat <<EOC instead of cat << "EOC", which meant that
$variables could get mangled by the shell.

With those changes, GET[id] is working for me both on debian and
centos, on 64 bit system. I just updated the CentOS wiki page, just
about to update the debian one, and the gist.

Hope this helps!

Carlo

Sphinx

unread,
May 22, 2013, 11:37:02 AM5/22/13
to mod-...@googlegroups.com
Such an idiot, I missed the suffix change, extensions are working with the correct namespace. It's awesome and tonight's star:
http://www.meetup.com/HackerLab/events/117090552/
Reply all
Reply to author
Forward
0 new messages