Skip to Content
Former Member
Sep 14, 2009 at 08:05 AM

creating an html file in XI using an xsl stylesheet -- two error types



I am working on mapping an xml invoice to an html-file using a stylesheet (xsl-file) in the message mapping in XI 3.0.

Thus the inbound message is an xCBL Invoice and the output message is to be an html file. I name the output file "%supplierid%_%invoiceid%.html using the variable substitution functionality in the communication channel.

I have two problems:

1) the <br/> tags in the stylesheet are changed to "<br>" in the resulting html file causing problems in the output file, as this is not valid XML.

2) I would like to insert the current date and time in the output file and I am using this code, but the date and time is not picked up:



<xsl select="xs:string(fn:current-dateTime())"></xsl>


How do I solve these two problems?