XML Catalog does not work for CSS import
Having trouble installing Oxygen? Got a bug to report? Post it all here.
XML Catalog does not work for CSS import
Hi,
the Oxygen Help System says that the XML Catalog will be used for CSS Imports.
However, i have this entry in my catalog file (XML Catalog 1.1):
And this import in my CSS File:
I get an Error from the W3C CSS Validator (CSS3 Engine): Error in 301
I use the same catalog file for my XML Files, so it works in general. This happens with XML Editor 22.1, build 2020061102 on Windows 10.
Thanks,
Frank
the Oxygen Help System says that the XML Catalog will be used for CSS Imports.
However, i have this entry in my catalog file (XML Catalog 1.1):
Code: Select all
<uri name="http://docbook.org/docbook.css"
uri="file:///c:/Program%20Files/Oxygen%20XML%20Editor%2022/frameworks/docbook/css/docbook.css"/>
Code: Select all
@import "http://docbook.org/docbook.css";
I use the same catalog file for my XML Files, so it works in general. This happens with XML Editor 22.1, build 2020061102 on Windows 10.
Thanks,
Frank
Re: XML Catalog does not work for CSS import
Hi Frank,
I guess you are referring to this topic in the Oxygen user's manual:
https://www.oxygenxml.com/doc/versions/ ... ports.html
The topic states that Oxygen resolves the imports through the XML catalog support when rendering content in the Author visual editing mode.
Indeed if you validate the CSS the W3C CSS validator we are using will report an error for that specific import, that's because the CSS validator does not have XML catalog support. We have an internal issue to add XML catalog support to our CSS validator. This particular feature of resolving CSS imports through an XML catalog is specific to Oxygen and it's a flexibility when creating CSSs for visual editing inside Oxygen. But CSS validation needs to take into account also people editing CSS in Oxygen and deploying them to a web browser, web browser which does not use XML catalog.
But when using the CSS for an XML document switched to the Author visual editing mode the reference should be resolved through the XML catalog support, so you should ignore the validation error and see if the CSS is properly resolved when the XML document is opened in the Author visual editing mode.
Regards,
Radu
I guess you are referring to this topic in the Oxygen user's manual:
https://www.oxygenxml.com/doc/versions/ ... ports.html
The topic states that Oxygen resolves the imports through the XML catalog support when rendering content in the Author visual editing mode.
Indeed if you validate the CSS the W3C CSS validator we are using will report an error for that specific import, that's because the CSS validator does not have XML catalog support. We have an internal issue to add XML catalog support to our CSS validator. This particular feature of resolving CSS imports through an XML catalog is specific to Oxygen and it's a flexibility when creating CSSs for visual editing inside Oxygen. But CSS validation needs to take into account also people editing CSS in Oxygen and deploying them to a web browser, web browser which does not use XML catalog.
But when using the CSS for an XML document switched to the Author visual editing mode the reference should be resolved through the XML catalog support, so you should ignore the validation error and see if the CSS is properly resolved when the XML document is opened in the Author visual editing mode.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service