Re: Display HTML in XSL Style Sheet
| From: | Ashley Sheridan | Date: | Tue, 06 Oct 2009 14:19:05 +0000 |
| Subject: | Re: Display HTML in XSL Style Sheet | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298652@lists.php.net to get a copy of this message | ||
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