Skip to content

Commit

Permalink
adding change for #275
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescummings committed Jun 28, 2017
1 parent fbf7979 commit 5291228
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docx/from/textruns.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,21 @@ of this software, even if advised of the possibility of such damage.
<xsl:variable name="commentN" select="@w:id"/>
<xsl:for-each
select="document(concat($wordDirectory,'/word/comments.xml'))/w:comments/w:comment[@w:id=$commentN]">
<note place="comment" resp="{translate(@w:author,' ','_')}">
<note place="comment" resp="{concat('#',translate(@w:author,' ','_'))}"><xsl:if test="@w:id"><xsl:attribute name="n"><xsl:value-of select="@w:id"/></xsl:attribute></xsl:if>
<date when="{@w:date}"/>
<xsl:apply-templates/>
</note>
</xsl:for-each>
</xsl:template>


<xsl:template match="w:commentRangeStart[@w:id]">
<milestone type="commentRangeStart" n="{@w:id}"/>
</xsl:template>

<xsl:template match="w:commentRangeEnd[@w:id]">
<milestone type="commentRangeEnd" n="{@w:id}"/>
</xsl:template>

<xsl:template match="w:r">
<xsl:call-template name="processTextrun"/>
</xsl:template>
Expand Down

0 comments on commit 5291228

Please sign in to comment.