[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Process HTML with XSL

Subject: RE: Process HTML with XSL
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 9 Jul 2005 00:41:37 +0100
cdata html in xsl
> 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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.