Re: Display HTML in XSL Style Sheet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2009-10-06 at 15:10 +0100, Matthew Croud wrote:

> Hi,
> Is there a way to store HTML in an XML file,
> Access that node using XLST, and have it display as rendered html ?
> 
> So far my attempts either return the text equivalent of the html, with  
> nothing rendered.
> 
> Cheers,
> Matt.
> 
> 
> 
> 
> 
> 
> 
> 


XHTML is just XML, so yes you can. I think the XSLT you're looking for
would be something like <xls:apply-templates/> which should just mirror
what XML you have in your source document. So if the XML it is matching
and outputting is the HTML, it will show as HTML.

Thanks,
Ash
http://www.ashleysheridan.co.uk



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux