Subject: RE: Process HTML with XSL
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 9 Jul 2005 00:41:37 +0100
|
> The problem, XML page:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-stylesheet href="xsl/main.xsl" type="text/xsl"?>
> <home title="Title Test">
> <![CDATA[
> <table width="100%" border="0" cellspacing="3" cellpadding="3">
> <tr>
> <td width="50%"><img src="/images/logo.png" / alt=""></td>
> <td width="50%"><p>Text</p></td>
> </tr>
> </table>
> ]]>
> </home>
>
> The question: How can I make XSL procces this HTML code and
> show it like I
> want?.
This isn't HTML code. It looks like HTML code, but by putting it in a CDATA
section you've gone to the trouble of telling the parser that it isn't
really: CDATA tells the parser not to treat the angle brackets as markup,
but as ordinary text.
Michael Kay
http://www.saxonica.com/
|