HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › How to add sent date in the header of the document › Re: Re: How to add sent date in the header of the document
April 18, 2013 at 11:55
#29294
You are right, PostedDate is represented with a bit different XML structure. Below is a solution (a section at the bottom)
... <xsl:for-each select="/d:document/d:item/d:rawitemdata[@type='502']"> <xsl:if test="../@name='From' or ../@name='SendTo' or ../@name='Subject' or ../@name='CopyTo' "> <tr> <td valign="top"><xsl:value-of select="../@name"/>:</td><td><span style="text-transform: base64"><xsl:copy-of select="text()"/></span></td> </tr> </xsl:if> </xsl:for-each> <xsl:for-each select="/d:document/d:item/d:text"> <xsl:if test="text() and (../@name='From' or ../@name='SendTo' or ../@name='Subject' or ../@name='CopyTo' )"> <tr> <td valign="top"><xsl:value-of select="../@name"/>:</td><td><xsl:copy-of select="text()"/></td> </tr> </xsl:if> </xsl:for-each> <xsl:for-each select="/d:document/d:item/d:textlist/d:text"> <xsl:if test="text() and (../../@name='From' or ../../@name='SendTo' or ../../@name='Subject' or ../../@name='CopyTo')"> <tr> <td valign="top"><xsl:value-of select="../../@name"/>:</td><td><xsl:copy-of select="text()"/></td> </tr> </xsl:if> </xsl:for-each> <xsl:for-each select="/d:document/d:item[@name='PostedDate']"> <tr> <td valign="top"><xsl:value-of select="@name"/>:</td><td><xsl:copy-of select="."/></td> </tr> </xsl:for-each>
