Buenas, como estoy últimamente haciendo de I+D, me plantearon una serie de problemas, y uno de ellos era, como fusionar unos datos para enviarlos por mail en el cuerpo de mensaje.
La solución es muy sencilla, tanto que me cuesta creer que funcione
Desde http://msdn.microsoft.com/en-us/library/windows/desktop/ms757854(v=VS.85).aspx tenéis el ejemplo del XML y XSL, este código os devolverá el HMTL formado.
La solución es muy sencilla, tanto que me cuesta creer que funcione
function transformIt()
Local strResult
// Declare two new MSXML DOMDocument objects.
Local objSrcTree := CreateObject( "MSXML2.DOMDocument.6.0" )
Local objXSLT := CreateObject( "MSXML2.DOMDocument.6.0" )
// Load the two DOMDocuments with the XML document and the XSLT style sheet.
objSrcTree:load('region.xml')
objXSLT:load('region.xsl')
// Use the transformNode method to apply the XSLT to the XML.
strResult := objSrcTree:transformNode(objXSLT)
// Assign the resulting string to the result tree object's
// innerHTML property.
memowrit( "region.html", strResult )
return nilDesde http://msdn.microsoft.com/en-us/library/windows/desktop/ms757854(v=VS.85).aspx tenéis el ejemplo del XML y XSL, este código os devolverá el HMTL formado.
Saludos
Rafa Carmona ( rafa.thefullARROBAgmail.com___quitalineas__)
Rafa Carmona ( rafa.thefullARROBAgmail.com___quitalineas__)