Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Multi part mime message in XSLT

From: "Colin Adams" <colinpauladams@-------------->
To:
Date: 6/4/2008 1:51:00 PM
Gestalt doesn't do anything with the media-type attribute (it probably
should for http, but there is no requirement in the XSLT and
serializations specs).

For mailto (which Gestalt does support), I think it would be rather
difficult for the XSLT processor to insert the header in the right
location, so this is really documentation. The XSLT programmer will be
responsible for ensuring the correct headers and body.

An alternative approach would be a custom serializer - but this would
be even more processor specific (that is, it would be guaranteed
non-portable, whereas the approach I outline here is portable across
all XSLT 2.0 processors that support the mailto URI scheme).

2008/6/4 Mukul Gandhi <gandhi.mukul@xxxxxxxxx>:
> Hi Colin,
>  Thanks for sharing this information.
>
> I have a doubt related to the code fragment you have posted.
>
> I think, media-type="multipart/mixed" is processor specific feature.
> Do Gestalt and Saxon support this?
>
> While doing, <xsl:result-document href="mailto:..." > what will happen
> after the stylesheet execution finishes?
>
> I think a text output will be created on the standard output, or a
> file (if a redirection to file is made). Then will this output to be
> manually (or programmaticaly) feeded to some email software? Or the
> email client will automatically be triggered as a result of the
> instruction, <xsl:result-document href="mailto:..." > (normally as
> browser's do). I think, this is again processor specific behaviour.
>
> Could you please comment on my understanding above ...
>
> On 6/4/08, Colin Adams <colinpauladams@xxxxxxxxxxxxxx> wrote:
>> It seems a perfectly useful concept to me.
>>
>> <xsl:output method="text" media-type="multipart/mixed">
>> <xsl:result-document href="mailto:..." >
>>  fill in headers and body of email here
>> </xsl:result-document>
>
>
> --
> Regards,
> Mukul Gandhi


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent