0
Fixed

format xml with css preview doesn't work any more in 2.1

chrisreuter 13 years ago updated by Alexander Blach (Developer) 13 years ago 5
xml formatting with css worked fine in 2.0
Unfortunately it doesn't work any more in version 2.1
:-(

Answer

Answer
Fixed
It works when the XML file has the correct styling tags and the CSS file is written correctly.
+1
Hi, I changed the behaviour of the web preview in Textastic 2.1.

The file interpretation depends on the file extension. Previously, XML and SVG files where interpreted as HTML files which caused them to render wrongly. Also, mixed namespaces for xml files didn't work before.

Can you please send me the file(s) that cause a problem for you to support@textasticapp.com so I can see if I can reproduce the problem?

You could also try to rename your file to have an "xhtml" or "html" extension and I'm quite sure it will show the css correctly.
+1
Actually, I just tried to reproduce the problem. For me, it works like it should when I try to preview an XHTML file with a .xml file extension – the referenced CSS file is interpreted correctly.

Please make sure that your file is a proper XML file and contains no errors: try to run your file through the W3C validator at http://validator.w3.org/ and make sure to choose an XHTML doctype.
Hi Alexander,

Thank you for your quick feedback. Unfortunately renaming xml to xhtml doesn't solve the problem.
I've sent you the sample files.

Go on in with the good work
Best regards,

Chris
Unfortunately, I haven't received the files yet. Update: got it now and will report back :)
Thanks a lot for your great support.
Answer
Fixed
It works when the XML file has the correct styling tags and the CSS file is written correctly.