Hi I'm setting up a new server. I will be moving semacode.org to this server as soon as it's ready. It's debian testing fresh install. I installed apache, libxml, etc. from apt-get.

% xsltproc -V
Using libxml 20616, libxslt 10112 and libexslt 810
xsltproc was compiled against libxml 20616, libxslt 10112 and libexslt 810
libxslt 10112 was compiled against libxml 20616
libexslt 810 was compiled against libxml 20616


Then I installed AxKit from CPAN and got a problem with axkit: URIs which I use heavily... I think I remember reading a known bug on the list... so I decided to give AxKit from CVS a shot. I got myself the latest AxKit from the anon cvs. When I built it I got one error in the test:

t/xslt-basic/05_params.................................APXS (/usr/local/apache/bin/apxs) query for SBINDIR failed

Anyway, I went ahead and installed it, following the instructions at http://axkit.org/cvs.xml

Now I get an error again the apache error log. The log is at the bottom because it's pretty long.

The file sitemenu.xml verifies with xmllint and anyway, it works on my laptop with an older AxKit. Anyway the pipeline is just index.html (which is actually XML) being processed with site.xsl. Looking at the log it seems like it's processing the axkit: URI which is in the my site.xsl (<xsl:copy-of select="document('axkit:/xinc/sitemenu.xml')/page/xhtml/*"/>) but then I don't know... it's saying get_axkit_uri returning (str): '...' which is the untransformed index.html. And then it complains about line 1 of sitemenu.xml which is valid XML.

simon


log:

[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] handler called for /index.html
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Running plugin: Apache::AxKit::Plugin::AddXSLParams::Request
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Running plugin: Apache::AxKit::Plugin::QueryStringCache
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Content Provider Override: Apache::AxKit::Provider::File
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] decoding from UTF-8
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [req] File Provider given $r: /var/www/semacode.org/index.html
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] checking if we process this resource
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] media: screen, preferred style: #default
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Cache: key = db0175a0eeefeb05dc8728cc792698a5
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] getting styles and external entities from the XML
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] styles not cached - calling $provider->get_styles()
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] encoding to UTF-8
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] using XS get_styles (libxml2)
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] calling xs_get_styles_fh()
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] using XS get_styles (libxml2)
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] calling xs_get_styles_str()
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] parse_pi: type = text/xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] parse_pi: href = /xsl/site.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] xs_get_styles returned: , , page
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Calling GetMatchingProcessors with (screen, , , , page)
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] get_styles: loading style modules
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] get_styles: looking for mapping for style type: 'text/xsl'
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] cache doesn't exist
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] some condition failed. recreating output
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] styles: Apache::AxKit::Language::LibXSLT(/xsl/site.xsl)
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Style Provider Override: Apache::AxKit::Provider::File
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [uri] File Provider looking up uri /xsl/site.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [uri] File Provider set filename to /var/www/semacode.org/xsl/site.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] about to execute: Apache::AxKit::Language::LibXSLT::handler
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [LibXSLT] getting the XML
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [LibXSLT] parsing stylesheet
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [LibXSLT] parsing stylesheet /xsl/site.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Provider::get_dom
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Provider::get_dom/parse_fh(GLOB(0x83aab1c), /xsl/site.xsl)
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] LibXSLT match_uri: file:///etc/xml/catalog
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] LibXSLT match_uri: /xsl/params.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] get_provider: /xsl/params.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Style Provider Override: Apache::AxKit::Provider::File
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] decoding from UTF-8
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [req] File Provider given $r: /var/www/semacode.org/xsl/params.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] LibXSLT match_uri: /xsl/navi.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] get_provider: /xsl/navi.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Style Provider Override: Apache::AxKit::Provider::File
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] decoding from UTF-8
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [req] File Provider given $r: /var/www/semacode.org/xsl/navi.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [LibXSLT] performing transformation
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] LibXSLT match_uri: /xinc/head.xml
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] get_provider: /xinc/head.xml
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Content Provider Override: Apache::AxKit::Provider::File
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] decoding from UTF-8
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [req] File Provider given $r: /var/www/semacode.org/xinc/head.xml
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] LibXSLT match_uri: /xinc/banner.xml
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] get_provider: /xinc/banner.xml
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Content Provider Override: Apache::AxKit::Provider::File
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] decoding from UTF-8
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [req] File Provider given $r: /var/www/semacode.org/xinc/banner.xml
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] LibXSLT match_uri: axkit:/xinc/sitemenu.xml
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] get_axkit_uri(axkit:/xinc/sitemenu.xml)
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] get_axkit_uri looking up abs: '/xinc/sitemenu.xml'
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Content Provider Override: Apache::AxKit::Provider::File
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] decoding from UTF-8
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [req] File Provider given $r: /var/www/semacode.org/xinc/sitemenu.xml
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] media: screen, preferred style: #default
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Cache: key = 9784ad179cbf08e8b97826307fe3af5b
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] getting styles and external entities from the XML
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] styles not cached - calling $provider->get_styles()
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] encoding to UTF-8
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] using XS get_styles (libxml2)
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] calling xs_get_styles_fh()
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] using XS get_styles (libxml2)
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] calling xs_get_styles_str()
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] parse_pi: type = text/xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] parse_pi: href = /xsl/sitemenu.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] xs_get_styles returned: , , sitemenu
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Calling GetMatchingProcessors with (screen, , , , sitemenu)
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] get_styles: loading style modules
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] get_styles: looking for mapping for style type: 'text/xsl'
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] cache doesn't exist
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] some condition failed. recreating output
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] styles: Apache::AxKit::Language::LibXSLT(/xsl/sitemenu.xsl)
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Style Provider Override: Apache::AxKit::Provider::File
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [uri] File Provider looking up uri /xsl/sitemenu.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [uri] File Provider set filename to /var/www/semacode.org/xsl/sitemenu.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] about to execute: Apache::AxKit::Language::LibXSLT::handler
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [LibXSLT] getting the XML
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [LibXSLT] parsing stylesheet
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [LibXSLT] parsing stylesheet /xsl/sitemenu.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Provider::get_dom
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Provider::get_dom/parse_fh(GLOB(0x8494b68), /xsl/sitemenu.xsl)
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] LibXSLT match_uri: file:///etc/xml/catalog
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] LibXSLT match_uri: /xsl/navi.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] get_provider: /xsl/navi.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Style Provider Override: Apache::AxKit::Provider::File
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] decoding from UTF-8
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [req] File Provider given $r: /var/www/semacode.org/xsl/navi.xsl
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [LibXSLT] performing transformation
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [LibXSLT] transformation finished, creating XML::LibXML::Document=SCALAR(0x84ceee0)
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] [LibXSLT] storing results in pnotes(dom_tree) (AxKit::Apache=SCALAR(0x842f9ac))
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Apache::AxKit::Language::LibXSLT::handler finished with code 0
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] execution of: Apache::AxKit::Language::LibXSLT::handler finished
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] get_axkit_uri returning (str): '<?xml version="1.0" encoding="UTF-8"?>\n<?xml-stylesheet type="text/xsl" href="/xsl/site.xsl" ?>\n\n<page>\n <header>\n <title>URL barcodes | practical ubicomp</title>\n </header>\n <sidebar><includeblog/></sidebar>\n <xhtml>\n\n\n<div class="floating_right">\n<div class="menuicons">\n <a href="/software/reader"><img src="/software/images/reader.gif" alt=""/></a>\n <a href="/software/server"><img src="/software/images/server.gif" alt=""/></a>\n <a href="/software/sdk"><img src="/software/images/sdk.gif" alt=""/></a>\n <br/>\n <a href="/about/technical"><img src="/about/images/technical.gif" alt=""/></a>\n <a href="/about/hardware"><img src="/about/images/hardware.gif" alt=""/></a>\n <a href="/about/platform"><img src="/about/images/platform.gif" alt=""/></a>\n <br/>\n <a href="/about/apps/cases/2004_10_09"><img src="/images/conqwest.gif" alt=""/></a>\n <a href="/about/apps/guide"><img src="/about/apps/images/guide.gif" alt=""/></a>\n <a href="/about/apps/potential"><img src="/about/apps/images/potential.gif" alt=""/></a>\n</div>\n</div>\n\n<h3>URL barcodes</h3>\n\n<p>Simply put, a semacode is a URL barcode. Using our free software, you can scan a semacode, and with just one click the proper webpage will be loaded on your phone's browser. The system is open and extensible, and anyone can create semacodes on their own computer.\n</p>\n\n<h3>practical ubiquitous computing</h3>\n\n<p>\nSemacode is a platform for ubiquitous computing. Using our complete platform, you can build a ubiquitous application from the ground up to engage your users directly into the software, eliminating the barriers between the real world and the computer.\n</p>\n\n<div class="floating_left">\n <div class="image">\n <img src="/images/a_semacode.gif" border="0" alt="semacode example"/>\n <div class="caption">a semacode node</div>\n </div>\n</div>\n\n<h3>how it works</h3>\n\n<p>Semacode "nodes" or URL barcodes sit at the center of the system. We adapted the public domain standard \n<a class="external" href="http://www.rvsi.com/ACUITYCIMATRIX/DM%20Basics.html";>data matrix</a>\nbarcode format to encode plain-text URLs. Data matrix is a robust code that can store hundred of characters, recovering up to 50% of lost data due to damage.\n</p>\n\n<p>When you create a semacode node, you control the content on your own website or WAP pages. So you can completely design a user-specific application using standard web design tools, and then hook it into real-world ubiquitous use by generating semacode nodes for the different page addresses.\n</p>\n\n<div class="floating_left">\n <div class="image">\n <img src="/images/camera_phone.jpg" alt="camera phone"/>\n </div>\n</div>\n\n<p>With a \n<a class="external" href="http://en.wikipedia.org/wiki/Camera_phone";>\ncamera phone</a>, your users can "click" a semacode node with their camera to activate it. If they have the Semacode Reader installed on their phone, the phone will automatically read the URL out of the code and present it to the user. If they approve, it launches the appropriate browser using cellular data services like GPRS. The URL will lead them to the page or service that you specified when you created the code.\n</p>\n\n\n<h3 style="clear:both;">uses of semacode</h3>\n\n<p>The applications you can create are limited only by the still unexplored bounds of ubiquitous computing. Or, you can look at the places where semacode has already been used:\n</p>\n\n<div class="floating_right">\n <div class="image">\n <img src="/about/apps/cases/2004_10_09/images/players_small.jpg" border="1" alt="event"/>\n</div>\n</div>\n\n<ul>\n<li><a href="/about/apps/cases/2004_06_14">\na conference promotion</a>\n</li>\n<li><a class="external" href="http://www.etoy.com/daycare/amsterdam/";>\nan art exhibit (etoy)</a></li>\n<li><a href="/about/apps/cases/2004_08_08">\nbusiness cards</a></li>\n<li><a href="/about/apps/cases/2004_10_09">\nan urban mobile game (ConQwest&#153;)</a></li>\n</ul>\n\n\n\n<h3>feedback</h3>\n\n<p>Tell us what you think: \n<a href="mailto:[EMAIL PROTECTED] subject=SemaCode.org">[EMAIL PROTECTED]</a>.\n</p>\n\n\n </xhtml>\n</page>'
[Fri May 13 18:08:31 2005] [warn] [client 69.157.21.164] [AxKit] Caught an exception
[Fri May 13 18:08:31 2005] [error] [client 69.157.21.164] [AxKit] [Error] axkit:/xinc/sitemenu.xml:1: at /usr/local/lib/perl/5.8.4/Apache/AxKit/Language/LibXSLT.pm line 123.\n
[Fri May 13 18:08:31 2005] [error] [client 69.157.21.164] [AxKit] From: /usr/local/lib/perl/5.8.4/Apache/AxKit/Exception.pm : 9
[Fri May 13 18:08:31 2005] [error] [client 69.157.21.164] [AxKit] [Backtrace] axkit:/xinc/sitemenu.xml:1: at /usr/local/lib/perl/5.8.4/Apache/AxKit/Language/LibXSLT.pm line 123.
Apache::AxKit::Exception::new('Apache::AxKit::Exception::Error', '-text', 'axkit:/xinc/sitemenu.xml:1: at /usr/local/lib/perl/5.8.4/Apa...') called at /usr/local/lib/perl/5.8.4/AxKit.pm line 1021
AxKit::prep_exception('axkit:/xinc/sitemenu.xml:1: at /usr/local/lib/perl/5.8.4/Apa...') called at /usr/local/lib/perl/5.8.4/AxKit.pm line 227
AxKit::__ANON__('axkit:/xinc/sitemenu.xml:1: at /usr/local/lib/perl/5.8.4/Apa...') called at /usr/local/lib/perl/5.8.4/Apache/AxKit/Language/LibXSLT.pm line 123
Apache::AxKit::Language::LibXSLT::handler('Apache::AxKit::Language:: LibXSLT', 'AxKit::Apache=SCALAR(0x83696ec)', 'Apache::AxKit::Provider::File=HASH(0x836a3d8)', 'Apache::AxKit::Provider::File=HASH(0x8463cb8)', 1) called at /usr/local/lib/perl/5.8.4/AxKit.pm line 767
AxKit::process_request('AxKit::Apache=SCALAR(0x83696ec)', 'Apache::AxKit::Provider::File=HASH(0x836a3d8)', 'ARRAY(0x83eb160)', 'undef') called at /usr/local/lib/perl/5.8.4/AxKit.pm line 478
AxKit::run_axkit_engine('AxKit::Apache=SCALAR(0x83696ec)', 'Apache::AxKit::Provider::File=HASH(0x836a3d8)') called at /usr/local/lib/perl/5.8.4/AxKit.pm line 304
eval {...} called at /usr/local/lib/perl/5.8.4/AxKit.pm line 295
AxKit::main_handler('AxKit::Apache=SCALAR(0x83696ec)', 'Apache::AxKit::Provider::File=HASH(0x836a3d8)') called at /usr/local/lib/perl/5.8.4/AxKit.pm line 262
AxKit::handler('AxKit::Apache=SCALAR(0x83696ec)') called at /dev/null line 0
eval {...} called at /dev/null line 0\n



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to