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

3 comments:

  1. Hello,

    Actually, by default, XSLTForms tries to parse external CSS files with XSLT 1.0. This means that those files should be valid XML documents: a root element is required!

    This behavior can be disabled in the config.xsl files:

    ReplyDelete
    Replies
    1. Hi Alain,
      Where can I find a guide to the config.xsl options?

      Delete
  2. Hi,

    There are actually just two options currently for XSLTForms:

    nocss
    debug

    -Alain

    ReplyDelete