How can I ignore invalid CSS?

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 Jostein

I have recently migrated to Mac from Windows, and brought my oXygen with me. I have been having difficulty setting it up to use XSV as a custom validation engine. Are there any oXygen+XSV users on Mac platforms out there who could advise me? What I've tried so far - Installed Macports, used it to install rpm, downloaded XSV-3.1-1.src.rpm, used rpm to install it, it seemed to run OK with just some warnings, but I can't figure out what it actually did, like what path I should enter into the oxygen dialog for setting it up as a custom validation engine. And the deeper question - is this rpm package even the appropriate for this situation? Thanks, Tara

Hello Tara, I don't believe the rpm is the proper solution for Mac. Besides you need more than just the XSV sources go get it running. XSV depends on PyLTXML which in turn needs LT-XML. Prerequisites: 1. Xcode in order to be able to compile and install LT-XML: https://developer.apple.com/xcode/ 2. The LT-XML "source" (ltxml-1.2.9.tar.gz) from http://www.ltg.ed.ac.uk/software/ltxml 3. The "PyLTXML source" (PyLTXML-1.3.tar.gz) from the same location. 4. XSV "tar ball" sources (XSV-3.1.tar.gz) from http://www.ltg.ed.ac.uk/~ht/xsv-status.html (Direct link: ftp://ftp.cogsci.ed.ac.uk/pub/XSV/XSV-3.1.tar.gz) To build/install everything: 1. Install Xcode. 2. Unpack and build the LT-XML sources. Read the instructions from: 00INSTALL on how to build and install. 3. Unpack and install "PyLTXML. Read the instructions from: 00INSTALL on how to install. 4. Unpack and install the XSV "tar ball" sources. To install them run: "python setup.py install". They should be installed in: /Library/Python/2.7/site-packages/XSV (the Python version may vary) 5. Test XSV in the command line: python /Library/Python/2.7/site-packages/XSV/commandLine.py </path/to/xmlFile> </path/to/xsdFile> The result should be an XML file with the validation status. There should be no other warnings/errors from the execution. Once you have this running in the command line, you can set this up in Oxygen. Go to Options > Preferences, Editor > Custom Validation Engines, add a New engine and use: Name: XSV Executable path: /usr/bin/python Working directory: /Library/Python/2.7/site-packages/XSV/ In the "Associated editors" add "XML Editor": XSD: commandLine.py ${currentFileURL} ${dsu} Other: commandLine.py ${currentFileURL} In the "Associated editors" add "XSD Editor": Default: commandLine.py ${currentFileURL} Regards, Adrian Adrian Buza oXygen XML Editor and Author Support Tel: +1-650-352-1250 ext.202 Fax: +40-251-461482 support@oxygenxml.com http://www.oxygenxml.com Tara Athan wrote:
I have recently migrated to Mac from Windows, and brought my oXygen with me. I have been having difficulty setting it up to use XSV as a custom validation engine. Are there any oXygen+XSV users on Mac platforms out there who could advise me?
What I've tried so far - Installed Macports, used it to install rpm, downloaded XSV-3.1-1.src.rpm, used rpm to install it, it seemed to run OK with just some warnings, but I can't figure out what it actually did, like what path I should enter into the oxygen dialog for setting it up as a custom validation engine. And the deeper question - is this rpm package even the appropriate for this situation?
Thanks, Tara _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi, The built-in XHTML Document type provides the CSSs needed to visually edit an HTML file. If an HTML document has it's own CSS associated with it, that CSS will be merged with the default ones. But even if you have errors in this CSS you should still be able to edit the HTML visually because the default CSSs have loaded successfully. You will have a few errors when the author page loads but you should be able to see and edit the file just like you edit an HTML file from the Oxygen sample files. You should check and see if your document has matched the XHTML framework. To check that go to the Window menu and select Show View/Properties. In the properties view check the entry Document Type to see which document type was matched with your document: - If you don't see the XHTML document type, go into Options->Preferences... on the page Document Type Association and select and edit the XHTML document type. Select the "Association rules" tab and add a new rule that will match your document. - If you do see XHTML as the detected document type, follow the previous instructions to edit the XHTML document and select the Author tab. Make sure that the option "If there are CSSs specified in the document then" is set to "merge them with CSSs from the associated document type". Best regards, Alex -- Alex Jitianu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 07-May-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
Jostein
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Dear Jostein, Following the link you provided I see a sample file 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
Jostein
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

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"> <head> <title>Title</title> <link href="// 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@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> 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>
Jostein
______________________________**_________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/**mailman/listinfo/oxygen-user<http://www.oxygenxml.com/mailman/listinfo/oxygen-user>

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 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"> <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>" 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@oxygenxml.com <mailto:george@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> 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>
Jostein
_________________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/__mailman/listinfo/oxygen-user <http://www.oxygenxml.com/mailman/listinfo/oxygen-user>

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@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@oxygenxml.com <mailto:george@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@oxygenxml.com <mailto:oXygen-user@oxygenxml.**com<oXygen-user@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>
participants (5)
-
George Cristian Bina
-
Jostein Austvik Jacobsen
-
Oxygen XML Editor Support
-
oXygen XML Editor Support
-
Tara Athan