I have an ExactTarget email in which part of the content is generated from XSL:
set @content = TransformXML(@markup, GetPortfolioItem("my xsl"))
The XSL creates links similar to this:
<a href='%%=RedirectTo(TreatAsContent("http://anywhere.com"))=%%'>anywhere</a>
I expected to get trackable links, instead I get this:
%%=RedirectTo(TreatAsContent("http://anywhere.com"))=%%
Has anyone in SO land tackled this problem before?
Thanks!
Update
I tried Kelly's suggestion, it didn't work:
%%[
set @markup = MARKUP
set @digestContent = TransformXML(@markup, GetPortfolioItem("trackable digest"))
]%%
%%=TreatAsContent(@digestContent)=%%
This is the output of the xsl transform:
%%[
set @href1 = "https://investments.pimco.com/ShareholderCommunications/External%20Documents/All%20Asset%20Fund%20-%20736%20QIR.pdf"
set @href2 = "https://rel-uat.investments.pimco.com/ShareholderCommunications/External Documents/pimco_all_asset_all_authority_PF4019I.pdf"
set @href3 = "https://rel-uat.investments.pimco.com/ShareholderCommunications/External Documents/pimco_all_asset_all_authority_PF4019I.pdf"
set @href4 = "http://managedaccounts.pimco.com/ManagedAccounts/External Documents/Total_Return_Managed_Account_Product_Profile_PMAPPTR.pdf"
set @href5 = "http://managedaccounts.pimco.com/External Documents/Total_Return_Managed_Account_Product_Profile_PMAPPTR.pdf"
]%%
<table
width='100%' style='border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;'
border='0' cellspacing='0' cellpadding='0'
>
<tr>
<td valign='top'
class='bodyContent'
style='color: #707680; font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px; font-weight: normal; line-height: 20px; text-align: left;
padding: 20px;
background-color: #f1f3f4;'>
<h3 style='font-size:14px; line-height:20px; font-weight:bold; color:#174A7C; margin:0; font-family:Verdana, Arial, Helvetica, sans-serif;'>
Mutual Funds</h3>
<h5 style='font-size:14px; margin:20px 0 5px; color:#0d0d0d;'>
</h5>
<p style='margin-top:20px;'>
<a style='color: #5C97CC; font-weight: bold; text-decoration: none;' href='%%=RedirectTo(@href1)=%%'>Fund Cards</a>
 <em style='font-size: 12px;'>
updated 3/31/2014 1:21:50 PM
</em><br/>
</p>
<h5 style='font-size:14px; margin:20px 0 5px; color:#0d0d0d;'>
PIMCO All Asset All Authority Institutional Share Fund Card
</h5>
• 
<a style='color: #5C97CC; font-weight: bold; text-decoration: none;' href='%%=RedirectTo(@href2)=%%'>Fund Cards</a>
 <em style='font-size: 12px;'>
updated 3/31/2014 1:21:50 PM
</em><br/>
• 
<a style='color: #5C97CC; font-weight: bold; text-decoration: none;' href='%%=RedirectTo(@href3)=%%'>Fund Cards</a>
 <em style='font-size: 12px;'>
updated 3/31/2014 1:21:50 PM
</em><br/>
</td>
</tr>
<tr>
<td height='20'> </td>
</tr>
<tr>
<td valign='top'
class='bodyContent'
style='color: #707680; font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px; font-weight: normal; line-height: 20px; text-align: left;
padding: 20px;
background-color: #f1f3f4;'>
<h3 style='font-size:14px; line-height:20px; font-weight:bold; color:#174A7C; margin:0; font-family:Verdana, Arial, Helvetica, sans-serif;'>
Managed Accounts</h3>
<h5 style='font-size:14px; margin:20px 0 5px; color:#0d0d0d;'>
Total Return Managed Account Product Profile
</h5>
• 
<a style='color: #5C97CC; font-weight: bold; text-decoration: none;' href='%%=RedirectTo(@href4)=%%'>Product Profile</a>
 <em style='font-size: 12px;'>
updated 3/31/2014 1:21:50 PM
</em><br/>
• 
<a style='color: #5C97CC; font-weight: bold; text-decoration: none;' href='%%=RedirectTo(@href5)=%%'>Product Profile</a>
 <em style='font-size: 12px;'>
updated 3/31/2014 1:21:50 PM
</em><br/>
</td>
</tr>
<tr>
<td height='20'> </td>
</tr>
</table>