I've just started experimenting around with Sablotron and have been unable
to get proper HTML out of the sabcmd program. It seems that all the output
comes as XML (with an XML header), rather than HTML (with the DTD header I
was expecting). The short end of it is that < and & don't get
rendered, but stay as entities (which, naturally, breaks a lot of the
resultant HTML).
I did all sorts of digging through the code last night, and even tried
manually forcing method = OUTPUT_HTML, but couldn't get it to work. It
*appears* that the eventElementStart() function is supposed to set the
output type to HTML, provided the first tag spat out is "<HTML>," but I'm
not sure that function is even being called (printf's placed within it gave
me no output).
Am I missing some sort of XSL command that should be in my top-level xsl
file? I'm currently experimenting with the samples provided in the Charlie
preview.
Also, should the XML and DTD headers be part of Sablotron, or should they
really be output specifically by the template? What if you wanted to write
an XSL file that would output PDF?
Thanks for any help!
david.