Skip to content

Commit

Permalink
Merge pull request #26 from HL7/25-anything-after-a-pdf-or-similar-in…
Browse files Browse the repository at this point in the history
…-iframe-is-not-rendered

#25 Fix issue with iframe rendering
  • Loading branch information
ahenket authored May 20, 2024
2 parents c6c4c1c + d96451d commit bfb8320
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CDA.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<xd:doc scope="stylesheet">
<xd:desc>
<xd:p><xd:b>Title:</xd:b> CDA R2 StyleSheet</xd:p>
<xd:p><xd:b>Version:</xd:b> 4.1.0-beta.1</xd:p>
<xd:p><xd:b>Version:</xd:b> 4.1.0-beta.2</xd:p>
<xd:p><xd:b>Maintained by:</xd:b> HL7 <xd:a href="https://confluence.hl7.org/display/SD/Structured+Documents">Structured Documents Work Group</xd:a></xd:p>
<xd:p><xd:b>Purpose:</xd:b> Provides general purpose display of CDA release 2.0 and 2.1 (Specification: ANSI/HL7 CDAR2) and CDA release 3 (Specification was pulled after ballot) documents. It may also be a starting point for people interested in extending the display. This stylesheet displays all section content, but does not try to render each and every header attribute. For header attributes it tries to be smart in displaying essentials, which is still a lot.</xd:p>
<xd:p><xd:b>License:</xd:b> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a></xd:p>
Expand Down Expand Up @@ -1081,6 +1081,7 @@
<xsl:attribute name="src">
<xsl:value-of select="$source"/>
</xsl:attribute>
<xsl:text> </xsl:text>
</iframe>
</xsl:otherwise>
</xsl:choose>
Expand Down Expand Up @@ -1132,6 +1133,7 @@
<xsl:attribute name="src">
<xsl:value-of select="concat('data:', $renderElement/@mediaType, ';base64,', $renderElement/text())"/>
</xsl:attribute>
<xsl:text> </xsl:text>
</iframe>
</xsl:otherwise>
</xsl:choose>
Expand Down
4 changes: 3 additions & 1 deletion documentation/CDA.html
Original file line number Diff line number Diff line change
Expand Up @@ -2100,7 +2100,7 @@ <h3>Description</h3>

<p><b>Title:</b> CDA R2 StyleSheet</p>

<p><b>Version:</b> 4.1.0-beta.1</p>
<p><b>Version:</b> 4.1.0-beta.2</p>

<p><b>Maintained by:</b> HL7 <a href="https://confluence.hl7.org/display/SD/Structured+Documents" target="_blank">Structured Documents Work Group</a></p>

Expand Down Expand Up @@ -3469,6 +3469,7 @@ <h4>Parameters</h4>
</span><span class="tXSLEl">&lt;xsl:attribute</span><span class="tAN"> name=</span><span class="tAV">"src"</span><span class="tXSLEl">&gt;</span><span class="tI">
</span><span class="tXSLEl">&lt;xsl:value-of</span><span class="tAN"> select=</span><span class="tAV">"$source"</span><span class="tXSLEl">/&gt;</span><span class="tI">
</span><span class="tXSLEl">&lt;/xsl:attribute&gt;</span><span class="tI">
</span><span class="tXSLEl">&lt;xsl:text</span><span class="tXSLEl">&gt;</span><span class="tT"> </span><span class="tXSLEl">&lt;/xsl:text&gt;</span><span class="tI">
</span><span class="tEl">&lt;/iframe&gt;</span><span class="tI">
</span><span class="tXSLEl">&lt;/xsl:otherwise&gt;</span><span class="tI">
</span><span class="tXSLEl">&lt;/xsl:choose&gt;</span><span class="tI">
Expand Down Expand Up @@ -3519,6 +3520,7 @@ <h4>Parameters</h4>
</span><span class="tXSLEl">&lt;xsl:attribute</span><span class="tAN"> name=</span><span class="tAV">"src"</span><span class="tXSLEl">&gt;</span><span class="tI">
</span><span class="tXSLEl">&lt;xsl:value-of</span><span class="tAN"> select=</span><span class="tAV">"concat('data:', $renderElement/@mediaType, ';base64,', $renderElement/text())"</span><span class="tXSLEl">/&gt;</span><span class="tI">
</span><span class="tXSLEl">&lt;/xsl:attribute&gt;</span><span class="tI">
</span><span class="tXSLEl">&lt;xsl:text</span><span class="tXSLEl">&gt;</span><span class="tT"> </span><span class="tXSLEl">&lt;/xsl:text&gt;</span><span class="tI">
</span><span class="tEl">&lt;/iframe&gt;</span><span class="tI">
</span><span class="tXSLEl">&lt;/xsl:otherwise&gt;</span><span class="tI">
</span><span class="tXSLEl">&lt;/xsl:choose&gt;</span><span class="tI">
Expand Down

0 comments on commit bfb8320

Please sign in to comment.