Display HTML in XSL Style Sheet

Display HTML in XSL Style Sheet

am 06.10.2009 16:10:57 von Matthew Croud

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.








--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Display HTML in XSL Style Sheet

am 06.10.2009 16:19:05 von Ashley Sheridan

--=-nc6Sc/W5xQbC9ikmNCDI
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

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 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



--=-nc6Sc/W5xQbC9ikmNCDI--

Re: Display HTML in XSL Style Sheet

am 06.10.2009 17:47:19 von Lupus Michaelis

Matthew Croud wrote:
> Is there a way to store HTML in an XML file,
> Access that node using XLST, and have it display as rendered html ?

As XHTML ypu can integrate it in an XML, by the use of XMLNS. But it
is OT.
In the XML, you declare two XMLNS. In the XSLT, you declare three XMLNS.

--
Mickaƫl Wolff aka Lupus Michaelis
http://lupusmic.org

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php