You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by "Edward L. Knoll" <ed...@cosd.fedex.com> on 2007/10/23 21:31:28 UTC

Well-formed HTML as XSL output.

Is there a way to generate well-formed HTML as an XSL output?  We have a
situation where we'd like to do conditional post-processing of HTML
generated from an XSL transformation using an Xalan XSLT processor.
That HTML conditional post-processing could be accomplished using XSL if
the HTML were well-formed.

Re: Well-formed HTML as XSL output.

Posted by ke...@us.ibm.com.
>> Is there a way to generate well-formed HTML as an XSL output?

>  By well-formed, I presume you mean in the XML sense (what's output
> by Xalan should be well-formed in the HTML sense).

Ah. It didn't occur to me that the question might be about XHTML rather
than HTML.

______________________________________
"... Three things see no end: A loop with exit code done wrong,
A semaphore untested, And the change that comes along. ..."
  -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish
(http://www.ovff.org/pegasus/songs/threes-rev-11.html)

Re: Well-formed HTML as XSL output.

Posted by Santiago Pericas-Geertsen <Sa...@Sun.COM>.
On Oct 23, 2007, at 3:31 PM, Edward L. Knoll wrote:

> Is there a way to generate well-formed HTML as an XSL output?

  By well-formed, I presume you mean in the XML sense (what's output  
by Xalan should be well-formed in the HTML sense).

> We have a situation where we'd like to do conditional post- 
> processing of HTML generated from an XSL transformation using an  
> Xalan XSLT processor.  That HTML conditional post-processing could  
> be accomplished using XSL if the HTML were well-formed.

  Some of the options that I can think of are (i) use output="xml"  
instead of output="html" (this may likely require some changes to  
your stylesheet) (ii) use HTML Tidy to convert HTML to XML or (iii)  
combine both of your transforms into one.

-- Santiago