RE: [xsl] Multiple HTML content in XML for Rendering

Subject: RE: [xsl] Multiple HTML content in XML for Rendering
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 21 Mar 2007 21:02:11 -0000
I believe Dijkstra once said you should never start writing a program until
you knew what output you wanted it to produce. The same is true of XSLT. On
this list we can help you write a stylesheet to produce any kind of output
you want, but if you don't know what output you want, there's little we can
do to advise.

Michael Kay
http://www.saxonica.com/


> -----Original Message-----
> From: Senthilkumaravelan K [mailto:skumaravelan@xxxxxxxxxxxxxx]
> Sent: 21 March 2007 20:43
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Multiple HTML content in XML for Rendering
>
> Hi ,
> I have xml which might contain multiple nodes with different
> HTML content, How Do I render the information in a browser
> using XSLT ? Is it possible in first place? Any approach
> would be helpful.
>
> My XML would be like
> <contents>
> <content>
>  <Content>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
> Transitional//EN"&gt;&#xd; &#xd; &lt;html&gt;&#xd; &lt;head&gt;&#xd;
> 	&lt;title&gt;Vielen Dank f|r Ihre Registrierung bei
> Apple.&lt;/title&gt;&#xd; &lt;/head&gt;&#xd; &#xd; &lt;body
> bgcolor="#FFFFFF"&gt;&#xd; &#xd; &lt;/body&gt;&#xd; Hello
> World  First HTML &lt;/html&gt;</Content>
>     <Content>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
> Transitional//EN"&gt;&#xd; &#xd; &lt;html&gt;&#xd; &lt;head&gt;&#xd;
> 	&lt;title&gt;Vielen Dank f|r Ihre Registrierung bei
> Apple.&lt;/title&gt;&#xd; &lt;/head&gt;&#xd; &#xd; &lt;body
> bgcolor="#FFFFFF"&gt;&#xd; &#xd; &#xd; Hello World 2
> &lt;/body&gt;&#xd; &lt;/html&gt;</Content>
>
> There are two content nodes with 2 different HTML content in it.
> How this can be rendered as HTML in a browser?
>
> Thanks,
> Senthil

Current Thread