Skip to content

Commit

Permalink
Merge pull request #75 from fahhem/patch-2
Browse files Browse the repository at this point in the history
Propagate data-perspective to the impress div
  • Loading branch information
regebro committed May 11, 2015
2 parents c4c890c + b1afa2e commit 48bca1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hovercraft/templates/default/template.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ xmlns="http://www.w3.org/1999/xhtml">

<xsl:for-each select="/document">
<div id="impress">
<xsl:if test="@data-perspective">
<xsl:attribute name="data-perspective">
<xsl:value-of select="@data-perspective" />
</xsl:attribute>
</xsl:if>
<xsl:if test="@data-transition-duration">
<xsl:attribute name="data-transition-duration">
<xsl:value-of select="@data-transition-duration" />
Expand Down
5 changes: 5 additions & 0 deletions hovercraft/templates/simple/template.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ xmlns="http://www.w3.org/1999/xhtml">

<xsl:for-each select="/document">
<div id="impress">
<xsl:if test="@data-perspective">
<xsl:attribute name="data-perspective">
<xsl:value-of select="@data-perspective" />
</xsl:attribute>
</xsl:if>
<xsl:if test="@data-transition-duration">
<xsl:attribute name="data-transition-duration">
<xsl:value-of select="@data-transition-duration" />
Expand Down

0 comments on commit 48bca1e

Please sign in to comment.