Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
hdoc
Commits
1bbed285
Commit
1bbed285
authored
Dec 20, 2015
by
Hachem Rihab
Browse files
[hdoc_to_optim] added video support
parent
0bda662e
Changes
3
Hide whitespace changes
Inline
Side-by-side
hdoc_to_optim/input/sample.hdoc
View file @
1bbed285
No preview for this file type
hdoc_to_optim/xsl/find_ressources.xsl
View file @
1bbed285
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
<xsl:apply-templates
select=
"h:img"
/>
<xsl:apply-templates
select=
"h:img"
/>
<xsl:apply-templates
select=
"h:object"
/>
<xsl:apply-templates
select=
"h:object"
/>
<xsl:apply-templates
select=
"h:audio"
/>
<xsl:apply-templates
select=
"h:audio"
/>
<xsl:apply-templates
select=
"h:video"
/>
</xsl:template>
</xsl:template>
<xsl:template
match=
"h:img"
>
<xsl:template
match=
"h:img"
>
...
@@ -45,6 +46,11 @@
...
@@ -45,6 +46,11 @@
<xsl:variable
name=
"src"
select=
"@src"
/>
<xsl:variable
name=
"src"
select=
"@src"
/>
<copy
file=
"hdoc/{$src}"
tofile=
"result/{$src}"
/>
<copy
file=
"hdoc/{$src}"
tofile=
"result/{$src}"
/>
</xsl:template>
</xsl:template>
<xsl:template
match=
"h:video"
>
<xsl:variable
name=
"src"
select=
"@src"
/>
<copy
file=
"hdoc/{$src}"
tofile=
"result/{$src}"
/>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
...
...
hdoc_to_optim/xsl/transfo.xsl
View file @
1bbed285
...
@@ -294,5 +294,11 @@
...
@@ -294,5 +294,11 @@
<xsl:variable
name=
"src"
select=
"@src"
/>
<xsl:variable
name=
"src"
select=
"@src"
/>
<sc:extBlock
role=
"anim"
sc:refUri=
"{$src}"
/>
<sc:extBlock
role=
"anim"
sc:refUri=
"{$src}"
/>
</xsl:template>
</xsl:template>
<!--Video-->
<xsl:template
match=
"h:video"
>
<xsl:variable
name=
"src"
select=
"@src"
/>
<sc:extBlock
role=
"anim"
sc:refUri=
"{$src}"
/>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment