Html-widget with XML

Author: (rogerw)

Hi, Some quick tests gave me the following issue; Having a XML-file and a XSL-file, I cant get the (styled) XML showing up in the HTML-widget. Removing the styling, I can see the xml-structure. It's also possible to see a jpg or some ordinal web-page in the widget. The styled XML shows correct in a browser, so I suppose there is some problem with the path.... I have tried with a path to the xsl and also putting the xsl into the working directory, then removing the path of the xsl in the xml-file. (I haven't tested putting the xsl on a http-path). Regards RogerW XML: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="c:\temp\catalog.xsl"?> <!-- <?xml-stylesheet type="text/xsl" href="c:/temp/catalog.xsl"?> --> <!-- <?xml-stylesheet type="text/xsl" href="file:///c/temp/catalog.xsl"?> --> <catalog>   <cd>     <title>Empire Burlesque</title>     <artist>Bob Dylan</artist>     <country>USA</country>     <company>Columbia</company>     <price>10.90</price>     <year>1985</year>   </cd>   <cd>     <title>Hide your heart</title>     <artist>Bonnie Tyler</artist>     <country>UK</country>     <company>CBS Records</company>     <price>9.90</price>     <year>1988</year>   </cd>   <cd>     <title>Greatest Hits</title>     <artist>Dolly Parton</artist>     <country>USA</country>     <company>RCA</company>     <price>9.90</price>     <year>1982</year>   </cd> </catalog>   XSL: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl=""> <xsl:template match="/"> <html> <body> <h2>My CD Collection</h2> <table border="1"> <tr bgcolor="#9acd32"> <th style="text-align:left">Title</th> <th style="text-align:left">Artist</th> </tr> <xsl:for-each select="catalog/cd"> <tr> <td><xsl:value-of select="title"/></td> <td><xsl:value-of select="artist"/></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet>


  1. Hi,  perhaps it's not that obvious for this to work, ie. the html-widget supporting xml with xsl. I'll probably have to use the OcxContainer, where I know having done this before. Or? Regards RogerW.

    Author: rogerw (
  2. Hi RogerW, May be a security problem with CEF (used by HTML widget) . Check log in developpement tools (ctrl+shift+i) .Cry Gilles.

    Author: Gilles (
  3. Hi,  I found out that I can use "USYSXSLT".XMLTRANSFORM to transform my xml (xsl) to eg. html and show it in the html-widget. Regards RogerW. 

    Author: rogerw (
  4. Hi Gilles and others, I saw your response, but didn't fully understandConfused. However, I have now managed to get my xml+xsl into the html-widget as html. Next step is to make a pdf-file of the html. I have managed to do that using the spawn-command with some of the many HtmlToPdf-programs out there. I have also seen some discussions in the forum about CEF1 and CEF3, but I have to admit I hadn't heard about the concept before. It would be interesting to know whether I can use CEF to produce a pdf-file more directly from the html-widget? Regards RogerW.

    Author: rogerw (