#29325

Hi,

I tried on my own to implement the logic of extracting the embedded documents which are not inside the tag.Actually the file content is inside the tag d:item/d:object/d:file/d:filedata.In the XSL file ,for tag you have written the logic as below. I would like to know what is the PDF4ML attachment tag will do? Does the attribute in this tags like description ,height are mandatory?Also you have written an image tag followed by pd4ml-attachment tag I would like to know what the image tag will do as well?

<xsl:template match="d:attachmentref"><br /> <xsl:variable name="attkey"><xsl:value-of select="@name"/></xsl:variable><br /> <pd4ml-attachment icon="Area"><br /> <xsl:attribute name="description"><xsl:value-of select="@displayname"/></xsl:attribute><br /> <xsl:attribute name="height"><xsl:value-of select="d:picture/@height"/></xsl:attribute><br /> <xsl:attribute name="width"><xsl:value-of select="d:picture/@width"/></xsl:attribute><br /> <br /> <xsl:call-template name="getbody"><br /> <xsl:with-param name="p1" select="$attkey"/><br /> </xsl:call-template><br /> <br /> </pd4ml-attachment><br /> <img><br /> <xsl:attribute name="height"><xsl:value-of select="d:picture/@height"/></xsl:attribute><br /> <xsl:attribute name="width"><xsl:value-of select="d:picture/@width"/></xsl:attribute><br /> <xsl:attribute name="src">data:image/gif;base64,<xsl:value-of<br /> select="normalize-space(d:picture/d:gif)" disable-output-escaping="yes"/><xsl:value-of<br /> select="normalize-space(d:picture/d:notesbitmap)" disable-output-escaping="yes"/></xsl:attribute><br /> <xsl:attribute name="border">0</xsl:attribute><br /> </img><br /> </xsl:template>