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

RE: Process HTML Doc with XSL

Subject: RE: Process HTML Doc with XSL
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Fri, 9 May 2003 13:52:34 -0400
define html.doc
[ Karl J. Stubsjoen]

> I'd like to throw an HTML source (well formed of course), 
> against an xsl
> stylesheet.  So, think of the HTML code as an HTML snippet, 
> and think of the
> xsl stylesheet as an HTML template document.
> Up until now, I've only processed XML document with XSLT.  
> So, I'm not sure
> if what I would like to do is Ok, acceptable, not possible, or what.
> 

If the source document is well-formed, as you said it is, then it is xml
and you just treat it like any other xml source.  What is your question?

If you want html (non-xml) output, then use the html output method.
Remember that the stylesheet, being an xml document, must be well-forme
dand cannot have html-isms like <br>.  Just make everything well-formed
and the html serializer will take care of the rest.  Also, do not use
the html entities (like &nbsp;), because, of course, xml dose not define
them.  Well, you can define them yourself using a DTD, but it is easier
just to use the equicalent numeric character references like &#160;
instead.

If you want xhtml output, use the xml output method.

Cheers,

Tom P

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.