[oXygen-user] How can I ignore invalid CSS?
Jostein Austvik Jacobsen
josteinaj at gmail.com
Thu May 16 07:19:46 CDT 2013
Thanks for the help.
I'm setting up a way for our information department to author some webpages
which is why I would've liked to get the authoring mode to work. Instead
I've got them started on hand-coding HTML, which probably is a good thing :)
Jostein
On 16 May 2013 14:14, George Cristian Bina <george at oxygenxml.com> wrote:
> Thanks Jostein,
>
> 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<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 instead.
>
> Thanks again for bringing this issue to our attention and I am sorry that
> we cannot provide an immediate solution to this problem.
>
>
> Best Regards,
> George
> --
> George Cristian Bina
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com
>
> 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<http://www.w3.org/1999/xhtml>
>> ">
>> <head>
>> <title>Title</title>
>> <link
>> href="//netdna.bootstrapcdn.**com/twitter-bootstrap/2.3.1/**
>> css/bootstrap-combined.min.css<http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css>
>> <http://netdna.bootstrapcdn.**com/twitter-bootstrap/2.3.1/**
>> css/bootstrap-combined.min.css<http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css>
>> **>"
>>
>> rel="stylesheet" />
>> </head>
>> <body>
>> <h1>Headline</h1>
>> <p>Paragraph <b>bold</b> <i>italic</i></p>
>> </body>
>> </html>
>>
>> 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.
>>
>>
>> Jostein
>>
>>
>> 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
>> http://twitter.github.io/__**bootstrap/base-css.html<http://twitter.github.io/__bootstrap/base-css.html>
>>
>> <http://twitter.github.io/**bootstrap/base-css.html<http://twitter.github.io/bootstrap/base-css.html>
>> >
>> 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
>> --
>> George Cristian Bina
>>
>> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
>> http://www.oxygenxml.com
>>
>> 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
>> Twitter
>> Bootstrap. However, the CSS included with Bootstrap is invalid[1].
>>
>> 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
>> ignore
>> the CSS errors somehow and just display the HTML as if no CSS
>> files were
>> associated?
>>
>> [1] https://github.com/twitter/__**bootstrap/issues/6398<https://github.com/twitter/__bootstrap/issues/6398>
>> <https://github.com/twitter/**bootstrap/issues/6398<https://github.com/twitter/bootstrap/issues/6398>
>> >
>>
>> Jostein
>>
>>
>> ______________________________**___________________
>> oXygen-user mailing list
>> oXygen-user at oxygenxml.com <mailto:oXygen-user at oxygenxml.**com<oXygen-user at oxygenxml.com>
>> >
>> http://www.oxygenxml.com/__**mailman/listinfo/oxygen-user<http://www.oxygenxml.com/__mailman/listinfo/oxygen-user>
>> <http://www.oxygenxml.com/**mailman/listinfo/oxygen-user<http://www.oxygenxml.com/mailman/listinfo/oxygen-user>
>> >
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20130516/45e2ff9e/attachment.html
More information about the oXygen-user
mailing list