Home
TeamSite
<![CDATA[
amalia
In the .tpl file, I don't really know for what is the "<![CDATA[ " tag. I'm mixed, I'm not really sure if it's used for not taking into account the xml code or the oppositte...to take it into account, for example in my .tpl file (see below) you will see how I used and works but don't really knwo why only used for the image.
<?xml version="1.0" encoding="UTF-8"?>
<iw_pt name="Book Information">
<html>
<head>
<![CDATA[
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
]]>
</head>
<body bgcolor ="#FFFFFF"
link ="#0033CC"
vlink ="#0033CC"
alink ="0000FF"
text ="#000000">
<center>
<table width='600' cellspacing='0' border='2' bgcolor='#00AA99'>
<tr>
<td colspan='2'>
<center><font size='+1'><b>Book Details</b></font></center>
<![CDATA[<p>]]>
</td>
</tr>
<tr>
<td valign='top'>
<table>
<tr>
<td align='right'><b>Title</b></td>
<td><b>:</b></td>
<td><iw_value name='dcr.Titulo'/> (<iw_value name='dcr.Cover'/>)</td>
</tr>
<tr>
<td align='right'><b>Author</b></td>
<td><b>:</b></td>
<td><iw_value name='dcr.Autor'/></td>
</tr>
</table>
</td>
<td align='center'>
<![CDATA[<img src=']]><iw_value name='dcr.Imagen'/><![CDATA['>]]>
</td>
</tr>
</table>
</center>
</body>
</html>
</iw_pt>
Find more posts tagged with
Comments
Migrateduser
In earlier versions of TST, you needed to block out non presentation template content w/ CDATA. This is no longer necessary. I just quickly glanced at your PT, but it looks like you may be using it in some cases and not in others.
John Narbaitz
john.narbaitz@interwoven.com
Senior Sales Engineer
Interwoven
sef
I think CDATA tags are used for whatever kind of content that does not conform to a valid xml (well formed). For instance, i was using Ts 5.0 using tag <br> was causing trouble, but using <br/> worked fine. That also happened to html blank space symbol which is not recognized by xml but you can use #&160; instead.