BKBK this is not it! i already put cfoutput else it would
have given me an error.
listen this is my function
<cffunction name="addNewElement" returntype="void">
<cfargument name="position" type="numeric"
required="yes">
<cfscript>
ArrayInsertAt(xmlDoc.MyDoc.XmlChildren,#position# ,
XmlElemNew(xmlDoc,"TagTR"));
StructInsert(xmlDoc.MyDoc.TagTR[#position#].XmlAttributes,
"index", "index");
xmlDoc.MyDoc.TagTR[#position#].XmlChildren[1] =
XmlElemNew(xmlDoc, "TagTD");
StructInsert(xmlDoc.MyDoc.TagTR[#position#].TagTD[1].XmlAttributes,
"libelle", "Emballage");
xmlDoc.MyDoc.TagTR[#position#].XmlChildren[1].XmlText =
"Palette Hétérogène";
</cfscript>
</cffunction>
and this is my xsl to transform it to html
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet
version="2.0"
xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
xmlns="
http://www.w3.org/TR/REC-html40">
<xsl
utput method="html" encoding="utf-8"/>
<xsl:template match="MyDoc">
<xsl:for-each select="TagTR">
<tr class="Arial_2_noir" height="10" align="left"
valign="top" bgcolor="#CCCCCC">
<td><xsl:value-of
select="TagTD[@libelle='Emballage']" /></td>
</tr>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
so in brief i have an xml Object (cfxml) which i added an
element to it then i transform it to HTML and dump it to browser.
anyone can see why i have that problem? my output is "Palette
Hétérogène" instead of "Palette
Hétérogène"