My mail program screwed up and I didn't notice, I sent this individually to James 
instead of the list, so I'm just copying the message over and seding it here...

Message:
the line in my XSL file for output is:
<xsl:output  method="html" version="1.0" encoding="ISO-8859-1" 
omit-xml-declaration="yes" indent="yes" media-type="text/html"/>

I use XML Spy for all of my XML, Schema and Stylesheet editing, it has an internal 
transformer that works great with that...  I have to be able to do this 
programmatically though.

Chris Golden

On Wed, 13 Feb 2002 14:28:55 -0000, James Strachan wrote:
>Does it work if you set the output method to be 'html' in your XSL
>script?
>
>As an experiment you might want to try is generating a dom4j
>Document from
>your XML (say using DocumentResult to capture the result of XSLT as a
>Document) then trying to use the HTMLWriter in the org.dom4j.io
>package to
>output your HTML.  I'd be interested to see if it works any better.
>
>James
>----- Original Message -----
>From: "Christopher M. Golden" <[EMAIL PROTECTED]>
>To: "DOM4J User's Mailing List" <[EMAIL PROTECTED]>
>Sent: Wednesday, February 13, 2002 2:36 PM
>Subject: [dom4j-user] Outputting HTML data
>
>
>I'm still pretty new around here...   Anyways, I'm trying to parse
>an XML
>file with an XSL spreadsheet and output the results as plain HTML.
>I don't
>want it in XHTML format (I don't want single tags having an ending
>"/"), I
>don't want the encoding statement and I want all entities evaluated
>BEFOREHAND.  I have all but the last set in the XSL file but it is
>ignored
>in a basic parse, it works fine when using XML Spy for the conversion
>though.
>
>My biggest confusion is with trying to get HTML entities to display
>correctly in the HTML output.   I'm trying to put a number of &nbsp;
>entities in there for the final product, but it bitches at me if I
>leave
>them in that form in the XSL file and if I use "&amp;nbsp;" then it
>doesn't
>evaluate the "&amp;" in the output!  I need to be able to do complex
>spacing
>and I want the output HTML as compatible as possible with a
>JEditorPane's
>HTML display.
>
>Anyone have some suggestions?
>
>
>
>Chris Golden
>
>
>_______________________________________________
>dom4j-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/dom4j-user
>


_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to