Re: [Xsltforms-support] text/xml vs text/html
Brought to you by:
alain-couthures
From: COUTHURES A. <ala...@ag...> - 2010-03-30 20:12:09
|
Hi Grégoire, > I noticed that the examples at : > http://www.agencexml.com/xsltforms (bottom of the page) > are served as text/html and work perfectly No, they are .xml files... > > However, on my own computer, where I use the eXist database with the > Jetty server, all ".xml" files are served with a content-type of > text/xml. When I force the mime-type to "text/html", it seems that > XSLTForms doesn't apply the XSL at all. text/xml is mandatory for XSLT transformation to be performed at client-side. With eXistdb, the XSLT transformation can be done at server-side too. > > Is there a change since beta2, that makes the use of "text/xml" > compulsory? Because of bad inline SVG support when the XSLT output is "html", current SVN release has an "xml" output so XHTML is used instead. Javascript part can now treat both HTML or XHTML. I'm afraid this will be a manual option in XSLTForms beta 3 about output as "html" or as "xml" for XHTML.... Thanks! -Alain |