[oXygen-user] How can I ignore invalid CSS?
George Cristian Bina
george at oxygenxml.com
Thu May 16 07:14:13 CDT 2013
oXygen cannot find that CSS and then it is a little draconian in
handling this error. I also tested by pointing to
http://twitter.github.io/bootstrap/assets/css/bootstrap.css and this
also gives a fatal error that prevents oXygen from building the CSS
model to render the document.
I am afraid there is not much to do other than fixing that reference to
point to a reachable location that contains a valid CSS - it can be an
empty CSS file.
We recorded a few enhancements we need to do for such cases
1. pass the CSS through the XML Catalog, this will allow you to redirect
an existing CSS location to a local CSS file that you can control.
2. Try to make our implementation more forgiving wrt such errors.
3.. Add an option in the framework configuration to allow ignoring the
CSS specified inside a file and use the CSSes defined in the framework
Thanks again for bringing this issue to our attention and I am sorry
that we cannot provide an immediate solution to this problem.
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
On 5/16/13 12:59 PM, Jostein Austvik Jacobsen wrote:
> I've reduced the issue to a very basic HTML file. This is the HTML:
> <!DOCTYPE html>
> <html xmlns="http://www.w3.org/1999/xhtml">
> rel="stylesheet" />
> <p>Paragraph <b>bold</b> <i>italic</i></p>
> I've attached this HTML-file as well as screenshots of what happens when
> the link element is commented out.
> My oXygen version is: <oXygen/> XML Editor 14.2, build 2013021115.
> On 16 May 2013 10:04, George Cristian Bina <george at oxygenxml.com
> <mailto:george at oxygenxml.com>> wrote:
> Dear Jostein,
> Following the link you provided I see a sample file
> This does not work in Author mode because it is not XML wellformed -
> the oXygen XML Author requires the document to be wellformed. There
> are indeed also some CSS errors but they should not be critical.
> The solution will be to make the document wellformed. oXygen may
> help in two ways
> - reporting the errors and you can manually fix them
> - use the File -> Import -> HTML File to get an XHTML file
> If your experience is different maybe you can make available a
> sample file to allow us to reproduce the same behavior? Then we
> should be able to provide more help.
> Best Regards,
> George Cristian Bina
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> On 5/7/13 2:10 PM, Jostein Austvik Jacobsen wrote:
> I'd like to edit a website in oXygen. The website is based on
> Bootstrap. However, the CSS included with Bootstrap is invalid.
> I just want to be able to add some paragraphs, headlines, images
> etc. to
> the HTML, nothing fancy, but since the CSS files doesn't
> validate, the
> Author mode doesn't display anything useful. Is it possible to
> the CSS errors somehow and just display the HTML as if no CSS
> files were
>  https://github.com/twitter/__bootstrap/issues/6398
> oXygen-user mailing list
> oXygen-user at oxygenxml.com <mailto:oXygen-user at oxygenxml.com>
More information about the oXygen-user