XHTML Author mode and SVG images display?
Oxygen general issues.
-
- Posts: 88
- Joined: Wed Feb 11, 2015 11:25 pm
- Location: San Francisco, California USA
- Contact:
XHTML Author mode and SVG images display?
For oXygen XML Editor, version 18.
Should I expect oXygen XML Editor 18 to properly display SVG images when working in Author mode?
I'm using oXygen to edit an XHTML 1.1 page that both the W3C validator and oXygen 18 validate without errors. (oXygen is, by the way, overall a very nice XHTML and CSS editor...)
The XHTML page includes a footer DIV that in turn contains two SVG images.
When displayed in a browser, the images fit within the footer DIV per the XHTML's CSS ala:
BUT when the XHTML page is viewed in oXygen 18's Author mode, the images appear in their full unconstrained size. As in pretty much completely fill the Author mode editing area. And I can see no way to shrink the images without "breaking" my XHTML.
■ Is what I've described a known or expected oXygen XML Editor behavior?
■ Is there a circumvention that I can use without having to constantly modify / un-modify my XHTML?
Cheers & thanks for your help,
Riley
SFO
Should I expect oXygen XML Editor 18 to properly display SVG images when working in Author mode?
I'm using oXygen to edit an XHTML 1.1 page that both the W3C validator and oXygen 18 validate without errors. (oXygen is, by the way, overall a very nice XHTML and CSS editor...)
The XHTML page includes a footer DIV that in turn contains two SVG images.
Code: Select all
<div class="footer">
<p class="footerLeft">Last updated: 2016-05-18</p>
<a title="Valid CSS" href="http://bit.ly/xxxxxx" onclick="this.target='_blank'">
<img class="footerRight" src="valid-css-v.svg" alt="Valid CSS" /></a>
<a title="Valid XHTML 1.1" href="http://bit.ly/xxxxxx" onclick="this.target='_blank'">
<img class="footerRight" src="valid-xhtml11-v.svg" alt="Valid XHTML 1.1" /></a>
</div>
Code: Select all
img.footerRight{
display: inline-block;
float: right;
width: auto;
max-height: 98%;
margin: auto 0%;
padding: 0% 1px 0% 0.5%;
}
■ Is what I've described a known or expected oXygen XML Editor behavior?
■ Is there a circumvention that I can use without having to constantly modify / un-modify my XHTML?
Cheers & thanks for your help,
Riley
SFO
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: XHTML Author mode and SVG images display?
Hi Riley,
Please see some comments below:
So it is quite possible that the XHTML will look different in a web browser as opposed to when it is being edited in Oxygen.
Our engine is constantly being improved but it will probably never be that rich in feature with a browser's.
For example if you open this CSS:
OXYGEN_INSTALL_DIR\frameworks\xhtml\css\xhtml.css
and add to it this selector:
the footer image should be displayed limited to half a screen size. So instead of making changes in your CSSs you can make changes in ours in order to have a visual editing experience closer to how a web browser presents the content.
Regards,
Radu
Please see some comments below:
Thanks, if you have any improvement suggestions (for example extra toolbar actions) they are welcomed.I'm using oXygen to edit an XHTML 1.1 page that both the W3C validator and oXygen 18 validate without errors. (oXygen is, by the way, overall a very nice XHTML and CSS editor...)
Oxygen has its own engine which can render XML (XHTML in your case) based on CSS rules. Our engine is not equivalent in features to the one that a web browser might have. For example we do not support the inline-block display (we default to "inline" for it). We also do not support "width: auto".BUT when the XHTML page is viewed in oXygen 18's Author mode, the images appear in their full unconstrained size. As in pretty much completely fill the Author mode editing area. And I can see no way to shrink the images without "breaking" my XHTML.
■ Is what I've described a known or expected oXygen XML Editor behavior?
So it is quite possible that the XHTML will look different in a web browser as opposed to when it is being edited in Oxygen.
Our engine is constantly being improved but it will probably never be that rich in feature with a browser's.
Oxygen has a set of default CSSs that it uses for XHTML rendering. Those CSSs are combined with the ones that you specify in your XHTML file.■ Is there a circumvention that I can use without having to constantly modify / un-modify my XHTML?
For example if you open this CSS:
OXYGEN_INSTALL_DIR\frameworks\xhtml\css\xhtml.css
and add to it this selector:
Code: Select all
img.footerRight{
width: 50% !important;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 88
- Joined: Wed Feb 11, 2015 11:25 pm
- Location: San Francisco, California USA
- Contact:
Re: XHTML Author mode and SVG images display?
Radu:
Thanks! As always, great answer, very helpful...
Cheers & thanks 'gain,
Riley
Thanks! As always, great answer, very helpful...
Cheers & thanks 'gain,
Riley
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