openSUSE / suse-xsl

DocBook XSL Stylesheets for SUSE branding
Other
11 stars 10 forks source link

Support videoobject for XHTML/FO #440

Open tomschr opened 3 years ago

tomschr commented 3 years ago

Problem Description

For our doc evolution project we would like to support screencasts. Of course, this needs to be supported first in GeekoDoc (see below).

Input XML fragment with informalfigure/mediaobject/videoobject ```xml Hello ```

However, there are differences between the XHTML and XHTML5 output:

Output HTML from the XHTML stylesheet ```html
```
Output HTML from the XHTML5 stylesheet ```html
```

Problem: The <embed/> doesn't work as expected. It's just an empty page. However, the (X)HTML5 stylesheets create a HTML5 <video> tag which is good.

Keep in mind: these are just the original DocBook stylesheets.

Expected Behaviour

We need to adapt it to our stylesheets:

References

tomschr commented 1 year ago

Open question: how do we distinguish between content for Wistia and other content?

Wistia needs the following markup:

<script src="https://fast.wistia.com/embed/medias/abcdefghij.jsonp" 
async></script>
<script src="https://fast.wistia.com/assets/external/E-v1.js" 
async></script>
<span class="wistia_embed wistia_async_abcdefghij popover=true popoverAnimateThumbnail=true" 
style="display:inline-block;height:84px;position:relative;width:150px">&nbsp;</span>