DocBook: indicate more clearly what a YouTube video is
The previous description was too bare bones and did not allow further processing of the file. The new implementation gives more information and is consistent with what the standard xslTNG style sheets expect (https://github.com/docbook/xslTNG/blob/2.2.0/src/test/resources/xml/mo-1/preface.xml). Previous versions of the style sheets do not support video embedding. Change-Id: I1604858b6ad6254c4006470521a30cc0acd7b136 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
parent
d1b89671de
commit
8b30fbf0ce
@ -136,7 +136,8 @@ macro.youtube.HTML = "<div class=\"video\">\n" \
|
||||
"</div>\n"
|
||||
macro.youtube.DocBook = "<db:mediaobject>\n" \
|
||||
"<db:videoobject>\n" \
|
||||
"<db:videodata fileref=\"\1\">\n" \
|
||||
"<?db video="iframe"?>\n" \
|
||||
"<db:videodata format="youtube" fileref=\"https://www.youtube.com/watch/?v=\1\">\n" \
|
||||
"</db:videodata>\n" \
|
||||
"</db:videoobject>\n" \
|
||||
"<db:imageobject>\n" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user