create multiparts message by xsl

Posted by gionnyDeep75 on 07-Sep-2010 15:00

i create multiparts message with xsl below but how can i give a content id to those parts?

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet

      version="2.0"

      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

      xmlns:XQMessageElem="http://www.sonicsw.com/sonicxq/com.sonicsw.xq.service.xform.TransformationElementFactory"

      extension-element-prefixes="XQMessageElem">

    <xsl:template match="/feed">

    <XQMessageElem:XQMessage>      

          <XQMessage>

                     <part>

                         <content><xsl:copy-of select="xsd"></xsl:copy-of></content>

                     </part>

                     <part>

                         <content><xsl:copy-of select="xsl></xsl:copy-of></content>

                     </part>                         

        </XQMessage>

    </XQMessageElem:XQMessage>

    </xsl:template>

</xsl:stylesheet>

All Replies

Posted by mnair on 07-Sep-2010 21:15

Hi Giovanni,

You should be able to set the content ID by setting the Content-ID part header for the part.

Using a snippet from your XSL I have added a sample header element you could add.

   
       
        Content-Type=text/xml,Content-ID=SomeContentID
       
   

Thanks

-Mahesh

Posted by gionnyDeep75 on 08-Sep-2010 03:55

thank u very much

This thread is closed