> XRX Starter Musings
> I did refactor the early marks of my eXist application according to Dan
> McCreary's tutorial -
> http://www.syntactica.com/training/xrx/beginners/index.html and it feels
> good so far. But now I have to take a pause.
> not install the eXist-samples in my trunk-build - from
> http://sourceforge.net/projects/xsltforms/ and putting it where the
> example code expects it, I created a simple edit.xq, but there are
> numerous quirks:
> I wanted to include my external stylesheet in the edit page: no change.
> In the error console I see that firefox wants to parse it as xml! the
> file is linked in the document's head like that:
> <link type="text/css" rel="stylesheet" href="some.css" />
For compatibility with Mozilla XForms extension, XSLTForms supports CSS
namespaces (xf|output for example) but this is done using XSLT 1.0 and
so the CSS external file has to be parsed with the document() function.
It means that a document element has to be added to get a well-formed
XML document and it usually won't disturb a browser if it gets this file
This functionality can be disabled directly in each page with a
processing instruction or in the config.xsl file.
> Trying to make sense of it with firebug I discover an utter mess: the
> documents head is rewritten to some unintelligable specs, that even
> violate the xml-standard. xsltforms also pollutes the global namespace
> (of the window object).
Many users of XSLTForms prefer it to deliver HTML to the browser because
The XSLT stylesheet of XSLTForms clearly compiles XForms elements, and
instructions. Many are added in the head element. Extra specific
properties are also added to standard HTML elements and this is well
supported by every browsers. Generated HTML shouldn't be submitted to
The future release, already in good condition in the SVN repository,
will store instances as true native XML documents.
> Are xsltforms really supposed to work with firefox 3.6? Or are the
> xsltforms in eXist a different release?
XSLTForms works well with latest version of FireFox (3.6.7) but also
IE6+, Safari, Opera, Chrome. BTW, from XSLTForms point of view, FireFox
appears to be the worse, after IE of course, because of namespace axis
not being supported.
Beta2 release is now quite old but I tested some pages using it recently
and FireFox 3.6.7 didn't have problems with it.
I have also already successfully presented Dan's excellent Beginner's
Guide to XRX to a BarCamp.
Hope it helps!