Sunday, 29 April 2012

listman

The BaseX 7.2.1 release brings together a couple of interesting features that I wanted to check out. A  RESTXQ implementation based on Adam Retter's XML Prague 2012 paper, and an approach to XQuery Update that allows a return value as well as persisting XML changes. It seemed like fun to try these with Alain Couthures XSLTForms

The result..


The code is in 3 main XQuery modules


The code is in bitbucket See readme.md for installation instructions. The BaseX RestXQ implementation is here

Todo: 
Get Xforms required css to work http://en.wikibooks.org/wiki/XSLTForms/CSS
track edit versions/conflicts








Wednesday, 11 April 2012

xsltforms

Does funny things to css..
<?xml-stylesheet href="/lib/xsltforms/xsltforms.xsl" type="text/xsl"?><?xsltforms-options debug="yes"?><!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ev="http://www.w3.org/2001/xml-events">
<head>
<title>Listman v0.0.1</title>
<base href="http://localhost:8984/restxq/listman/" />
<link href="/lib/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="/lib/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css" />
<link href="/listman/app.css" rel="stylesheet" type="text/css" />
<!-- Le fav and touch icons -->
view raw gistfile1.xml hosted with ❤ by GitHub

<style type="text/css">XML Parsing Error: not well-formed Location: http://localhost:8984/lib/bootstrap/css/bootstrap-responsive.min.css Line Number 1, Column 10:.clearfix {*zoom:1;}
.clearfix:before, .clearfix:after {display:table;content:"";}
{}
</style>
view raw End up as.. hosted with ❤ by GitHub

The answer is <?css-conversion no?> See http://en.wikibooks.org/wiki/XRX/XSLTForms_and_eXist#Modifying_your_CSS_to_work_with_XSLTForms

Wednesday, 4 April 2012

ubuntu 11.10

Still a disaster. 
http://deviceguru.com/ubuntu-11-10-without-shell-shock/